Skip to content

Commit

Permalink
Merge pull request #159 from SebChw/trebacz626-patch-1
Browse files Browse the repository at this point in the history
Update steps.py
  • Loading branch information
SebChw authored Nov 17, 2023
2 parents 0aa4cc4 + fa6468c commit ceb1f5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions art/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ def get_check_stage(self):
"""Returns check stage"""
return TrainingStage.TRAIN.value

def log_params(self):
def log_params(self, model):
self.results["parameters"]["number_of_steps"] = self.number_of_steps
super().log_params()
super().log_params(model)


class Overfit(ModelStep):
Expand Down Expand Up @@ -508,9 +508,9 @@ def get_check_stage(self):
"""Returns check stage"""
return TrainingStage.TRAIN.value

def log_params(self):
def log_params(self, model):
self.results["parameters"]["max_epochs"] = self.max_epochs
super().log_params()
super().log_params(model)


class Regularize(ModelStep):
Expand Down Expand Up @@ -540,9 +540,9 @@ def do(self, previous_states: Dict):
art_logger.info("Training regularized model")
self.train(trainer_kwargs={"datamodule": self.datamodule})

def log_params(self):
def log_params(self, model):
self.results["parameters"].update(self.trainer_kwargs)
super().log_params()
super().log_params(model)


class Tune(ModelStep):
Expand Down

0 comments on commit ceb1f5f

Please sign in to comment.