From f3a1177badd09e84c81e0f220b77c36082a656d8 Mon Sep 17 00:00:00 2001 From: initrv Date: Mon, 13 Mar 2023 17:53:35 +0300 Subject: [PATCH] bring inc back --- freqtrade/freqai/RL/BaseEnvironment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/freqai/RL/BaseEnvironment.py b/freqtrade/freqai/RL/BaseEnvironment.py index a9a9a613c..7ac77361c 100644 --- a/freqtrade/freqai/RL/BaseEnvironment.py +++ b/freqtrade/freqai/RL/BaseEnvironment.py @@ -138,7 +138,7 @@ class BaseEnvironment(gym.Env): return [seed] def tensorboard_log(self, metric: str, value: Optional[Union[int, float]] = None, - category: str = "custom"): + inc: Optional[bool] = None, category: str = "custom"): """ Function builds the tensorboard_metrics dictionary to be parsed by the TensorboardCallback. This @@ -155,6 +155,7 @@ class BaseEnvironment(gym.Env): :param metric: metric to be tracked and incremented :param value: `metric` value + :param inc: (deprecated) sets whether the `value` is incremented or not :param category: `metric` category """ increment = True if value is None else False