def __init__(self, log_path, episode_types):
    self.log_path = log_path
    self.current_episode = None
    self.episodes = {e_type: list() for e_type in episode_types}
    self.average_reward = 0.0
    self.initial_reward = 0.0
    self.average_reward_counter = 0
    self.n_cluster = 0
    for episode_type in self.episodes.keys():
        with open(os.path.join(self.log_path, '{}.csv'.format(episode_type)), mode='w') as result_file:
            writer = csv.writer(result_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
            writer.writerow(self.title_csv())
def __init__(self, log_path, episode_types):
    self.log_path = log_path
    self.current_episode = None
    self.episodes = {e_type: list() for e_type in episode_types}
    self.average_reward = 0.0
    self.initial_reward = 0.0
    self.average_reward_counter = 0
    self.n_cluster = 0
    for episode_type in self.episodes.keys():
        with open(os.path.join(self.log_path, '{}.csv'.format(episode_type)), mode='w') as result_file:
            writer = csv.writer(result_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
            writer.writerow(self.title_csv())