probabilistic neural network

i have one problam with PNN, any body help me ..
i'm use matrik 10000*1
this eror in :
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
Kelasdataasli =
1 1 2
T =
(1,1) 1
(1,2) 1
(2,3) 1
Error using network/subsasgn>network_subsasgn (line 536) net.IW{1,1} must be a 3-by-10000 matrix.
Error in network/subsasgn (line 13) net = network_subsasgn(net,subscripts,v,netname);
Error in newpnn>create_network (line 122) net.iw{1,1} = p';
Error in newpnn (line 66) net = create_network(param);
Error in aplikasi>pushbutton2_Callback (line 265) net = newpnn(Dataasli,T)
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in aplikasi (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)aplikasi('pushbutton2_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback

Antworten (1)

Walter Roberson
Walter Roberson am 5 Jun. 2012

0 Stimmen

net = newpnn(P,T,spread) takes two or three arguments,
P R-by-Q matrix of Q input vectors
T S-by-Q matrix of Q target class vectors
Now look at your input. Your T is something by 3, so that means that Q must be 3 in the above, so your P must also be something by 3. Does your Dataasli array have 3 columns? No, it has 1.

3 Kommentare

deniel munthe
deniel munthe am 6 Jun. 2012
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
255 255 255
i'ts Dataasli array. i have 3 colomns. but always have in error like this.
Walter Roberson
Walter Roberson am 7 Jun. 2012
You said specifically that "i'm use matrik 10000*1"
deniel munthe
deniel munthe am 8 Jun. 2012
i' m use images with matrix 10000*1, but 1 have 3 images, n when i use it to matlab, my P=[ 10000*3 ], it's true ? n why i'm always have error like this...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 5 Jun. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by