Skip to content

Commit

Permalink
Automated format fixes (autopep8 + isort)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCN7 authored and github-actions[bot] committed Jul 2, 2024
1 parent c4a6ac0 commit 1aab03a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sinergym/utils/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import warnings
from copy import deepcopy
from typing import Any, Callable, Dict, List, Optional, Union

import gymnasium as gym
Expand All @@ -13,7 +14,6 @@

from sinergym.utils.evaluation import evaluate_policy
from sinergym.utils.wrappers import LoggerWrapper, NormalizeObservation
from copy import deepcopy


class LoggerCallback(BaseCallback):
Expand Down Expand Up @@ -443,9 +443,9 @@ def _on_step(self) -> bool:

if self.verbose >= 1:
print(f"Eval num_timesteps={self.num_timesteps}, " f"episode_reward={
cumulative_reward:.2f} +/- {std_cumulative_reward:.2f}")
cumulative_reward: .2f} + /- {std_cumulative_reward: .2f}")
print(f"Episode length: {
mean_ep_length:.2f} +/- {std_ep_length:.2f}")
mean_ep_length: .2f} + /- {std_ep_length: .2f}")
# Add to current Logger (our custom metrics)
for key, metric in self.evaluation_metrics.items():
self.logger.record('eval/' + key, metric)
Expand Down

0 comments on commit 1aab03a

Please sign in to comment.