필터 지우기
필터 지우기

testing neural network in after successful training

조회 수: 2 (최근 30일)
SyedShomaail Jafri
SyedShomaail Jafri 2015년 12월 15일
댓글: Greg Heath 2015년 12월 17일
I have made a neural network using nprtool and trained it with 500X4 and 500X1 input and output data respectively. Now for testing I assume that for each row the net will output one value However, if I test it using
result = net([12 5 3 4]);
it result is 1X4 array instead of 1X1. why is this like ? Thanks Shomaail

답변 (1개)

harjeet singh
harjeet singh 2015년 12월 15일
do try
result = net([12 5 3 4]');
  댓글 수: 3
harjeet singh
harjeet singh 2015년 12월 16일
do upload an example how you are training your NN
Greg Heath
Greg Heath 2015년 12월 17일
Harjeet's format is correct. For N I-dimensional input vectors with corresponding O-dimensional output (including target) vectors.
[ I N ] = size(input)
[ O N ] = size(target)
output = net(input);
[ O N ] = size(output)
Hope this helps.
Greg

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by