필터 지우기
필터 지우기

Deep Learning and Neural Network Implementation

조회 수: 3 (최근 30일)
Nedz
Nedz 2020년 10월 28일
답변: Maksym Tymchenko 2023년 3월 10일
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.

답변 (1개)

Maksym Tymchenko
Maksym Tymchenko 2023년 3월 10일
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:
  • A numeric array
  • A categorical array
  • A cell array
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.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by