freqtrade_origin/freqtrade/freqai/tensorboard/__init__.py

17 lines
539 B
Python
Raw Normal View History

# ensure users can still use a non-torch freqai version
try:
from freqtrade.freqai.tensorboard.tensorboard import TensorBoardCallback, TensorboardLogger
2024-05-12 15:12:20 +00:00
TBLogger = TensorboardLogger
TBCallback = TensorBoardCallback
except ModuleNotFoundError:
from freqtrade.freqai.tensorboard.base_tensorboard import (
BaseTensorBoardCallback,
BaseTensorboardLogger,
)
2024-05-12 15:12:20 +00:00
2023-05-12 17:47:53 +00:00
TBLogger = BaseTensorboardLogger # type: ignore
TBCallback = BaseTensorBoardCallback # type: ignore
2024-05-12 15:12:20 +00:00
__all__ = ("TBLogger", "TBCallback")