Skip to content

Instantly share code, notes, and snippets.

@saaranshM
Created December 16, 2020 11:37
Show Gist options
  • Save saaranshM/53b9b093b2a6aad05e60c3a6a66749c5 to your computer and use it in GitHub Desktop.
Save saaranshM/53b9b093b2a6aad05e60c3a6a66749c5 to your computer and use it in GitHub Desktop.
Training model using Lasso Regression
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