scikit-learn/scikit-learn — pull request #3578 by jnothman (2014-08-20 02:51:39+00:00)
Title: [MRG] PLSRegression again supports 1d target

`plot_compare_cross_decomposition.py` was broken by the change in validation helper functions: `_PLS` calls `Y = check_array(Y)` which returns `Y[None, :]` if Y is 1d. It should be `Y[:, None]`.

Note that the 1d input, while used in an example, was not covered by the docstring (nor tested, obviously). I would like to check that this is correct behaviour.