difference between traingdm in patternnet vs sgdm in cnn

18 vues (au cours des 30 derniers jours)
San May
San May le 15 Mai 2019
Réponse apportée : Abhipsa le 6 Fév 2025 à 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)

Réponses (1)

Abhipsa
Abhipsa le 6 Fév 2025 à 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.

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by