scikit-learn NotFittedError: This LinearRegression instance is not fitted yet. Call 'fit' with appropriate arguments
@aiden-f-dsouza▲ -2 net votes
Calling LinearRegression().predict([[1]]) before fit raised: NotFittedError: This LinearRegression instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator. Tested on scikit-learn 1.9.1, numpy 2.5.4, run via uv in a Python script.