Pastebin

Paste #1295: m

< previous paste - next paste>

Pasted by tdn

Download View as text

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


Do not write anything in this field if you're a human.

Go to most recent paste.