bring inc back

This commit is contained in:
initrv 2023-03-13 17:53:35 +03:00
parent a10f78e3ef
commit f3a1177bad

View File

@ -138,7 +138,7 @@ class BaseEnvironment(gym.Env):
return [seed] return [seed]
def tensorboard_log(self, metric: str, value: Optional[Union[int, float]] = None, 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 Function builds the tensorboard_metrics dictionary
to be parsed by the TensorboardCallback. This to be parsed by the TensorboardCallback. This
@ -155,6 +155,7 @@ class BaseEnvironment(gym.Env):
:param metric: metric to be tracked and incremented :param metric: metric to be tracked and incremented
:param value: `metric` value :param value: `metric` value
:param inc: (deprecated) sets whether the `value` is incremented or not
:param category: `metric` category :param category: `metric` category
""" """
increment = True if value is None else False increment = True if value is None else False