Matlab 2012b error in neural network Non-singleton dimensions of the two input arrays must match each other.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
i wrote my script to split dataset into XTrain, YTrain, XTest and YTest.
the dimensions are equal for all matrix example sample size e.g. size is following for above matrix
XTrain = 25 X 256 (double)
YTrain = 11 X 256 (double)
XTest = 25 X 256 (double)
YTest = 25 X (double)
my code is following
setdemorandstream(491218382);
net = patternnet(10);
[net,tr] = train(net, XTrain, YTrain);
nntraintool;
plotperform(tr);
testY = net(XTest);
The training part is good but when the last line is called the error is thrown instantly
Error using bsxfun
Non-singleton dimensions of the two input arrays must match each other.
I have already searched and found many explanations but i can't understand them specialy the solution mentioned in this Link
Could any body please explain the core anatomy behind this problem in the context of my spliting of dataset
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows 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!