Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active October 15, 2021 13:34
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/4f1e0efe6bae78467b1e59d01dc5cf57 to your computer and use it in GitHub Desktop.
Save liannewriting/4f1e0efe6bae78467b1e59d01dc5cf57 to your computer and use it in GitHub Desktop.
python imbalanced data machine learning classification
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