Mentions légales du service

Skip to content
Snippets Groups Projects
Commit edff5aa6 authored by Olivier Teytaud's avatar Olivier Teytaud
Browse files

parallelize

parent fe59b3a9
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@
stamp=STAMP${RANDOM}_${RANDOM}_`date | sed 's/ /_/g'`
for pb in `cat listpb.txt`
do
(
(
if [[ "$pb" == *"Mountain"* ]]; then
conf="conf/conf_gpUCB_3.yml"
elif [[ "$pb" == *"CartPole"* ]] || [[ "$pb" == *"Acrobot"* ]] || [[ "$pb" == "Pendulum-v0" ]]; then
......@@ -24,21 +25,24 @@ do
filename="conf/conf_gpUCB_${pb}_${stamp}.yml"
cp $conf $filename
sed -i "s/env:.*/env: $pb/g" $filename
python evolve.py --conf $filename
python evolve.py --conf $filename &
if [[ "$pb" == *"Mountain"* ]]; then
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
python evolve.py --conf $filename &
fi
done | tee run_$stamp
wait
) | tee run_$stamp
) &
done
wait
#conf_gp.yml conf_gpUCB_124.yml conf_gpUCB_5678910.yml conf_qdgp-BipedalWalker.yml conf_qdlingp-BipedalWalker.yml
#conf_gpUCB.yml conf_gpUCB_3.yml conf_lingp.yml conf_qdgp-Hopper.yml conf_qdlingp-Hopper.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment