A colleague just pointed out that there is a function name conflict with a sub function several layers down from the cpt_cmap submission. Moving cpt_cmap off the path seemed to resolve the issue.
neural network "train" throwing indexing error using example data
5 次查看(过去 30 天)
显示 更早的评论
I've started having trouble with a neural network fitting code segment that used to work just fine.
The code gives me a large number of nested errors:
Index in position 1 exceeds array bounds (must not exceed 1).
Error in initnw>initialize_layer (line 176)
range(inputStart(j):inputStop(j),:) =
temp2((inputStart(j):inputStop(j))-inputStart(j)+1,:);
Error in initnw (line 101)
out1 = initialize_layer(in1,in2);
Error in initlay>initialize_network (line 155)
net = feval(initFcn,net,i);
Error in initlay (line 97)
out1 = initialize_network(in1);
Error in network/init (line 32)
net = feval(initFcn,net);
Error in network/configure (line 253)
net = init(net);
Error in nntraining.config (line 146)
net = configure(network(net),X,T);
Error in nntraining.setup>setupPerWorker (line 102)
[net,X,Xi,Ai,T,EW,Q,TS,err] = nntraining.config(net,X,Xi,Ai,T,EW,configNetEnable);
Error in nntraining.setup (line 77)
[net,data,tr,err] = setupPerWorker(net,trainFcn,X,Xi,Ai,T,EW,enableConfigure);
Error in network/train (line 335)
[net,data,tr,err] =
nntraining.setup(net,net.trainFcn,X,Xi,Ai,T,EW,enableConfigure,isComposite);
Error in TRACE_NN_Fit (line 122)
[Nets.(strcat('Eqn',num2str(Equation))).Atl.(Name),tr] =
train(net,P(InAtlInds,:)',Data(InAtlInds,:)');
There's a lot involved up to that point, so rather than give my specific application, I'll note that I get the same error using the Neural Net Fitting Wizard (nftool) with the built-in example data provided in the tool under the name "body fat" or "abalone rings" (the problem seems to happen whenever the input is more than 1 dimension... here's the GUI image):
Any suggestions?
Thanks in advance... had this problem for a year or two now across multiple computers.
0 个评论
采纳的回答
Brendan Carter
2022-10-20
编辑:Brendan Carter
2022-10-20
1 个评论
Saikat Sengupta
2023-8-28
编辑:Saikat Sengupta
2023-8-28
Hi Brendan,
Thank you for updating your post with an answer. Could you please elaborate a bit on how you solved it ? I am having the same issue, but I cant find cpt_cmap in my installation (which cpt_cmap does not find anything). I dont recall installing a cptcmap package.
thanks in advance,
Saikat Sengupta
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!