Remove distracting debug print statements
This commit is contained in:
@@ -51,14 +51,13 @@ class SB3Policy(PolicyABC, identifier="SB3"):
|
|||||||
|
|
||||||
def eval(self, n_episodes: int, deterministic: bool) -> None:
|
def eval(self, n_episodes: int, deterministic: bool) -> None:
|
||||||
"""Evaluate the agent."""
|
"""Evaluate the agent."""
|
||||||
reward_data = evaluate_policy(
|
_ = evaluate_policy(
|
||||||
self._agent,
|
self._agent,
|
||||||
self.session.env,
|
self.session.env,
|
||||||
n_eval_episodes=n_episodes,
|
n_eval_episodes=n_episodes,
|
||||||
deterministic=deterministic,
|
deterministic=deterministic,
|
||||||
return_episode_rewards=True,
|
return_episode_rewards=True,
|
||||||
)
|
)
|
||||||
print(reward_data)
|
|
||||||
|
|
||||||
def save(self, save_path: Path) -> None:
|
def save(self, save_path: Path) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class DatabaseService(Service):
|
|||||||
|
|
||||||
def reset_component_for_episode(self, episode: int):
|
def reset_component_for_episode(self, episode: int):
|
||||||
"""Reset the original state of the SimComponent."""
|
"""Reset the original state of the SimComponent."""
|
||||||
print("Resetting DatabaseService original state on node {self.software_manager.node.hostname}")
|
_LOGGER.debug("Resetting DatabaseService original state on node {self.software_manager.node.hostname}")
|
||||||
self.connections.clear()
|
self.connections.clear()
|
||||||
super().reset_component_for_episode(episode)
|
super().reset_component_for_episode(episode)
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ class WebServer(Service):
|
|||||||
state["last_response_status_code"] = (
|
state["last_response_status_code"] = (
|
||||||
self.last_response_status_code.value if isinstance(self.last_response_status_code, HttpStatusCode) else None
|
self.last_response_status_code.value if isinstance(self.last_response_status_code, HttpStatusCode) else None
|
||||||
)
|
)
|
||||||
print(state)
|
|
||||||
return state
|
return state
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user