For loop in custom loss function of deep neural network
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jubeyer Rahman
am 9 Dez. 2019
Kommentiert: Jubeyer Rahman
am 13 Dez. 2019
Hi,
Can anyone tell me whether matlab allows for loop in the customized loss function of a deep neural network?
Does it support complex number calculation in the custom loss function as well?
0 Kommentare
Akzeptierte Antwort
Mahesh Taparia
am 13 Dez. 2019
Hi Jubeyer
You can define a custom loss function in MATLAB, for example you can refer to this link. You can use for loop inside this loss function. Using for loop in the loss function will slower the training process as this function will be called for each batch of each epoch.
11 Kommentare
Mahesh Taparia
am 13 Dez. 2019
Take the transpose of V_Y as you already did in your code previously.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!