Kaskus

Tech

junjun89Avatar border
TS
junjun89
[ask/help] jst
gan,,, nanya soal inputan / outputan matrik di JST pake matlab dong
misal saya ada inputan

p = [0 0;
0 1;
1 0;
1 1];

t = [0;
0;
0;
1];

net=newff(minmax(p),[2,1],{'tansig','purelin'},'traingd'emoticon-Wink;
net.trainParam.show = 50;
net.trainParam.lr = 0.05;
net.trainParam.mc = 0.9;
net.trainParam.epochs = 300;
net.trainParam.goal = 1e-5;

[net,tc]=train(net,p,t);
save pola_coba2 net;


trus ada pesan error:

??? Error using ==> network.train at 146
Targets are incorrectly sized for network.
Matrix must have 1 rows.

Error in ==> cobacoba at 18
[net,tc]=train(net,p,t);


mau tanya ngasih input output yang bener di JST itu gimana siii.. niatnya mau nglatih aturan AND
mohon bantuanya ya agan..
0
993
4
GuestAvatar border
Komentar yang asik ya
Urutan
Terbaru
Terlama
GuestAvatar border
Komentar yang asik ya
Komunitas Pilihan