-
Notifications
You must be signed in to change notification settings - Fork 12
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
Partial dependence plot appears in the opposite way #108
Comments
@mcchiu do you have the code to reproduce data and type? |
@bgreenwell
|
Thanks @mcchiu, I'll take a look. For now, |
Still not sure what the exact issue is, but here's a quick fix if you still want to use ggplot2 d <- pdp:::center_ice_curves.ice(airTEMP) # center manually
ggplot(d, aes(airTEMP, yhat, group = yhat.id)) +
geom_line(alpha = 0.1) +
geom_line(data = pdp:::average_ice_curves.ice(d), color = "red",
aes(airTEMP, yhat), inherit.aes = FALSE) |
@bgreenwell Thanks for the help. Either works. I look forward to your new release. |
I build the xgboost model.
The partial dependence plot (red line) appears in the opposite way.
Could you please help out?
The text was updated successfully, but these errors were encountered: