gbm-developers / gbm

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

Suggestion to clarify an error message #59

Closed rachaelvp closed 8 months ago

rachaelvp commented 3 years ago

Hello,

I was getting this error when trying to run gbm.fit: The data set is too small or the subsampling rate is too large: nTrain * bag.fraction <= n.minobsinnode.

I modified my arguments to ensure nTrain * bag.fraction > n.minobsinnode. However, I was still getting the error. Upon closer examination of the source code, I see here that the error is generated when nTrain * bag.fraction <= 2 * n.minobsinnode + 1. This error is different that the one reported in the message, so I suggest correcting the inequality in the error message.

gregridgeway commented 8 months ago

Fixed in 2.2.0