gbm-developers / gbm

Gradient boosted models (the old gbm package)
Other
51 stars 27 forks source link

Update relative.influence.R #32

Closed see24 closed 5 years ago

see24 commented 5 years ago

This fixes the issue discussed in #31. I guess if you want users to have the flexibility you could still leave the multiplication inside the if statement but if that is the case I would recommend changing summary so that it does the multiplication before sending the n.trees to relative.influence

bgreenwell commented 5 years ago

Thanks for the PR!