add documentation for tensorboard_log, change how users interact with tensorboard_log

This commit is contained in:
robcaulk
2022-12-11 15:31:29 +01:00
parent cb8fc3c8c7
commit 0fd8e214e4
5 changed files with 57 additions and 7 deletions

View File

@@ -100,6 +100,7 @@ class ReinforcementLearner(BaseReinforcementLearningModel):
"""
# first, penalize if the action is not valid
if not self._is_valid(action):
self.tensorboard_log("is_valid")
return -2
pnl = self.get_unrealized_profit()