Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gfsdekoning committed Mar 24, 2021
1 parent 0d96516 commit 0005ff5
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 0005ff5

Please sign in to comment.