フィルターのクリア

What does the error "Error using bsxfun" mean in implementing FFNN?

4 ビュー (過去 30 日間)
Mohamed Nedal
Mohamed Nedal 2017 年 5 月 7 日
コメント済み: Greg Heath 2017 年 5 月 8 日
Hello, I'm new to ANN and I was trying to implement FFNN using the following code:
a = xlsread('Data.xlsx');
input = [a(:,3) a(:,4) a(:,5) a(:,6)];
target = a(:,8);
net = feedforwardnet(10);
net = train(net, input', target');
y = net(input);
But it gave me the following error for the last line:
Error using bsxfun
Non-singleton dimensions of the two input arrays
must match each other.
What does this error mean and how can I fix it? Is it because there are missing attributes in the feedforwardnet()?
  2 件のコメント
Mohamed Nedal
Mohamed Nedal 2017 年 5 月 8 日
size(input) = 108 × 4
size(target) = 108 × 1
Greg Heath
Greg Heath 2017 年 5 月 8 日
See my answer!
Greg

サインインしてコメントする。

採用された回答

Greg Heath
Greg Heath 2017 年 5 月 8 日
The input matrix of N I-dimensional "I"nputs and corresponding output target matrix containing N O-dimensional "O"utputs have the dimensions
[ I N ] = size(input)
[ O N ] = size(target)
What are the results of these commands for your data?
Hope this helps.
Thank you for formally accepting my answer
Greg

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by