Skip to content

Commit

Permalink
Update simple_cerebros_random_search.py
Browse files Browse the repository at this point in the history
Bug fix, get_best_model
  • Loading branch information
david-thrower authored Jun 12, 2024
1 parent 92dc2f1 commit 3e89828
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ def run_random_search(self):
return best

def get_best_model(self):
best_model = tf.keras.models.load_model(self.best_model_path)
best_model_path = self.best_model_path
best_model = clone_model(tf.keras.models.load_model(best_model_path)
# best_model = tf.keras.models.load_model(self.best_model_path)
return best_model

# ->
Expand Down

0 comments on commit 3e89828

Please sign in to comment.