powered by
Compute loss.weights so that total losses of each class is balanced
balanced.loss.weights(y)
a object coerced to factor that represent the class labels of each sample of the dataset
a numeric vector of the same length as y