You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
That is correct. However, we can also consider doing stratified splits (e.g., see sklearn) as curently we just randomly split all the data disregarding the distribution of labels. What do you think?
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.
The text was updated successfully, but these errors were encountered: