Categories &

Functions List

Function Reference: fcnnpredict

statistics: pred_Y = fcnnpredict (Mdl, XC)
statistics: [pred_Y, scores] = fcnnpredict @ (Mdl, XC)

Make predictions from a fully connected Neural Network.

pred_Y = fcnnpredict (Mdl, XC) requires the following input arguments.

  • Mdl : A structure containing the trained model parameters as generated by the fcnntrain function.
  • X : An N×M matrix containing the data set to be predicted upon. Rows N correspond to individual samples and columns M correspond to features (dimensions). Type of X must be double and the number of features must correspond to those of the trained model.

fcnnpredict returns the predicted labels, pred_Y, and if a second output argument is requested, it also returns the corresponding values of the neural networks output in scores.

See also: fcnntrain, fitcnet, ClassificationNeuralNetwork

Source Code: fcnnpredict