Skip to content

Commit

Permalink
oups
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrecuer committed May 15, 2023
1 parent 79121e6 commit df2aca1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions energy_gym/evaluation_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def __init__(self, name, env, **params):
print(f'on va jouer {self._n} épisodes')
self._name = name
self._env = env
self._modlabel = self._gen_mod_label()
self._exit = False
# numéro de l'épisode
self.nb_episode = 0
Expand Down Expand Up @@ -216,7 +215,7 @@ def play(self, ts=None, tint=None, wsize=None):
self._stats[self.nb_episode, :] = line
self.nb_episode += 1

def close(self, suffix=None, random_model=False):
def close(self):
"""production du graphique de statistique"""
stats_moy = np.mean(self._stats, axis=0).round(1)
print("leaving the game")
Expand Down

0 comments on commit df2aca1

Please sign in to comment.