sklearn: Found arrays with inconsistent numbers of samples when calling LinearRegression.fit()
It looks like sklearn requires the data shape of (row number, column number). If your data shape is (row number, ) like (999, ), it does not work. By using numpy.reshape(), you should change the shape of the array to (999, 1), e.g. using In my case, it worked with that.