From a3ed162fe44fe351c6e944ff376c19e5c262e877 Mon Sep 17 00:00:00 2001 From: Federico-PizarroBejarano Date: Tue, 10 Dec 2024 10:21:56 -0500 Subject: [PATCH] Removing initial eval which is messing up results --- safe_control_gym/controllers/ppo/ppo.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/safe_control_gym/controllers/ppo/ppo.py b/safe_control_gym/controllers/ppo/ppo.py index 8bfedd435..d1abf2bbb 100644 --- a/safe_control_gym/controllers/ppo/ppo.py +++ b/safe_control_gym/controllers/ppo/ppo.py @@ -160,15 +160,6 @@ def learn(self, **kwargs ): """Performs learning (pre-training, training, fine-tuning, etc.).""" - - # Initial Evaluation. - eval_results = self.run(env=self.eval_env, n_episodes=self.eval_batch_size) - self.logger.info('Eval | ep_lengths {:.2f} +/- {:.2f} | ep_return {:.3f} +/- {:.3f}'.format( - eval_results['ep_lengths'].mean(), - eval_results['ep_lengths'].std(), - eval_results['ep_returns'].mean(), - eval_results['ep_returns'].std())) - if self.num_checkpoints > 0: step_interval = np.linspace(0, self.max_env_steps, self.num_checkpoints) interval_save = np.zeros_like(step_interval, dtype=bool)