- A numeric array
- A categorical array
- A cell array
Deep Learning and Neural Network Implementation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Suppose i have a trained network:
For example i have declared all other necessary training options and data to be used successfully.
The training was successfully done and i would like to use the "predict" comand on the test samples against the trained network "net"
net=trainNetwork(Xtrain,Xtarget,layers,opts);
% Prediction process
Y = predict(net,Xtest);
What will be data output on the variable ''Y'' ?
Is it probability scores?
Note: I have two classes for my training targets.
0 Kommentare
Antworten (1)
Maksym Tymchenko
am 10 Mär. 2023
The variable Y represents the predicted responses. The format and data type of the output Y depends on the type of problem, this can be:
For a detailed explanation see: https://www.mathworks.com/help/deeplearning/ref/seriesnetwork.predict.html#d124e144501
By default, for a classification problem, Y contains a matrix of prediction scores (probabilities). If you set the option ReturnCategorical to 1 (true), then the function returns categorical labels instead.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!