Prediction by using newff ?

3 ビュー (過去 30 日間)
AFAQ AHMAD
AFAQ AHMAD 2015 年 6 月 4 日
コメント済み: Greg Heath 2015 年 6 月 9 日
Hi I have the input data of 191x4 and out put of 191x1,i train my network with newff with 2 hidden layers. Now i have another input set haveing 4x4 without output,how can i get teh outputs with respect to the train neywork on the previous data. I solved this problem by using nntool,but i wnat to solve this by newff. I try sim command but it does not work. Regards Afaq Ahmad

採用された回答

Vinod Sudheesh
Vinod Sudheesh 2015 年 6 月 8 日
Hello,
If I understand your question correctly, you would like to know how you can compute the output when an input is applied to a trained network.
Suppose "net" is the neural network you have trained, you could compute the output for an input "X" to the neural network "net" using the following command
y = net(X);
For an example, please see the code snippet below
[X,T] = vinyl_dataset;
net = feedforwardnet(10);
net = train(net,X,T);
y = net(X);
Hope this helps !
Thanks
Vinod
  1 件のコメント
Greg Heath
Greg Heath 2015 年 6 月 9 日
Like newff, the sim command is obsolete.
However, like newff, it still works.
y = sim(net,X);
P.S. When using neural nets, it is helpful to use lower case for double variables and reserve upper case for cell variables.
Greg

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by