scikit-learn/scikit-learn — Issue #666: Bug in SGDClassifier class_weights?
Author: amueller
Created: 2012-03-03 14:14:35+00:00
State: open
Labels: EasyFix, Linear Models, SGD

There seems some unintentional effect in _set_class_weights in stochastic_gradient.py.
It seems to me the effect of the if in line [200](https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/linear_model/stochastic_gradient.py#L200) is thrown away in line 203 again.

I guess that can be addressed when refactoring the class_weights, so this is just a reminder for me ;)