- traingdm: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/traingdm.html
- sgdmupdate: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/sgdmupdate.html
- trainingoptions: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/trainingoptions.html
- patternnet: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/patternnet.html
difference between traingdm in patternnet vs sgdm in cnn
18 ビュー (過去 30 日間)
古いコメントを表示
Are they the same method of training in differnet types of neural network or how are they different?
traingdm = gradienbt descent with momentum backpropagation (used in patternnet)
sgdm = stochastic gradient descent with momentum (used in convolutional neural network)
0 件のコメント
回答 (1 件)
Abhipsa
2025 年 2 月 6 日 8:49
Hi @San May, “traingdm” is a training function used in “patternnet” networks. Since “patternnet” supports only batch processing i.e. it uses the entire dataset to compute the gradient of the loss function once per iteration hence “traingdm” performs batch gradient descent with momentum. This can be computationally intensive for large datasets but provides a more stable convergence path.
On the other hand, “sgdm” is “Stochastic Gradient Descent with Momentum” which is used in CNNs. Being stochastic, it updates model parameters using a single data point (or a mini batch) at each iteration. This approach may introduce more noise in the updates but can lead to faster convergence.
You can refer to the below MATLAB answer for more details about training mechanism used in “patternnet”.
For more details, you can also refer to the following MATLAB documentations.
I hope this helps you.
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!