Skip to content

Commit

Permalink
Removing initial eval which is messing up results
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico-PizarroBejarano committed Dec 10, 2024
1 parent b27588a commit a3ed162
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions safe_control_gym/controllers/ppo/ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a3ed162

Please sign in to comment.