much better input validation, test that warning is raised on (n_samples, 1) y