what is the loss function of pre-trained EfficientNet-B0
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
For validation, we trained CNN models using the pre-trained EfficientNet-B0 with 'deepNetDesigner -v1'. However, the code only shows 'Loss' without specifying which loss function is being used. If no loss function is explicitly set, which one is applied by default?
1 Kommentar
Haelee
am 24 Mär. 2025
I believe the loss function is configured when we train the model. I assume you might have used "trainnet" function after loading the pre-trained EfficientNet-B0 model, and the function receives the Loss Function as its parameter. If you've applied a different workflow, please give us more information about that.
Antworten (1)
Jayanti
am 22 Aug. 2025
Hi Hyeokjun,
Since loss function is to be configured while training. I assume you have exported the code and are training the network using "trainNetwork". In this workflow, since the loss function is not specified manually it should be determined by the type of the final layer in the network.
- If the network ends with a classification layer, it uses cross-entropy loss.
- If the network ends with a regression layer, it uses mean squared error (MSE).
Since EfficientNet-B0 is a classification model, the loss should be cross-entropy loss.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox 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!