From 1ed084557a353f4fc24d5181cccda55ad92d455a Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sun, 14 May 2023 15:44:41 +0000 Subject: [PATCH] try even more deactivation --- freqtrade/freqai/utils.py | 2 +- tests/freqai/test_freqai_interface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqai/utils.py b/freqtrade/freqai/utils.py index cc803ae1e..e40b143d7 100644 --- a/freqtrade/freqai/utils.py +++ b/freqtrade/freqai/utils.py @@ -191,7 +191,7 @@ def get_timerange_backtest_live_models(config: Config) -> str: def get_tb_logger(model_type: str, path: Path, activate: bool) -> Union[TBLogger, BaseTensorboardLogger]: tb_logger: Union[TBLogger, BaseTensorboardLogger] - if model_type == "pytorch": + if model_type == "pytorch" and activate: tb_logger = TBLogger(path, activate) else: tb_logger = BaseTensorboardLogger(path, activate) diff --git a/tests/freqai/test_freqai_interface.py b/tests/freqai/test_freqai_interface.py index 5eff3f3f6..70b2a3b08 100644 --- a/tests/freqai/test_freqai_interface.py +++ b/tests/freqai/test_freqai_interface.py @@ -37,7 +37,7 @@ def can_run_model(model: str) -> None: pytest.skip("Reinforcement learning / PyTorch module not available on intel based Mac OS.") if "XGBoost" in model and is_mac(): - pytest.skip("Mac doesn't tb callbacks?") + pytest.skip("Mac github CI does not have enough memory/threads to run this test.") @pytest.mark.parametrize('model, pca, dbscan, float32, can_short, shuffle, buffer', [