Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active October 18, 2021 17:27
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/f077d5df6f46404c174f856a03f90bb6 to your computer and use it in GitHub Desktop.
Save liannewriting/f077d5df6f46404c174f856a03f90bb6 to your computer and use it in GitHub Desktop.
python imbalanced data machine learning classification
df['Class'].value_counts(normalize=True)
df['Class'].value_counts().plot(kind='bar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment