def log_metrics(self, run_context: Run = None) -> None: """ Log metrics for each epoch to the provided runs logs, or the current run context if None provided :param run_context: Run for which to log the metrics to, use the current run context if None provided :return: """ run_context = get_run_context_or_default(run_context) run_context.log_table(name=self.get_metrics_log_key(), value={"Dice": self.metrics})
def log_metrics(self, run_context: Run = None) -> None: """ Log metrics for each epoch to the provided runs logs, or the current run context if None provided :param run_context: Run for which to log the metrics to, use the current run context if None provided :return: """ run_context = get_run_context_or_default(run_context) keys = sorted(self.epochs.keys()) run_context.log_table(name=self.get_metrics_log_key(), value={ "Checkpoint": keys, "Dice": [self.epochs[x] for x in keys] })