- Python 3
- scikit-learn-0.23.1
- numpy-1.18.4
- scipy-1.4.1
Is it possible to extract the number of iterations it took to fit the regression model (by Gradient Descent)? Aside from the general model evaluation metrics, I don't see anything related to iteration number.
regressor = LinearRegression()
regressor.fit(xtr, ytr)
print('Mean Absolute Error:', metrics.mean_absolute_error(yt, y_pred))
print('Mean Squared Error:', metrics.mean_squared_error(yt, y_pred))
print('Root Mean Squared Error:', np.sqrt(metrics.mean_squared_error(yt, y_pred)))
Scikit documentation showing all possible metric modules