Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandezgarcia committed Jun 5, 2024
1 parent d689270 commit 4f4fcad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gflownet/evaluator/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def eval_and_log(self, it, metrics=None):
for m, v in results["metrics"].items():
setattr(self.gfn, m, v)
mertics_to_log = {
metrics_to_log = {
METRICS[k]["display_name"]: v for k, v in results["metrics"].items()
}
figs = self.plot(**results["data"])
self.logger.log_metrics(mertics_to_log, it, self.gfn.use_context)
self.logger.log_metrics(metrics_to_log, it, self.gfn.use_context)
self.logger.log_plots(figs, it, use_context=self.gfn.use_context)
See :mod:`gflownet.evaluator` for a full-fledged example and
Expand Down Expand Up @@ -655,13 +655,13 @@ def eval_and_log(self, it, metrics=None):
for m, v in results["metrics"].items():
setattr(self.gfn, m, v)

mertics_to_log = {
metrics_to_log = {
METRICS[k]["display_name"]: v for k, v in results["metrics"].items()
}

figs = self.plot(**results["data"])

self.logger.log_metrics(mertics_to_log, it, self.gfn.use_context)
self.logger.log_metrics(metrics_to_log, it, self.gfn.use_context)
self.logger.log_plots(figs, it, use_context=self.gfn.use_context)

def eval_and_log_top_k(self, it):
Expand Down

0 comments on commit 4f4fcad

Please sign in to comment.