Files
ReAgent/scripts/recurring_training_sac_offline.sh
T
Jason Gauci 39385e8d83 Tune SAC and CRR Models. Initial support for batch gym training (#470)
Summary: Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/470

Reviewed By: czxttkl

Differential Revision: D28093192

fbshipit-source-id: 6b260c3e8d49c8b302e40066e2be49a0bfe96688
2021-05-18 09:27:48 -07:00

24 lines
1.0 KiB
Bash

#!/bin/bash
set -x -e
rm -f /tmp/file_system_publisher
rm -Rf test_warmstart model_* pl_log* runs
CONFIG=reagent/workflow/sample_configs/sac_pendulum_offline.yaml
python ./reagent/workflow/cli.py run reagent.workflow.gym_batch_rl.offline_gym_random "$CONFIG"
rm -Rf spark-warehouse derby.log metastore_db
python ./reagent/workflow/cli.py run reagent.workflow.gym_batch_rl.timeline_operator "$CONFIG"
python ./reagent/workflow/cli.py run reagent.workflow.training.identify_and_train_network "$CONFIG"
python ./reagent/workflow/cli.py run reagent.workflow.gym_batch_rl.evaluate_gym "$CONFIG"
for _ in {0..30}
do
python ./reagent/workflow/cli.py run reagent.workflow.gym_batch_rl.offline_gym_predictor "$CONFIG"
rm -Rf spark-warehouse derby.log metastore_db
python ./reagent/workflow/cli.py run reagent.workflow.gym_batch_rl.timeline_operator "$CONFIG"
python ./reagent/workflow/cli.py run reagent.workflow.training.identify_and_train_network "$CONFIG"
python ./reagent/workflow/cli.py run reagent.workflow.gym_batch_rl.evaluate_gym "$CONFIG"
done