openstef 3.4.21__py3-none-any.whl → 3.4.22__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.
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # SPDX-License-Identifier: MPL-2.0
4
4
  import re
5
- from typing import Dict, Union, Set
5
+ from typing import Dict, Union, Set, Optional
6
6
 
7
7
  import numpy as np
8
8
  import pandas as pd
@@ -45,7 +45,7 @@ class LinearQuantileOpenstfRegressor(OpenstfRegressor, RegressorMixin):
45
45
  alpha: float = 0.0,
46
46
  solver: str = "highs",
47
47
  missing_values: Union[int, float, str, None] = np.nan,
48
- imputation_strategy: str = None,
48
+ imputation_strategy: Optional[str] = "mean",
49
49
  fill_value: Union[str, int, float] = None,
50
50
  ):
51
51
  """Initialize LinearQuantileOpenstfRegressor.
@@ -82,11 +82,14 @@ def create_basecase_forecast_task(
82
82
  # Make basecase forecast using the corresponding pipeline
83
83
  basecase_forecast = create_basecase_forecast_pipeline(pj, input_data)
84
84
 
85
- # Do not store basecase forecasts for moments within next 48 hours.
85
+ # Do not store basecase forecasts for moments within the prediction job's horizon.
86
86
  # Those should be updated by regular forecast process.
87
87
  basecase_forecast = basecase_forecast.loc[
88
88
  basecase_forecast.index
89
- > (pd.to_datetime(datetime.utcnow(), utc=True) + timedelta(hours=48)),
89
+ > (
90
+ pd.to_datetime(datetime.utcnow(), utc=True)
91
+ + timedelta(minutes=pj.horizon_minutes)
92
+ ),
90
93
  :,
91
94
  ]
92
95
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openstef
3
- Version: 3.4.21
3
+ Version: 3.4.22
4
4
  Summary: Open short term energy forecaster
5
5
  Home-page: https://github.com/OpenSTEF/openstef
6
6
  Author: Alliander N.V
@@ -63,7 +63,7 @@ openstef/model/regressors/custom_regressor.py,sha256=Hsmxahc9nfSWD0aEZ6cm4pxW2no
63
63
  openstef/model/regressors/dazls.py,sha256=cCYFewJEv3Fn01wdZpaKNSiYmEwzuED7PQrrWzwyTEg,8084
64
64
  openstef/model/regressors/lgbm.py,sha256=zCdn1euEdSFxYJzH8XqQFFnb6R4JVUnmineKjX_Gy-g,800
65
65
  openstef/model/regressors/linear.py,sha256=uOvZMLGZH_9nXfmS5honCMfyVeyGXP1Cza9A_BdXlVw,3665
66
- openstef/model/regressors/linear_quantile.py,sha256=TmZi1p0H3cNFCQEdYhl36dvtxGOJ1d2EmY5BfUBRtiA,7650
66
+ openstef/model/regressors/linear_quantile.py,sha256=4RCJrvSxd_AeBmU4d8zKvwFgrgntXiQbpvwZmHrRZGY,7672
67
67
  openstef/model/regressors/regressor.py,sha256=uJcx59AyCPE9f_yPcAQ59h2ZS7eNsDpIHJrladKvHIw,3461
68
68
  openstef/model/regressors/xgb.py,sha256=HggA1U10srzdysjV560BMMX66kfaxCKAnOZB3JyyT_Y,808
69
69
  openstef/model/regressors/xgb_quantile.py,sha256=PzKIxqN_CnEPFmzXACNuzLSmZSHbooTuiJ5ckJ9vh_E,7805
@@ -86,7 +86,7 @@ openstef/preprocessing/__init__.py,sha256=bIyGTSA4V5VoOLTwdaiJJAnozmpSzvQooVYlsf
86
86
  openstef/preprocessing/preprocessing.py,sha256=bM_cSSSb2vGTD79RGzUrI6KoELbzlCyJwc7jqQGNEsE,1454
87
87
  openstef/tasks/__init__.py,sha256=bIyGTSA4V5VoOLTwdaiJJAnozmpSzvQooVYlsf8H4eU,163
88
88
  openstef/tasks/calculate_kpi.py,sha256=78DuK30ohWIHuc6oneRXalcNMXQ5mzy2qDr9xsPdSQs,11882
89
- openstef/tasks/create_basecase_forecast.py,sha256=lxor1E3WQ_XAZDYWdNJKE1PY57scz39bKu2Id9U2GwE,4126
89
+ openstef/tasks/create_basecase_forecast.py,sha256=Gk4Lsdh_wbGWx3rsJFHSu8akpckAjL92D_NUMFom-JA,4193
90
90
  openstef/tasks/create_components_forecast.py,sha256=j4m9AGjnMDx23FmsaZGPYn9rBMHsRd_h-m1RAfhF8to,6139
91
91
  openstef/tasks/create_forecast.py,sha256=NWd2fdbZ9CKDi190v7PF14IUdz6pyME2A-ssRNDdaYs,5750
92
92
  openstef/tasks/create_solar_forecast.py,sha256=bTr7NThTF6Yj405qAqRaJmlBUrL7HATqVVzsi9hMdMw,15049
@@ -100,8 +100,8 @@ openstef/tasks/utils/predictionjobloop.py,sha256=Ysy3zF5lzPMz_asYDKeF5m0qgVT3tCt
100
100
  openstef/tasks/utils/taskcontext.py,sha256=L9K14ycwgVxbIVUjH2DIn_QWbnu-OfxcGtQ1K9T6sus,5630
101
101
  openstef/validation/__init__.py,sha256=bIyGTSA4V5VoOLTwdaiJJAnozmpSzvQooVYlsf8H4eU,163
102
102
  openstef/validation/validation.py,sha256=628xaDbAm8B4AYtFOAn8_SXLjejNfULGCfX3hVf_mU0,11119
103
- openstef-3.4.21.dist-info/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
104
- openstef-3.4.21.dist-info/METADATA,sha256=oQxA5n-ScXZWQLROZ2yZZzNK7wJQt2tRk0rWzSpycEE,7393
105
- openstef-3.4.21.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
106
- openstef-3.4.21.dist-info/top_level.txt,sha256=kD0H4PqrQoncZ957FvqwfBxa89kTrun4Z_RAPs_HhLs,9
107
- openstef-3.4.21.dist-info/RECORD,,
103
+ openstef-3.4.22.dist-info/LICENSE,sha256=7Pm2fWFFHHUG5lDHed1vl5CjzxObIXQglnYsEdtjo_k,14907
104
+ openstef-3.4.22.dist-info/METADATA,sha256=dN4u_6WtkxjcAAFTzVker0y7uv0EdfKli9OUYQ4IKi4,7393
105
+ openstef-3.4.22.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
106
+ openstef-3.4.22.dist-info/top_level.txt,sha256=kD0H4PqrQoncZ957FvqwfBxa89kTrun4Z_RAPs_HhLs,9
107
+ openstef-3.4.22.dist-info/RECORD,,