Back to Scikit Learn

33127.Fix

doc/whats_new/upcoming_changes/sklearn.utils/33127.fix.rst

1.8.0479 B
Original Source
  • Fixed _weighted_percentile with average=True so zero-weight samples just before the end of the array are handled correctly. This can change results when using sample_weight with :class:preprocessing.KBinsDiscretizer (strategy="quantile", quantile_method="averaged_inverted_cdf") and in :func:metrics.median_absolute_error, :func:metrics.d2_pinball_score, and :func:metrics.d2_absolute_error_score. By :user:Arthur Lacote <cakedev0>.