Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with perf_eva density plot #54

Closed
ptlarsson opened this issue Jul 4, 2021 · 2 comments
Closed

Problem with perf_eva density plot #54

ptlarsson opened this issue Jul 4, 2021 · 2 comments

Comments

@ptlarsson
Copy link

Shichen

Sometimes the density plot in the perf_eva function comes out with the y-axis not properly scaled resulting in the lines not showing.

See below for sample code and data to recreate the problem and the resulting plot. I have tested using scorecard version 0.2.4 on Windows and version 0.3.0 on Linux, same result both times.

Thanks

Tomas

require(dplyr)
require(scorecard)
x <- read.csv("M7_WOE Binomial_632.csv")
xx <- x %>% filter(modelsample=="Hold out sample")
perf_eva(xx$modelscore,xx$Churn,show_plot = "density")

M7_WOE Binomial_632.csv

Rplot.pdf

@ShichenXie
Copy link
Owner

It's strange. I can't reproduce your issue using scorecard version 0.3.3 on ubuntu. The result is as following. Please update your package and try again.

image

@ptlarsson
Copy link
Author

Yes, upgrading to 0.3.3 solved it.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants