Error when training a neural network with more than 1 dimension

조회 수: 2 (최근 30일)
Lee
Lee 2018년 8월 24일
댓글: Lee 2018년 9월 10일
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
Krishna Bindumadhavan
Krishna Bindumadhavan 2018년 9월 10일
Could you try running restoredefaultpath, and check again?
Lee
Lee 2018년 9월 10일
Thank you! it was indeed a path issue, and I've reordered it accordingly.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by