From 0005ff5bc5134f0ec4c4fd1653d35b6ce3ae6e6e Mon Sep 17 00:00:00 2001 From: gfsdekoning Date: Wed, 24 Mar 2021 17:13:45 +0100 Subject: [PATCH 1/2] bugfix --- openstf/model/train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstf/model/train.py b/openstf/model/train.py index bbf8093ae..8b90b2ade 100644 --- a/openstf/model/train.py +++ b/openstf/model/train.py @@ -197,7 +197,7 @@ def preprocess_for_model_training(pj, context): featureset = context.database.get_featureset(hyperparams["featureset_name"]) datetime_start = datetime.utcnow() - timedelta( - days=hyperparams["training_period_days"] + days=int(hyperparams["training_period_days"]) ) datetime_end = datetime.utcnow() @@ -237,7 +237,7 @@ def train_model(model_trainer, split_input_data): validation and test """ # Train model - model_trainer.train(split_input_data.train_data, split_input_data.validation_data) + model_trainer.train(split_input_data.train, split_input_data.validation) def predict_after_model_training(pj, model_trainer, split_input_data): From e08e79500f56ba30d152ab62feb92d12e721378f Mon Sep 17 00:00:00 2001 From: gfsdekoning Date: Wed, 24 Mar 2021 17:15:16 +0100 Subject: [PATCH 2/2] update version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3c96b7408..88580d618 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def read_long_description_from_readme(): setup( name="openstf", - version="1.5.8", + version="1.5.9", packages=find_packages(include=["openstf", "openstf.*"]), description="Open short term forcasting", long_description=read_long_description_from_readme(),