how to load my data in to feed forward neural network?

1 回表示 (過去 30 日間)
NARESH
NARESH 2015 年 5 月 21 日
回答済み: Ayush Aniket 2025 年 8 月 29 日
These are my matlab commands for input (probx) out (dualout) To load data in to nntool. probx=[1.175 1.675 2.175 2.675 3.175 3.675 4.175;23.9 23.9 23.9 23.9 23.9 23.9 23.9] dualout= {[0.640 1.155] [0.705 1.096] [0.909 1.009] [0.671 1.027] [0.781 0.899] [0.736 0.737] [0.44 1.827]} after loading data in to nntool , I am using feed forward backprob network to train .but I am getting following error in matlab.
Error: ??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in ==> nntool at 681 [errmsg,errid] = me.message;

回答 (1 件)

Ayush Aniket
Ayush Aniket 2025 年 8 月 29 日
In nntool, inputs and targets must be numeric matrices (each column = one sample). Your dualout is a cell array, which causes the error. The solutionis to make it a numeric 2×7 matrix, not a cell array.
% Input (2×7)
probx = [1.175 1.675 2.175 2.675 3.175 3.675 4.175;
23.9 23.9 23.9 23.9 23.9 23.9 23.9];
% Target output (2×7)
dualout = [0.640 0.705 0.909 0.671 0.781 0.736 0.440;
1.155 1.096 1.009 1.027 0.899 0.737 1.827];
nntool % now import probx as input, dualout as target

カテゴリ

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