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.
- openstef/model/confidence_interval_applicator.py +15 -3
- {openstef-3.4.25.dist-info → openstef-3.4.27.dist-info}/METADATA +1 -1
- {openstef-3.4.25.dist-info → openstef-3.4.27.dist-info}/RECORD +6 -6
- {openstef-3.4.25.dist-info → openstef-3.4.27.dist-info}/LICENSE +0 -0
- {openstef-3.4.25.dist-info → openstef-3.4.27.dist-info}/WHEEL +0 -0
- {openstef-3.4.25.dist-info → openstef-3.4.27.dist-info}/top_level.txt +0 -0
@@ -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
|
-
|
65
|
-
|
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
|
|
@@ -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=
|
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.
|
87
|
-
openstef-3.4.
|
88
|
-
openstef-3.4.
|
89
|
-
openstef-3.4.
|
90
|
-
openstef-3.4.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|