Created
December 16, 2020 11:37
-
-
Save saaranshM/53b9b093b2a6aad05e60c3a6a66749c5 to your computer and use it in GitHub Desktop.
Training model using Lasso Regression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.linear_model import Lasso | |
lasso_reg = Lasso(alpha=0.1) | |
lasso_reg.fit(X, y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment