Artificial Neural Network code for this dataset?
조회 수: 2 (최근 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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!