mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix deprecation warning from tensorboard-callback
This commit is contained in:
parent
27bae60b68
commit
58550515ad
|
@ -49,7 +49,7 @@ class TensorboardCallback(BaseCallback):
|
|||
local_info = self.locals["infos"][0]
|
||||
if self.training_env is None:
|
||||
return True
|
||||
tensorboard_metrics = self.training_env.get_attr("tensorboard_metrics")[0]
|
||||
tensorboard_metrics = self.training_env.envs[0].unwrapped.tensorboard_metrics
|
||||
|
||||
for metric in local_info:
|
||||
if metric not in ["episode", "terminal_observation"]:
|
||||
|
|
Loading…
Reference in New Issue
Block a user