forked from HumanCompatibleAI/imitation
-
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.
Train experts for AIRL environments (HumanCompatibleAI#68)
* scripts.config: Organize named configs * scripts.config: Add custom env named configs * mujoco_experts.sh: Train custom env experts * Rename mujoco_experts.sh => train_experts.sh * Fix lint/Travis/imports * train_experts: save to train_experts/ * setup.py: Install stable_baselines from master Includes MPI hang fix * Accommodate PPO1 import fail * address comments * Address comments * Fix configs * lint * Fix bad merge: add back in fast
- Loading branch information
Showing
11 changed files
with
133 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
ENVS+="acrobot cartpole mountain_car " | ||
ENVS+="reacher half_cheetah hopper ant humanoid swimmer walker " | ||
ENVS+="two_d_maze custom_ant disabled_ant " | ||
SEEDS="0 1 2" | ||
|
||
if $(command -v gdate > /dev/null); then | ||
DATE_CMD=gdate # macOS compatibility | ||
else | ||
DATE_CMD=date | ||
fi | ||
|
||
TIMESTAMP=$(${DATE_CMD} --iso-8601=seconds) | ||
OUTPUT_DIR=output/train_experts/${TIMESTAMP}/ | ||
|
||
echo "Writing logs in ${OUTPUT_DIR}" | ||
|
||
parallel -j 25% --header : --progress --results ${OUTPUT_DIR}/parallel/ \ | ||
python -m imitation.scripts.expert_demos \ | ||
with \ | ||
{env} \ | ||
seed={seed} \ | ||
log_root=${OUTPUT_DIR} \ | ||
::: env ${ENVS} ::: seed ${SEEDS} |
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
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
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
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
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
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
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
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
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