fcnnpredict
Make predictions from a fully connected Neural Network.
pred_Y = fcnnpredict (Mdl, XC)
requires the following input arguments.
fcnntrain
function.
fcnnpredict
can also be called with a third input argument, in which case, NumThreads, a positive scalar integer value, defines the number of of threads to be used when computing the activation layers. For layers with less than 1000 neurons, NumThreads always defaults to 1.
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.
Installation Note: in order to support parallel processing on MacOS, users have to manually add support for OpenMP by adding the following flags to CFLAGS
and CXXFLAGS
prior to installing the statistics package:
setenv ("CPPFLAGS", "-I/opt/homebrew/opt/libomp/include -Xclang -fopenmp")
See also: fcnntrain, fitcnet, ClassificationNeuralNetwork
Source Code: fcnnpredict