Pastebin
Paste #1296: m
< previous paste - next paste>
Pasted by tdn
samples=P
targetsamples=T
net = newff(samples, targetsamples, [], 'tansig', 'trainlm');
%net.biasConnect(layerNumber) = booleanValue;
net.biasConnect(1) = 1;
net.trainParam.epochs = 100;
[net trainingPerformance] = train(net, trainingInput, trainingTarge);
trainingPerformance
%%%%%%%%%%%%%
This gives me the following output/error:
samples =
0.0350 0.0162 0.9359 0.6757 0.2786
-0.0113 1.1361 -0.0509 1.0286 -0.2267
targetsamples =
0 1 1 0 0
??? Error using ==> network.subsasgn at 551
"trainFcn" must be '' or the name of a network train function.
Error in ==> newff>new_5p1 at 179
net.trainfcn = btf;
Error in ==> newff at 89
net = new_5p1(varargin{:});
Error in ==> nn at 143
net = newff(samples, targetsamples, [], {'tansig'}, {'trainlm'});
New Paste
Go to most recent paste.