Created
March 14, 2021 22:09
-
-
Save GabrielSGoncalves/2d3c8256428e38aa2d25abb708fd3afc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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