Created
December 16, 2020 12:11
-
-
Save saaranshM/447ff5ea1fd9e55cdc0829398377bbf0 to your computer and use it in GitHub Desktop.
Training model using elastic net.
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 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