harrysouthworth / gbm

Gradient boosted models
Other
106 stars 27 forks source link

Rounding error in quantile() - variable N: foo has no variation. #16

Closed w3iBStime closed 9 years ago

w3iBStime commented 10 years ago

Due to what appears to be a bug in the quantile() function from the stats package, it doesn't seem to be a reliable way of determining if a numeric vector is non-varying.

Here's the bug I filed against the quantile() function: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15746

...and here's where it gets used in gbm: https://github.com/harrysouthworth/gbm/blob/master/R/gbm.fit.R#L90-L100

harrysouthworth commented 9 years ago

This issue was moved to gbm-developers/gbm#12