I am working on neural networks and having matlab 2021a and 2023a, but i face invalid solver name option while using optimization techniques.

7 次查看(过去 30 天)
I am working on neural networks and having matlab 2021a and 2023a versions, but i face invalid solver name option while using optimization techniques like adadelta, adagrad, trainbr,trainlm,traingdx, trainscg, trainbfg with LSTM. how i solve this problem?
options = trainingOptions('trainbr', ...
'MaxEpochs', 10, ...
'MiniBatchSize', 10, ...
'GradientThreshold', 1, ...
'Verbose', 1, ...
'Plots', 'training-progress');
it gives invalid solver name.

采纳的回答

Ayush
Ayush 2024-1-1
编辑:Ayush 2024-1-1
I understand that you are getting invalid solver name option while using optimization techniques like adadelta, adagrad, trainbr, trainlm, traingdx, trainscg, trainbfg. Till R2023b release solver name supported for training Deep learning Neural Networks are:
  1. sdgm
  2. rmsprop
  3. adam
  4. lbfgs
Training function supported for shallow neural networks are given here: https://www.mathworks.com/help/deeplearning/ref/fitnet.html#bu2w2vc-1-trainFcn
Also, you may refer to file exchange for other optimization techniques from here: https://www.mathworks.com/matlabcentral/fileexchange/71069-gradient-descent-optimization
Thanks,
Ayush
  2 个评论
Muhammad Shoaib
Muhammad Shoaib 2024-1-1
@Ayush thanks
but can you tell me how to add these given function in matlab library or how to file exchange for the given optimization techniques?.
Also, you may refer to file exchange for other optimization technniques from here: https://www.mathworks.com/matlabcentral/fileexchange/71069-gradient-descent-optimization
Ayush
Ayush 2024-1-1
编辑:Ayush 2024-1-1
Hi @Muhammad Shoaib MATLAB built-in function trainingOptions will only expect the type of inputs specified in the documentation. However, if you want to define the custom network you may refer to the link: https://www.mathworks.com/help/deeplearning/ug/train-network-using-custom-training-loop.html

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by