openstef 3.4.25__py3-none-any.whl → 3.4.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,9 +61,21 @@ class ConfidenceIntervalApplicator:
61
61
  temp_forecast = self._add_standard_deviation_to_forecast(forecast)
62
62
 
63
63
  if self.model.can_predict_quantiles:
64
- return self._add_quantiles_to_forecast_quantile_regression(
65
- temp_forecast, pj["quantiles"]
66
- )
64
+ # Try to generate the quantiles that were requested
65
+ try:
66
+ result = self._add_quantiles_to_forecast_quantile_regression(
67
+ temp_forecast, pj["quantiles"]
68
+ )
69
+ return result
70
+ except Exception:
71
+ # Fallback on quantiles of the model if the requested quantiles cant be generated by the model.
72
+ # Can happen when the model was trained on different quantiles than are requested
73
+ result = self._add_quantiles_to_forecast_quantile_regression(
74
+ temp_forecast, self.model.quantiles
75
+ )
76
+ self.logger.warning('Quantiles are requested the model was not trained on. Using the quantiles the model was trained on',
77
+ requested_quantiles=pj["quantiles"], trained_quantiles=self.model.quantiles)
78
+ return result
67
79
 
68
80
  return self._add_quantiles_to_forecast_default(temp_forecast, pj["quantiles"])
69
81
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openstef
3
- Version: 3.4.25
3
+ Version: 3.4.27
4
4
  Summary: Open short term energy forecaster
5
5
  Home-page: https://github.com/OpenSTEF/openstef
6
6
  Author: Alliander N.V
@@ -29,7 +29,7 @@ openstef/metrics/metrics.py,sha256=si93EP2i34v3IPg-nOcm_aheoFAdu46i3azV_PjPmF8,1
29
29
  openstef/metrics/reporter.py,sha256=w1Q6xWoYGmvnjwjXik-Gz7_gnb0lOeJMep-whEV5mNk,7897
30
30
  openstef/model/__init__.py,sha256=bIyGTSA4V5VoOLTwdaiJJAnozmpSzvQooVYlsf8H4eU,163
31
31
  openstef/model/basecase.py,sha256=caI6Q-8y0ymlxGK9Js_H3Vh0q6ruNHlGD5RG0_kE5M0,2878
32
- openstef/model/confidence_interval_applicator.py,sha256=XAk3m4gPhneCoQJlOmyEcoeI0sdHNC-ch4T1CWWHPrQ,8934
32
+ openstef/model/confidence_interval_applicator.py,sha256=jd6W5jLw3U7leTxWsf3RFGAfOjWd33jOYvldZUF-Wlo,9728
33
33
  openstef/model/fallback.py,sha256=VV9ehgnoMZtWzqKk9H1t8wnERFh5CyC4TvDIuRP_ZDI,2861
34
34
  openstef/model/model_creator.py,sha256=rQI7aEUcNI58x43vHmIRCIhymCis56SfLo3bhPBn410,5755
35
35
  openstef/model/objective.py,sha256=2wPoONbk11WbySyPyqFMmXBx2lDFeUq_7jFPaCNETao,14572
@@ -83,8 +83,8 @@ openstef/tasks/utils/predictionjobloop.py,sha256=Ysy3zF5lzPMz_asYDKeF5m0qgVT3tCt
83
83
  openstef/tasks/utils/taskcontext.py,sha256=L9K14ycwgVxbIVUjH2DIn_QWbnu-OfxcGtQ1K9T6sus,5630
84
84
  openstef/validation/__init__.py,sha256=bIyGTSA4V5VoOLTwdaiJJAnozmpSzvQooVYlsf8H4eU,163
85
85
  openstef/validation/validation.py,sha256=628xaDbAm8B4AYtFOAn8_SXLjejNfULGCfX3hVf_mU0,11119
86
- openstef-3.4.25.dist-info/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
87
- openstef-3.4.25.dist-info/METADATA,sha256=RahtAo0FrqIzmTJhj7dvqCRL53PlDod_bUGASwLxnKU,7394
88
- openstef-3.4.25.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
89
- openstef-3.4.25.dist-info/top_level.txt,sha256=kD0H4PqrQoncZ957FvqwfBxa89kTrun4Z_RAPs_HhLs,9
90
- openstef-3.4.25.dist-info/RECORD,,
86
+ openstef-3.4.27.dist-info/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
87
+ openstef-3.4.27.dist-info/METADATA,sha256=ihPPQxI45vuOqRWcg71UtkfH_hHKgeBSctu6sJXnoMo,7394
88
+ openstef-3.4.27.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
89
+ openstef-3.4.27.dist-info/top_level.txt,sha256=kD0H4PqrQoncZ957FvqwfBxa89kTrun4Z_RAPs_HhLs,9
90
+ openstef-3.4.27.dist-info/RECORD,,