Unable to perform assignment because the size of the left side is 2-by-1 and the size of the right side is 2-by-226.
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am having problem solving this problem:
Unable to perform assignment because the size of the left side is 2-by-1 and the size of the right
side is 2-by-226.
Here are some parts of the code:
xTrain is a 1x226 Matrix
expectedOutputTrain is a 226x1 Matrix
size of numclasses is 2
inputSize = numel(xTrain);
numHiddenUnits = 5;
numClasses = numel(categories(expectedOutputTrain));
net = trainNetwork(xTrain',expectedOutputTrain,layers,options);
2 件のコメント
Stephen23
2018 年 4 月 27 日
@L: please show the complete error message. This means all of the red text.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!