Skip to content

Commit

Permalink
Reformatting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
clara-de-smet committed Oct 11, 2024
1 parent 482953b commit 1143f1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openstef/model/regressors/linear_quantile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1143f1d

Please sign in to comment.