Skip to content

Commit

Permalink
Fixed a issue of training in Windows system
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbostar committed Oct 19, 2021
1 parent 1cfd978 commit 80e737c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autort/ModelT.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, models_file:str, out_dir="./"):
def do_evaluation_after_each_epoch(self, x: bool):
self.do_evaluation_after_each_epoch = x

def add_ReduceLROnPlateau(self, x: bool):
def set_ReduceLROnPlateau(self, x: bool):
self.add_ReduceLROnPlateau = x

def set_early_stop_patience(self,x: int):
Expand Down
4 changes: 2 additions & 2 deletions autort/RTModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def ensemble_models(models_file:str, input_data:str, #test_file=None,
model_tasks[i].add_train_data(X_train, Y_train, X_test, Y_test)
model_tasks[i].set_batch_size(batch_size)
model_tasks[i].set_epoch(nb_epoch)
model_tasks[i].add_ReduceLROnPlateau(add_ReduceLROnPlateau)
model_tasks[i].set_ReduceLROnPlateau(add_ReduceLROnPlateau)
model_tasks[i].set_early_stop_patience(early_stop_patience)
model_tasks[i].do_evaluation_after_each_epoch(do_evaluation_after_each_epoch)
for j in range(n_per_task):
Expand All @@ -808,7 +808,7 @@ def ensemble_models(models_file:str, input_data:str, #test_file=None,
model_t.add_train_data(X_train, Y_train, X_test, Y_test)
model_t.set_batch_size(batch_size)
model_t.set_epoch(nb_epoch)
model_t.add_ReduceLROnPlateau(add_ReduceLROnPlateau)
model_t.set_ReduceLROnPlateau(add_ReduceLROnPlateau)
model_t.set_early_stop_patience(early_stop_patience)
model_t.do_evaluation_after_each_epoch(do_evaluation_after_each_epoch)
for (name, dp_model_file) in model_list['dp_model'].items():
Expand Down

0 comments on commit 80e737c

Please sign in to comment.