lorismichel / quantregForest

R package - Quantile Regression Forests, a tree-based ensemble method for estimation of conditional quantiles (Meinshausen, 2006).
25 stars 6 forks source link

function sample not working for single-leaf observation in the OOB prediction #4

Closed lorismichel closed 6 years ago

lorismichel commented 6 years ago

There is a bug in the computation of OOB quantile prediction due to the fact that the function sample has the following property:

sample(c(3), size = 1) gives an integer smaller or equal to 3 and not always 3.

I will fix that in a branch called:

fix-sample

lorismichel commented 6 years ago

this issue was solved in #5