Error when training a neural network with more than 1 dimension

1 vue (au cours des 30 derniers jours)
Lee
Lee le 24 Août 2018
Commenté : Lee le 10 Sep 2018
I have a neural network license, and am able to execute the first two examples found in the Matlab documentation here: https://ch.mathworks.com/help/nnet/ref/train.html
These use the builtin 'maglev_dataset', which is 1 dimensional. However, the other examples using the 'vinyl_dataset', which has more than 1 dimension, all throw the following error immediately.
>> [x,t] = vinyl_dataset;
>> net = fitnet([60 30]);
>> net = train(net,x,t);
Index exceeds matrix dimensions.
Error in initnw>initialize_layer (line 168)
range(inputStart(j):inputStop(j),:) = temp2((inputStart(j):inputStop(j))-inputStart(j)+1,:);
Error in initnw (line 93)
out1 = initialize_layer(in1,in2);
Error in initlay>initialize_network (line 147)
net = feval(initFcn,net,i);
Error in initlay (line 89)
out1 = initialize_network(in1);
Error in network/init (line 32)
net = feval(initFcn,net);
Error in network/configure (line 246)
net = init(net);
Error in nntraining.config (line 116)
net = configure(network(net),X,T);
Error in nntraining.setup>setupPerWorker (line 68)
[net,X,Xi,Ai,T,EW,Q,TS,err] = nntraining.config(net,X,Xi,Ai,T,EW,configNetEnable);
Error in nntraining.setup (line 43)
[net,data,tr,err] = setupPerWorker(net,trainFcn,X,Xi,Ai,T,EW,enableConfigure);
Error in network/train (line 321)
[net,data,tr,err] = nntraining.setup(net,net.trainFcn,X,Xi,Ai,T,EW,enableConfigure,isComposite);
What on earth is wrong? My colleagues who use the same license do not have this problem!
  2 commentaires
Krishna Bindumadhavan
Krishna Bindumadhavan le 10 Sep 2018
Could you try running restoredefaultpath, and check again?
Lee
Lee le 10 Sep 2018
Thank you! it was indeed a path issue, and I've reordered it accordingly.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Produits


Version

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by