From c542d94719f7e6df0ae95a720b79918e56cb62d1 Mon Sep 17 00:00:00 2001 From: Reid Johnson Date: Fri, 26 Jul 2024 21:16:05 -0700 Subject: [PATCH] Add note on interpolation (#64) --- quantile_forest/_quantile_forest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quantile_forest/_quantile_forest.py b/quantile_forest/_quantile_forest.py index 1c49eed..4aa70ef 100755 --- a/quantile_forest/_quantile_forest.py +++ b/quantile_forest/_quantile_forest.py @@ -491,6 +491,11 @@ def predict( - If "nearest", then ``i`` or ``j``, whichever is nearest. - If "midpoint", then ``(i + j) / 2``. + .. note:: + When `max_samples_leaf=1`, the specific interpolation + options will depend on those available in the NumPy + `percentile` and `nanpercentile` methods. + weighted_quantile : bool, default=True Calculate a weighted quantile. Weighted quantiles are computed by assigning weights to each training sample, while unweighted