Skip to content

Commit

Permalink
[Feature] Run evaluation on first iteration (#108)
Browse files Browse the repository at this point in the history
* amend

* amend
  • Loading branch information
matteobettini authored Jul 9, 2024
1 parent c37938e commit 2d7ac79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/unittest/install_vmas.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

python -m pip install vmas
python -m pip install vmas matplotlib==3.8
sudo apt-get update
sudo apt-get install python3-opengl xvfb
5 changes: 4 additions & 1 deletion benchmarl/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,10 @@ def _collection_loop(self):
# Evaluation
if (
self.config.evaluation
and (self.total_frames % self.config.evaluation_interval == 0)
and (
self.total_frames % self.config.evaluation_interval == 0
or self.n_iters_performed == 0
)
and (len(self.config.loggers) or self.config.create_json)
):
self._evaluation_loop()
Expand Down

0 comments on commit 2d7ac79

Please sign in to comment.