i created a copy of trainlm algorithm in neural network to shivlm.m with the same code of the trainlm.m. when i tried to call shivlm i get errors. can anyone help me in this regard?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dhandapani.S
el 23 de Nov. de 2016
Comentada: Walter Roberson
el 26 de Nov. de 2016
the error i get when i copy the file trainlm.m and renamed the file as shivlm.
Undefined function 'nn_train_feedback' for input
arguments of type 'struct'.
Error in shivlm>train_network (line 206) nn_train_feedback('start',archNet,status);
Error in shivlm (line 64) [out1,out2] = train_network(varargin{2:end});
Error in network/train (line 329) [calcNet,tr] = trainFcn('apply',net,rawData,calcLib,calcNet,tr);
Error in cmpare (line 22) [net,pr]=train(net,Input',Target');
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de Nov. de 2016
trainlm probably uses private functions that you have not copied. You might need to copy the entire class directory.
8 comentarios
Walter Roberson
el 26 de Nov. de 2016
Editada: Walter Roberson
el 26 de Nov. de 2016
Later postings indicate the user is using R2012b. This matters because the Neural Network toolbox was completely rewritten between then and now, so the functions the user is having difficulty with do not exist in the current version.
Walter Roberson
el 26 de Nov. de 2016
You need the private subdirectory, which is at
fullfile(toolboxdir('nnet'),'nnet','nntrain', 'private')
Más respuestas (0)
Ver también
Categorías
Más información sobre Define Shallow Neural Network Architectures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!