Artificial Neural Network code for this dataset?
1 回表示 (過去 30 日間)
古いコメントを表示
can anyone send me the code for ANN which is applicable in this dataset?
0 件のコメント
採用された回答
Majid Farzaneh
2018 年 5 月 31 日
Hi, you can use something like this:
I=xlsread('forneuralnetworkdataset.xls');
inputs=I(:,1:3)';
targets=I(:,4)';
net=feedforwardnet(10);
net=train(net,inputs,targets);
3 件のコメント
Majid Farzaneh
2018 年 6 月 1 日
You're welcome. You have the trained net. Simply use the net as a function:
out=net([28;89;993])
or
test_data=I(1:10,1:3)';
outs=net(test_data);
Note that the output of a default feed-forward network is not integer. You can use round, ceil, floor or fix function to round the output.
out=round(net([28;89;993]))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!