Last active
October 18, 2021 17:27
-
-
Save liannewriting/f077d5df6f46404c174f856a03f90bb6 to your computer and use it in GitHub Desktop.
python imbalanced data machine learning classification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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