コード例 #1
0
ファイル: trail_env.py プロジェクト: ElliotVilhelm/trading-rl
 def render(self, mode='human', close=False):
     """
     Gym function called at the end of a process.
     """
     super().calculate_pnl(env_type="trailing", save=True)
     super().reset()
     if not self.validation_process:
         title_trail = '/test_trail_' + str(self.test_starts_index)
         plt.plot_trail(self.memory, self.test_folder, title_trail)
コード例 #2
0
ファイル: env.py プロジェクト: MCCCSunny/trading-rl
 def plot_trail(self):
     plt.plot_trail(self.folder, self.memory)