Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseEspinosa committed May 6, 2024
1 parent a2b65a5 commit 51d2412
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bin/src/learner/raytune_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def __init__(self, config_path: str, model_class: nn.Module, data_path: str, exp
"""
Initialize the TuneWrapper with the paths to the config, model, and data.
"""
self.best_config = None
self.config = YamlRayConfigLoader(config_path).get_config()
self.config["model"] = model_class
self.config["experiment"] = experiment_object
Expand Down Expand Up @@ -51,13 +50,6 @@ def tune(self) -> None:
"""
return self.tuner.fit()

def store_best_config(self, path: str) -> None:
"""
Store the best config in a file.
"""
with open(path, "w") as f:
f.write(str(self.best_config))

class TuneModel(Trainable):

def setup(self, config: dict) -> None:
Expand Down

0 comments on commit 51d2412

Please sign in to comment.