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

Wrong plot labels in partial dependence plots #17

Closed
Andy-McCarthy opened this issue Oct 20, 2017 · 1 comment
Closed

Wrong plot labels in partial dependence plots #17

Andy-McCarthy opened this issue Oct 20, 2017 · 1 comment

Comments

@Andy-McCarthy
Copy link

@Andy-McCarthy Andy-McCarthy commented Oct 20, 2017

library(gbm)
Heart <- read.csv("http://www-bcf.usc.edu/~gareth/ISL/Heart.csv")
Heart <- Heart[complete.cases(Heart),]
Heart$AHD <- ifelse(Heart$AHD == "Yes",1,0)
boost_heart <- gbm(AHD ~ ., data = Heart, distribution = "bernoulli", n.trees = 10000, interaction.depth = 4)
best.iter <- gbm.perf(boost_heart, method = "OOB")
plot(boost_heart, i.var = c("Thal","ChestPain"), n.trees = best.iter)
@bgreenwell
Copy link
Contributor

@bgreenwell bgreenwell commented Oct 26, 2017

Potentially fixed, but needs more testing, so keeping this open for now.

@bgreenwell bgreenwell closed this Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.