Pastebin
Paste #1295: 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
??? Cell contents reference from a non-cell array object.
Error in ==> newff>new_5p1 at 157
if (length(tf) < i) || all(isnan(tf{i}))
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.