From 7bd577791c31c06c9073b2cfaefa9b2c3bfd76d2 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Tue, 31 Oct 2023 18:37:43 +0000 Subject: [PATCH] Forecaster component: - Added FORECAST_TO_HISTORY_RATIO config setting --- src/forecaster/Config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/forecaster/Config.py b/src/forecaster/Config.py index 1549d9811..0d80b8fe6 100644 --- a/src/forecaster/Config.py +++ b/src/forecaster/Config.py @@ -12,3 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os + +# FORECAST_TO_HISTORY_RATIO indicates the size of the trainset. +# For example a history ratio of 10 would imply that the train-set will be 10 times bigger +# than the forecast period and the test-set. +DEFAULT_FORECAST_TO_HISTORY_RATIO = 10 +FORECAST_TO_HISTORY_RATIO = int(os.environ.get('FORECAST_TO_HISTORY_RATIO', DEFAULT_FORECAST_TO_HISTORY_RATIO)) -- GitLab