- learngdm: https://www.mathworks.com/help/deeplearning/ref/learngdm.html
- learnp: https://www.mathworks.com/help/deeplearning/ref/learnp.html
- learnk: https://www.mathworks.com/help/deeplearning/ref/learnk.html
- trainingOptions: https://www.mathworks.com/help/deeplearning/ref/trainingoptions.html
please need help. Can we use learngd() function to train Deep neural network
4 次查看(过去 30 天)
显示 更早的评论
learngd() can be used with deep learning architecture? what are the other learning function we have in matlab
0 个评论
回答(1 个)
Prasanna
2025-6-5
Hi Shailaja,
The function 'learngd()' implements gradient descent as a learning algorithm, primarily used for training shallow neural networks in MATLAB’s Neural Network Toolbox.
However, l'earngd()' is not well-suited for deep learning architectures, because It is a basic gradient descent function that does not include momentum or adaptive learning rate adjustments, which are crucial for training deep networks effectively. For deep learning models, you can use more advanced optimizers like Adam, RMSprop, or L-BFGS to efficiently update weights in deeper architectures. Some other functions similar to ‘learngd’ are ‘learngdm’,’learnp’, ‘learnk’, etc.
For deep learning, use newer training options like 'adam', 'sgdm', or 'rmsprop' via the 'trainingOptions' function. For more information, refer to the following documentations:
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!