Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active January 24, 2020 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liannewriting/609a45014f0d8713c6611f358cf73c42 to your computer and use it in GitHub Desktop.
Save liannewriting/609a45014f0d8713c6611f358cf73c42 to your computer and use it in GitHub Desktop.
sports_betting202001
df_train = df_model # not required but I like to rename my dataframe with the name train.
lr = Ridge(alpha=0.001)
X = df_train.drop(['goal_difference'], axis=1)
y = df_train['goal_difference']
lr.fit(X, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment