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