gbm-developers / gbm

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

Fix if statement in relative.influence() #74

Closed CharlesBordet closed 1 year ago

CharlesBordet commented 1 year ago

The if statement was raising a warning when distribution is defined as a list (ex: list(name = "tdist", df = 6)) for R 4.1 and before.

The warning became an error since R 4.2+.

Since the name of the distribution is always named, the name is available under object$distribution$name.

This closes #57

bgreenwell commented 1 year ago

Thanks @CharlesBordet!