mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
avoid typing issues in the tensorboard callback
This commit is contained in:
parent
e86980befa
commit
c6f3a3bbca
|
@ -3,9 +3,8 @@ from typing import Any, Dict, Type, Union
|
|||
|
||||
from stable_baselines3.common.callbacks import BaseCallback
|
||||
from stable_baselines3.common.logger import HParam
|
||||
from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv, VecMonitor
|
||||
|
||||
from freqtrade.freqai.RL.BaseEnvironment import BaseActions, BaseEnvironment
|
||||
from freqtrade.freqai.RL.BaseEnvironment import BaseActions
|
||||
|
||||
|
||||
class TensorboardCallback(BaseCallback):
|
||||
|
@ -17,8 +16,6 @@ class TensorboardCallback(BaseCallback):
|
|||
super().__init__(verbose)
|
||||
self.model: Any = None
|
||||
self.logger = None # type: Any
|
||||
self.training_env: Union[BaseEnvironment, SubprocVecEnv,
|
||||
VecMonitor, DummyVecEnv] = DummyVecEnv()
|
||||
self.actions: Type[Enum] = actions
|
||||
|
||||
def _on_training_start(self) -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user