I am trying to train ANN and it gives following error:Input data size does not match net.inputs{1}.size...Someone plz help me. Its been days correcting the error
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
amna batool
il 14 Gen 2019
Commentato: amna batool
il 16 Gen 2019
net10 = newff([0 1;0 1;1 6],[5 2],{'tansig' 'purelin'});
net10.trainParam.epochs = 50;
net10.trainParam.goal=0;
net10 = train(net10,p,t);
Y = sim(net10,p);
e=t-Y;
plot(p,t,p,Y,'o')
0 Commenti
Risposta accettata
Israr Haq
il 15 Gen 2019
Hello.
Seems like dimensions of net10 and p are not the same. They must be the same before simulating the network.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Sequence and Numeric Feature Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!