Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 10, 2020 07:41
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 amankharwal/ba329a4a595c3f6fdf1401430698a64d to your computer and use it in GitHub Desktop.
Save amankharwal/ba329a4a595c3f6fdf1401430698a64d to your computer and use it in GitHub Desktop.
test_score = accuracy_score(y_test, lr_clf.predict(X_test)) * 100
train_score = accuracy_score(y_train, lr_clf.predict(X_train)) * 100
results_df = pd.DataFrame(data=[["Logistic Regression", train_score, test_score]],
columns=['Model', 'Training Accuracy %', 'Testing Accuracy %'])
results_df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment