When i tried to change the training function in nntrain , from trainlm to traindx, i get the error :
2 次查看(过去 30 天)
显示 更早的评论
When i tried to change the training function in nntrain , from trainlm to traindx, i get the following error :
Error using fitnet (line 73)
FCN is not the name of a function on the MATLAB path.
I used the below code for changing learning rate and momemtum .
trainFcn = 'traindx'; % Levenberg-Marquardt backpropagation.
% Create a Fitting Network
hiddenLayerSize =10;
net.trainParam.lr = 0.5;
net.trainParam.mc=0.5;
net = fitnet(hiddenLayerSize,trainFcn);
kindly advice
0 个评论
采纳的回答
Walter Roberson
2020-10-27
The message is correct. Mathworks does not supply any function named traindx .
It does, however, supply a function named traingdx
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genomics and Next Generation Sequencing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!