Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
python imbalanced data machine learning classification
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