Fit Lasso(alpha=1, max_iter=5000) behind the preprocessing and return how many…
Machine Learning · from Ridge and lasso
RidgeLassoElasticNetalphaRidgeCVL1 vs L2Putting the kettle on…
Starting up…
Exercise 1
Fit Lasso(alpha=1, max_iter=5000) behind the preprocessing and return how many coefficients are non-zero, as an int. It should be far fewer than 18.
your answer
stuck? the lesson behind it
Ridge and lasso
Put a price on coefficients — one shrinks them, one deletes them