Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GabrielSGoncalves/2d3c8256428e38aa2d25abb708fd3afc to your computer and use it in GitHub Desktop.
Save GabrielSGoncalves/2d3c8256428e38aa2d25abb708fd3afc to your computer and use it in GitHub Desktop.
from optbinning.scorecard.plots import plot_ks, plot_auc_roc
# Assign score and predicted probability to test dataset
df_application_test.loc[:,"score"] = scorecard.score(df_application_test)
# Kolmogorov_Smirnov Plot
plot_ks(df_application_test.TARGET, df_application_test.score)
# ROC-AUC plot
plot_auc_roc(df_application_test.TARGET, df_application_test.score)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment