Add some checking of the input to LinearRegression.fit for case where y is shape (N, 1)