Skip to content

Instantly share code, notes, and snippets.

@saaranshM
Created December 16, 2020 12:11
Show Gist options
  • Save saaranshM/447ff5ea1fd9e55cdc0829398377bbf0 to your computer and use it in GitHub Desktop.
Save saaranshM/447ff5ea1fd9e55cdc0829398377bbf0 to your computer and use it in GitHub Desktop.
Training model using elastic net.
from sklearn.linear_model import ElasticNet
elastic_net = ElasticNet(alpha=0.1, l1_ratio=0.5, random_state=42)
elastic_net.fit(X, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment