Skip to content

Commit

Permalink
Merge pull request #54 from alliander-opensource/bugfix-release-openstf
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
gfsdekoning authored Mar 24, 2021
2 parents 0d96516 + e08e795 commit 1dc5a79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openstf/model/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 1dc5a79

Please sign in to comment.