From 0c15382f8f36b0812f8ea0b13d3b794298721211 Mon Sep 17 00:00:00 2001 From: Namu Date: Sun, 12 Oct 2025 16:24:46 +0200 Subject: [PATCH] fix: add tp5 --- tp5.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tp5.py b/tp5.py index d419f8a..a983966 100644 --- a/tp5.py +++ b/tp5.py @@ -104,15 +104,6 @@ def train_and_save(weights_path="cartpole_actor_critic.pth", episodes=500): print(f'Episode {ep + 1}: total reward {total_r:.1f}') - fig, axes = plt.subplots(1, 2) - axes[0].plot(range(len(log_probs)), log_probs) - axes[0].set_title('log probability') - - axes[1].plot(range(len(td_errors)), td_errors) - axes[1].set_title('TD errors') - - plt.show() - # Libération des ressources liées à l'environnement env.close()