ptpuyen1511 / my_notes

My notes which are taken while reading
2 stars 0 forks source link

Multi-class classification vs Multi-lablel classification #3

Open ptpuyen1511 opened 4 years ago

ptpuyen1511 commented 4 years ago

TL;DR

Some differences between multi-class and multi-label classification

Article link

https://towardsdatascience.com/multi-label-image-classification-with-neural-network-keras-ddc1ab1afede

Key Takeaways

Multi-class classification

softmax([5, 7, 4, 6])

[0.0871 0.6439 0.0320 0.2368]

Multi-lablel classification

sigmoid([2, -1, .15, 3]))

[0.8807 0.2689 0.5374 0.9525]

Handling data imbalace

  1. Upsampling

    But we can not simply drop the data samples with majority labels, because these data samples could be associated with other labels as well. Dropping these samples will result in loss of other labels too.

  2. Downsampling

    May lead to overfitting