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)