11
11
from ..base import BaseEstimator , RegressorMixin , _fit_context
12
12
from ..exceptions import ConvergenceWarning
13
13
from ..utils import _safe_indexing
14
- from ..utils ._param_validation import Hidden , Interval , StrOptions
14
+ from ..utils ._param_validation import Interval , StrOptions
15
15
from ..utils .fixes import parse_version , sp_version
16
16
from ..utils .validation import _check_sample_weight
17
17
from ._base import LinearModel
@@ -44,7 +44,7 @@ class QuantileRegressor(LinearModel, RegressorMixin, BaseEstimator):
44
44
Whether or not to fit the intercept.
45
45
46
46
solver : {'highs-ds', 'highs-ipm', 'highs', 'interior-point', \
47
- 'revised simplex'}, default='interior-point '
47
+ 'revised simplex'}, default='highs '
48
48
Method used by :func:`scipy.optimize.linprog` to solve the linear
49
49
programming formulation.
50
50
@@ -55,7 +55,7 @@ class QuantileRegressor(LinearModel, RegressorMixin, BaseEstimator):
55
55
From `scipy>=1.11.0`, "interior-point" is not available anymore.
56
56
57
57
.. versionchanged:: 1.4
58
- The default of `solver` will change to `"highs"` in version 1.4.
58
+ The default of `solver` changed to `"highs"` in version 1.4.
59
59
60
60
solver_options : dict, default=None
61
61
Additional parameters passed to :func:`scipy.optimize.linprog` as
@@ -121,7 +121,6 @@ class QuantileRegressor(LinearModel, RegressorMixin, BaseEstimator):
121
121
"revised simplex" ,
122
122
}
123
123
),
124
- Hidden (StrOptions ({"warn" })),
125
124
],
126
125
"solver_options" : [dict , None ],
127
126
}
@@ -132,7 +131,7 @@ def __init__(
132
131
quantile = 0.5 ,
133
132
alpha = 1.0 ,
134
133
fit_intercept = True ,
135
- solver = "warn " ,
134
+ solver = "highs " ,
136
135
solver_options = None ,
137
136
):
138
137
self .quantile = quantile
@@ -182,17 +181,7 @@ def fit(self, X, y, sample_weight=None):
182
181
# So we rescale the penalty term, which is equivalent.
183
182
alpha = np .sum (sample_weight ) * self .alpha
184
183
185
- if self .solver == "warn" :
186
- warnings .warn (
187
- (
188
- "The default solver will change from 'interior-point' to 'highs' in"
189
- " version 1.4. Set `solver='highs'` or to the desired solver to"
190
- " silence this warning."
191
- ),
192
- FutureWarning ,
193
- )
194
- solver = "interior-point"
195
- elif self .solver in (
184
+ if self .solver in (
196
185
"highs-ds" ,
197
186
"highs-ipm" ,
198
187
"highs" ,
0 commit comments