gbm-developers / gbm3

Gradient boosted models
134 stars 116 forks source link

fixed distribution element when converting to old format #147

Closed gravesee closed 7 years ago

gravesee commented 7 years ago

old print.gbm has this snippet:

dist.name <- x$distribution$name

The conversion function did not follow this format and instead made "distribution" a top level element of the gbm object rather than a list with a named element of "name".