Info

此问题已关闭。 请重新打开它进行编辑或回答。

whats is that error in matlab?

1 次查看(过去 30 天)
Aya Ahmed
Aya Ahmed 2020-6-5
关闭: MATLAB Answer Bot 2021-8-20
When I write this code, the matrix that is called (confusion matrix) does not appear to me .... But this shape appears and says these words and I do not understand the problem:
% load('P2.mat')
% load('P.mat')
% load('T.mat')
net=feedforwardnet(2);
net=train(net,P,T);
view(net)
P3=net(P2);
plotconfusion(T,P3)
  2 个评论
Star Strider
Star Strider 2020-6-5
You may have too many classes for plotconfusion to produce the optimal result.
The warning is just that — a warning. The best option is to restart MATLAB. (This can occur after graphics hardware driver updates.)
Aya Ahmed
Aya Ahmed 2020-6-6
Thank you very mach Star Strider , iam restart the matlab but stel the same error .
plz tel me , how can i know the number of classes ?
i want to make classification with images into three type of images so what I did was.... I made two matrices to train the images: [ One is the input matrix, called P, consisting of 236 rows * 120 columns features of images .The other is the Target matrix, called T, consisting of 120 rows * 120 columns].And a matrix for the test called P2 consists of 236 rows * 120 columns.
Is there anything wrong with that ?? Where are these Classes here?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by