Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Jul 7, 2023
1 parent 502e5fe commit 252766f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybroker/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ def train_models(
return models
if models:
scope.logger.info_loaded_models(models.keys())
start_date = to_datetime(train_dates[0])
end_date = to_datetime(train_dates[-1])
for model_sym in uncached_model_syms:
if model_sym in models:
continue
Expand All @@ -361,8 +363,6 @@ def train_models(
model_result = source(sym, sym_train_data, sym_test_data)
scope.logger.info_train_model_completed(model_sym)
elif isinstance(source, ModelLoader):
start_date = to_datetime(train_dates[0])
end_date = to_datetime(train_dates[-1])
model_result = source(sym, start_date, end_date)
scope.logger.info_loaded_model(model_sym)
else:
Expand Down

0 comments on commit 252766f

Please sign in to comment.