Skip to content

Instantly share code, notes, and snippets.

@MoGaber
Created December 14, 2020 05:14
Show Gist options
  • Save MoGaber/52996608d434b44579bd06df31947d71 to your computer and use it in GitHub Desktop.
Save MoGaber/52996608d434b44579bd06df31947d71 to your computer and use it in GitHub Desktop.
train_test
x_train, x_test, y_train, y_test = train_test_split(resampled_data, target, test_size=0.2, random_state=42)
LR = LogisticRegression(max_iter = 10000)
LR.fit(x_train, y_train)
LR.score(x_test, y_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment