I have a problem with three classes with unbalanced data (90%, 5%, 5%). Now I want to train the classifier using LIBSVM.
The problem is that LIBSVM optimizes its gamma and Cost parameter for optimal accuracy, which means that 100% of the examples are classified as class 1, which, of course, is not what I want.
I tried modifying the -w weight parameters without much success.
So what I want is changing grid.py so that it optimizes Cost and gamma for accuracy and recall separated by classes, and not for general accuracy. Is there any way to do this? Or are there other scripts that can do something like this?
Damnum
source share