help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't get Neural Networks working


From: 藍博Dr Lan
Subject: Can't get Neural Networks working
Date: Thu, 9 Aug 2018 00:35:31 +0800

Hi: I started working on the Neural Networks package. By following the User's Guide, I can't get it started. The code I wrote is as follows:

p=[-1 -1 2 2;0 5 0 5]
t=[-1 -1 1 1]
mMinMaxElements=min_max(p)
[mTrainInputN,cMeanInput,cStdInput]=prestd(p)
nHiddenNeurons=5;
nOutputeurons=1;
BL_net=newff(mMinMaxElements,[nHiddenNeurons nOutputeurons],\
      {"tansig","purelin"},"trainlm","","mse");
[BLnet]=train(BL_net,p,t);
[mTestInputN]=trastd(p,cMeanInput,cStdInput);
[simOut]=sim(BLnet,p)

And the error message shows as:

error: 'finite' undefined near line 38 column 13
error: called from
    tansig at line 38 column 5
    __calcperf at line 85 column 20
    __trainlm at line 107 column 18
    train at line 125 column 11

Could anyone tell me, where goes wrong?
Thanks!

DRLAN

reply via email to

[Prev in Thread] Current Thread [Next in Thread]