Regarding GAN and its loss objective
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Deepak Sivadas
le 13 Déc 2019
Réponse apportée : Sourav Bairagya
le 16 Déc 2019
How to use 'mse' as loss function?
In the example provided, sigmoid is used. How to modify the function to make the loss objective as minimum mse.
0 commentaires
Réponse acceptée
Sourav Bairagya
le 16 Déc 2019
You can use 'mse' function from Deep Learning Toolbox which calculates half mean sqaured error between given two inputs.
dlY = mse(dlX,targets);
Format for 'dlX' or 'targets' will be as follows: [height, width, no of channels, no of observations].
'dlX' and 'targets' can be of datatype dlarray or numeric array.
If you want to use whole mse loss, then multiply the output with 2, i.e.
dlY = 2*mse(dlX,targets);
For more information you can leverage this link:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox 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!