-
Notifications
You must be signed in to change notification settings - Fork 38
isotonic calibration #795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/v4.0.0
Are you sure you want to change the base?
isotonic calibration #795
Conversation
4bd91ed to
469f92c
Compare
...penstef-models/src/openstef_models/transforms/postprocessing/isotonic_quantile_calibrator.py
Show resolved
Hide resolved
...penstef-models/src/openstef_models/transforms/postprocessing/isotonic_quantile_calibrator.py
Show resolved
Hide resolved
...penstef-models/src/openstef_models/transforms/postprocessing/isotonic_quantile_calibrator.py
Show resolved
Hide resolved
...penstef-models/src/openstef_models/transforms/postprocessing/isotonic_quantile_calibrator.py
Show resolved
Hide resolved
egordm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked it and it looks great actually.
Maybe indeed only a few nitpicks:
-
Is that we should avoid calibration if the data is too small for some reason. Just to cover all the bases.
-
100 points limit may be too strict since it picks 100 nearest points. It can also be that it's too big and thus picks irrelevant samples for quantile calculation. So adaptive sampling is probably a good default for a reason. We should probably keep it. <10 is probably too small though.
-
Because we have a fit function, it's easy to recalibrate on a recent forecast, so that's pretty nice.
Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
* feature: add Selector transform * add ForecastInputDataset testcases * add selected_features to presets * add doctest Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
…ne bug (OpenSTEF#787) Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
…lating. (OpenSTEF#790) Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
…hether there is sufficient data. Signed-off-by: Fleur Petit <fleur.petit@alliander.com>
4d8f737 to
cfba252
Compare
Summary
This PR implements a postprocessing calibration method for quantile estimation using sk-learn's IsotonicRegression.
Changes
IsotonicCalibratorto postprocessing transforms.IsotonicCalibratorfunctionality on different data with different settings.IsotonicCalibratoron observed vs expected quantilesTesting