Skip to content

Instantly share code, notes, and snippets.

@tommydangerous
Created June 11, 2021 05:52
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 tommydangerous/89b54f330f706c68846cfb43f847b1ce to your computer and use it in GitHub Desktop.
Save tommydangerous/89b54f330f706c68846cfb43f847b1ce to your computer and use it in GitHub Desktop.
baseline_accuracy.py
baseline_accuracy_score = y_test.value_counts()[0] / len(y_test)
print(f'Model performance. : {accuracy}')
print(f'Baseline performance: {baseline_accuracy_score}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment