scikit-learn/scikit-learn — pull request #1491 by amueller (2012-12-24 17:18:50+00:00)
Title: [WIP] LibLinear class weights fix

Fixes #1411.

It seems I broke that in 5427f81c66838c92202c609e27cd92786474aa17.
The current tests for class weights seem really bad. I could invert the meaning of the class weights and they still passed! This branch contains tests for all estimators supporting class_weight.

I will also try to improve the tests in the svm module.
If everything works, I'll add another comment to linear.cpp.