diff --git a/openstef/model/regressors/linear_quantile.py b/openstef/model/regressors/linear_quantile.py index fa83970f..aa4fc57d 100644 --- a/openstef/model/regressors/linear_quantile.py +++ b/openstef/model/regressors/linear_quantile.py @@ -206,9 +206,10 @@ def fit(self, x: pd.DataFrame, y: pd.Series, **kwargs) -> RegressorMixin: return self def _calculate_sample_weights(self, y: np.array): - """Calculate sample weights based on the y values of arbitrary scale. The resulting weights are in the range. + """Calculate sample weights based on the y values of arbitrary scale. - [0,1] and are used to put more emphasis on certain samples. The sample weighting function does: + The resulting weights are in the range [0,1] and are used to put more emphasis + on certain samples. The sample weighting function does: * Rescale data to a [-1, 1] range using quantile scaling. 90% of the data will be within this range. Rest is outside.