Main Content

predict

Class: dlhdl.Simulator
Namespace: dlhdl

Retrieve prediction results for dlhdl.Simulator object

Since R2021b

Syntax

prediction = predict(simulatorObject,image)

Description

prediction = predict(simulatorObject,image) returns a table containing the percentage prediction values for the input image specified by image.

Input Arguments

expand all

Instance of the simulator object, specified as an dlhdl.Simulator object.

Input image, specified as a m-by-n-by-k numeric array. m, n, and k must match the dimensions of the deep learning network input image layer. For example, for the LogoNet network, resize the input images to a 227-by-227-by-3 array.

Data Types: single

Output Arguments

expand all

Deep learning network prediction for the input image specified by image.

Version History

Introduced in R2021b

expand all