Multilabel Image Classification Using Deep Learning--Imbalanced Data
Mostrar comentarios más antiguos
When I use imbalanced multilabel data to study the example ''openExample('nnet/MultilabelImageClassificationUsingDeepLearningExample') '' ,I found that the loss funtion(CustomBinaryCrossEntropyLossLayer.m, crossentropy) could not be weightd. So I want to use classificationlayer to replace, but classificationlayer could not used in multilabel data.
The crossentropy fuction in supporting file doesn't have Multi-label classificaion with weighted classes.The label is onehotlabel and we use sigmoid instead of softmax.So ,how can I create the outputlayer to achieve Multi-label classificaion with weighted classes?

3 comentarios
AJ Ibraheem
el 1 de Sept. de 2022
Have you tried modifying the custom layer to receive class weights and using that in the cross-entropy calculation?
XT
el 2 de Sept. de 2022
Tarily
el 13 de Jun. de 2023
Did you solve this problem? I have the same issue now and I hope to get your help.😭
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!