File: scikit-learn-1.6.patch

package info (click to toggle)
scikit-optimize 0.10.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,684 kB
  • sloc: python: 10,659; javascript: 438; makefile: 136; sh: 6
file content (26 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 19 Oct 2025 02:54:10 +0100
Subject: Fix mixin order

scikit-learn >= 1.6 is pickier about this.

Forwarded: https://github.com/holgern/scikit-optimize/pull/8
Bug-Debian: https://bugs.debian.org/1117992
Last-Update: 2025-10-19
---
 skopt/learning/gbrt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/skopt/learning/gbrt.py b/skopt/learning/gbrt.py
index 2d39653..7259d51 100644
--- a/skopt/learning/gbrt.py
+++ b/skopt/learning/gbrt.py
@@ -9,7 +9,7 @@ def _parallel_fit(regressor, X, y):
     return regressor.fit(X, y)
 
 
-class GradientBoostingQuantileRegressor(BaseEstimator, RegressorMixin):
+class GradientBoostingQuantileRegressor(RegressorMixin, BaseEstimator):
     """Predict several quantiles with one estimator.
 
     This is a wrapper around `GradientBoostingRegressor`'s quantile