Linear Models for Regression — Applied Machine Learning in Python

PHOTO EMBED

Sun Oct 29 2023 05:59:37 GMT+0000 (Coordinated Universal Time)

Saved by @elham469

np.sum(np.abs(grid.best_estimator_.coef_) > 1e-10)
content_copyCOPY

We can also compute the number of non-zero coefficients of the best model found

https://amueller.github.io/aml/02-supervised-learning/05-linear-models-regression.html