scikit-learn/scikit-learn — comment on commit 20fbfc2eecc186dc9757a90e76290ff56c6e7e62
File: sklearn/linear_model/base.py line 177
By mblondel:

As @amueller pointed out, this must be done only when `len(y.shape) == 1`.