Пример #1
0
 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
 def plot_trail(self):
     plt.plot_trail(self.folder, self.memory)