Linear Models for Regression — Applied Machine Learning in Python

PHOTO EMBED

Sat Oct 28 2023 07:46:21 GMT+0000 (Coordinated Universal Time)

Saved by @elham469

np.sum(grid.best_estimator_.coef_ != 0)
content_copyCOPY

for finding the number of features used in Lasso regression

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