Path: news.mathworks.com!not-for-mail
From: "Tak " <lauhotak@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: [HELP] Unknow error in my neural network
Date: Sun, 16 Nov 2008 13:57:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <gfp8rd$oep$1@fred.mathworks.com>
Reply-To: "Tak " <lauhotak@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226843821 25049 172.30.248.35 (16 Nov 2008 13:57:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 16 Nov 2008 13:57:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 728346
Xref: news.mathworks.com comp.soft-sys.matlab:501074


My code is design for image classification, skin cancer one. Should I put all the benign and malignant image into training session? And how to set the target? I saw some people do malignant as [0.9 0.1] and benign as [0.1 0.9] But I not understand how does it mean. 




This is the error message:
??? This index expression yields only one result.

Error in ==> ClassificationBNN at 54
[net,tr,out,E] = train(net, train.P, [0.9, 0.1]);

Here is the code:
net = newff(train.P, train.T, [15, 1], {'tansig', 'purelin'}, 'trainlm');
   
net.performFcn = 'mae';         % Mean absolute error performance function
net.trainParam.goal = 0.01;      % Performance goal
net.trainParam.show = NaN;       % Epochs between displays (NaN for no displays)
net.trainParam.epochs = 1000;    % Maximum number of epochs to train
net.trainParam.lr = 0.05;       % Learning rate
[net,tr,out,E] = train(net, train.P, train.T);

Where 
train.P is a [70x358 double]
train.T is a [1x213 double]