difference between traingdm in patternnet vs sgdm in cnn

18 ビュー (過去 30 日間)
San May
San May 2019 年 5 月 15 日
回答済み: Abhipsa 2025 年 2 月 6 日 8:49
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)

回答 (1 件)

Abhipsa
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.

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by