Open dbogdanov opened 9 years ago
Implemented in 3c2ca55 (PR #86)
However when you say,
Make sure cross-validation is not affected by unbalanced data
the expected behavior is not clear for me. My intuition was to compute the weights for each fold and not globally for whole the dataset as this way the SVM input will always be balanced. Do you agree?
Libsvm supports working with unbalanced data via adding class weights. Add a new parameter for SVM configuration which will allow to configure weights for each class. Currently the weights are unassigned by default, and there is not way to configure them.
Make sure that cross-validation is not affected by unbalanced data as well.