I\'ve read from this documentation that :
\"Class balancing can be done by sampling an equal number of samples from each class, or preferably by normalizing the su
If anyone is just looking for the way to compute the sample_weight like I was, you might find this handy.
sklearn.utils.class_weight.compute_sample_weight