Error when training a neural network with more than 1 dimension

2 visualizaciones (últimos 30 días)
Lee
Lee el 24 de Ag. de 2018
Comentada: Lee el 10 de Sept. de 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 comentarios
Krishna Bindumadhavan
Krishna Bindumadhavan el 10 de Sept. de 2018
Could you try running restoredefaultpath, and check again?
Lee
Lee el 10 de Sept. de 2018
Thank you! it was indeed a path issue, and I've reordered it accordingly.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Productos


Versión

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by