User 1905 | 7/17/2015, 4:37:24 PM
I'm trying to adjust the way the model weighs each class in my dataset and I see that there is a parameter called 'class_weights' which allows me to set each weight individually.
The problem is that it's not clear what the 'unit' or 'metric' of this "weighing" is. The documentation says it takes a dictionary of values and that it "Weights the examples in the training data according to the given class weights." The problem is I don't know what values to provide for the class weights.
For example, should I be passing it a percentage of how to weight the class? (e.g. 20%, -15%)
Please let me know if you can help.
p.s. I believe this question also applies to SVM model and Logistic Classifier