testing neural network in after successful training

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 日

0 投票

do try
result = net([12 5 3 4]');

3 件のコメント

SyedShomaail Jafri
SyedShomaail Jafri 2015 年 12 月 16 日
編集済み: SyedShomaail Jafri 2015 年 12 月 16 日
Yes it is showing result in one cell but the result is also not correct. This does not seems to be the solution since you are just transposing the matrix
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

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

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2015 年 12 月 15 日

コメント済み:

2015 年 12 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by