-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart copy.sh
executable file
·36 lines (34 loc) · 1.06 KB
/
start copy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#
#
# This script enables running fist few commands from spinning-up tutorial.
#
#set the right conda environment
command_string="source activate spinningup"
eval "$command_string"
output=$(eval "$command_string")
echo "$output"
# Bash Menu
USERSCHOICE='Please enter your choice: '
options=("Train LunarLander" "Check Lunarlander's perf" "Plot Results" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Train LunarLander")
echo "Changed text, just for sake of changing."
python -m spinup.run ppo --hid "[32,32]" --env LunarLander-v2 --exp_name installtest --gamma 0.999
;;
"Check Lunarlander's perf")
echo "OK, let's check LunarLander's performance."
python -m spinup.run test_policy data/installtest/installtest_s0
;;
"Plot Results")
echo "Chages, changes, changes"
python -m spinup.run plot data/installtest/installtest_s0
;;
"Quit")
break
;;
*) echo "invalid option: $REPLY";;
esac
done