forked from mila-iqia/babyai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: python | ||
python: | ||
- "3.5" | ||
|
||
# command to install dependencies | ||
install: | ||
- pip3 install --user --process-dependency-links --editable . | ||
|
||
# command to run tests | ||
script: | ||
# Check the source code for obvious errors | ||
- pip3 install --user flake8 | ||
- python3 -m flake8 . --count --show-source --statistics --select=E901,E999,F821,F822,F823 | ||
|
||
# Test the BabyAI levels | ||
- ./run_tests.py | ||
|
||
# Quickly exercise the RL training code | ||
- time python3 -m scripts.train_rl --env BabyAI-GoToObj-v0 --algo ppo --procs 4 --batch-size 80 --log-interval 1 --save-interval 2 --test-episodes 10 --frames 300 --arch cnn1 --instr-dim 16 --image-dim 16 --memory-dim 16 | ||
|
||
# Check that the bot works on some basic levels | ||
- python3 -m scripts.eval_bot --level PutNextLocal --num_runs 100 | grep "100.0%" | ||
- python3 -m scripts.eval_bot --level SynthLoc --num_runs 100 | grep "100.0%" | ||
|
||
# Quickly test the generation of bot demos | ||
- python3 -m scripts.make_agent_demos --env BabyAI-GoToRedBallGrey-v0 --episodes 100 --valid-episodes 32 | ||
|
||
# Quick test for imitation learning | ||
- python3 -m scripts.train_il --env BabyAI-GoToRedBallGrey-v0 --demos BabyAI-GoToRedBallGrey-v0_agent --validation-interval 1 --patience 0 --episodes 100 --val-episodes 50 |