You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By clicking &l
8000
dquo;Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
By default gbm.plot centres (L77) the response data that it gets from plot.gbm (L71).
It would be nice if that could be turned off, so that one can easily plot the data the same way that plot.gbm exports it to csv. I was going to clone the function in my package and add this but I was wondering if you'd mind implementing the change upstream so others could avail of it? I've seen others run into this issue at various times.
The easiest way I see for this to happen would be change L77 from:
Hi Robert,
By default
gbm.plot
centres (L77) the response data that it gets fromplot.gbm
(L71).It would be nice if that could be turned off, so that one can easily plot the data the same way that
plot.gbm
exports it to csv. I was going to clone the function in my package and add this but I was wondering if you'd mind implementing the change upstream so others could avail of it? I've seen others run into this issue at various times.The easiest way I see for this to happen would be change L77 from:
responses[[j]] <- response.matrix[,2] - mean(response.matrix[,2])
to:
if (centered) {
responses[[j]] <- response.matrix[,2] - mean(response.matrix[,2])
} else {
responses[[j]] <- response.matrix[,2]
}
Then add to the function call:
centered = TRUE, # center the response data (y axis) over zero
Thanks in advance! Plus points if it allows UK English spelling (centre/centred) as well :)
Cheers,
Simon
The text was updated successfully, but these errors were encountered: