What is the cause of my patternnet apapt error?
Afficher commentaires plus anciens
I am trying to do adaptive training of a neural network using patternnet using all default settings, so the following is my complete code (except for array initialisation). The train code works, and is verified to produce accurate output :
X is [101,12507] of training data, T is [133,12507] of classification data
net = patternnet(101);
net = train(net,X,T);
If I try adaptive training with one sample :
X is [101,1] of training data, T is [133,1] of classification data
net = patternnet(101);
net = adapt(net,X,T);
I get the following error:
Error using *
Inner matrix dimensions must agree.
Error in nn7.grad2 (line 108)
gNi(:,qq) = Fdot{qq}' * gA{i}(:,qq);
Error in adaptwb>adapt_network (line 100)
[gB,gIW,gLW] =
nn7.grad2(net,[],PD(:,:,ts),BZ,IWZ,LWZ,N,Ac(:,ts+AcInd),gE,Q,1,hints);
Error in adaptwb (line 37)
[out1,out2,out3] = adapt_network(in1,in2,in3,in4);
Error in network/adapt (line 108)
[net,Ac,tr] = feval(net.adaptFcn,net,Pd,T,Ai);
Error in D_Train_Net_Adapt (line 14)
net = adapt(net,X,T);
1 commentaire
David McDermott
le 14 Oct 2015
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Visualization and Interpretability dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!