How to give equal importance of all labels while dealing with unbalanced samples

Duplicate of How can I use class_weights when training? - #9 by para