Why could it be that
GradientBoostingClassifier(loss='ls')
failure:
raise ValueError("``n_classes`` must be 1 for regression")
ValueError: ``n_classes`` must be 1 for regression
and does it work fine with loss='deviance'?
I use scikit-learn-0.11 with scipy-0.11.0rc1 on 64-bit Ubuntu. This happened with the classification of the dataset with the binary class "YES" "NO".
source
share