Last active
October 15, 2021 13:34
-
-
Save liannewriting/a0d27c83a1a24da978e01524f9be51f9 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
print((df_train['Class'] == 0).sum()*weights[0] + (df_train['Class'] == 1).sum()*weights[1]) | |
print((df_train['Class'] == 0).sum() + (df_train['Class'] == 1).sum()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment