Skip to content

Commit 1aab03a

Browse files
AlejandroCN7github-actions[bot]
authored andcommitted
Automated format fixes (autopep8 + isort)
1 parent c4a6ac0 commit 1aab03a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sinergym/utils/callbacks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import warnings
5+
from copy import deepcopy
56
from typing import Any, Callable, Dict, List, Optional, Union
67

78
import gymnasium as gym
@@ -13,7 +14,6 @@
1314

1415
from sinergym.utils.evaluation import evaluate_policy
1516
from sinergym.utils.wrappers import LoggerWrapper, NormalizeObservation
16-
from copy import deepcopy
1717

1818

1919
class LoggerCallback(BaseCallback):
@@ -443,9 +443,9 @@ def _on_step(self) -> bool:
443443

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

0 commit comments

Comments
 (0)