forked from TLESORT/Learning-State-Representation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
train_predict_plotStates_supervised.sh
executable file
·42 lines (34 loc) · 1.83 KB
/
train_predict_plotStates_supervised.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
37
38
39
40
41
42
#!/bin/bash
# CONFIG OPTIONS:
# -use_cuda
# -use_continuous
# -params.sigma is CONTINUOUS_ACTION_SIGMA
# -params.mcd is MAX_COS_DIST_AMONG_ACTIONS_THRESHOLD
# -data_folder options: DATA_FOLDER (Dataset to use):
# staticButtonSimplest, mobileRobot, simpleData3D, pushingButton3DAugmented, babbling')
#data= staticButtonSimplest, mobileRobot, complexData colorful, colorful75 #staticButtonSimplest https://stackoverflow.com/questions/2459286/unable-to-set-variables-in-bash-script #"$data"='staticButtonSimplest'
function has_command_finished_correctly {
if [ "$?" -ne "0" ]
then
exit
else
return 0
fi
}
data_folder='nonStaticButton' # 'staticButtonSimplest' #colorful75' #complexData' #colorful75' #mobileRobot # complexData #colorful #staticButtonSimplest
echo " ********** Running supervised script: *************"
#qlua script.lua -use_cuda -use_continuous -mcd $max_cos_dis -sigma $s -data_folder mobileRobot #complexData #colorful #stati$
th supervised.lua -use_cuda -data_folder $data_folder
has_command_finished_correctly
#th imagesAndReprToTxt.lua -use_cuda -use_continuous -data_folder mobileRobot # complexData #colorful #staticButtonSimplest
th imagesAndReprToTxt.lua -use_cuda -data_folder $data_folder
has_command_finished_correctly
python generateNNImages.py 10 # 10: avg experiments benchmark (Mathieu's report) or -1 uses a characteristic set of image for creating the neigbors for a GIF animation, REQUIRES SETTING DEFAULT_DATASET in Utils.py
# ----- Note: includes the call to:
# th create_all_reward.lua
# th create_plotStates_file_for_all_seq.lua
has_command_finished_correctly
python plotStates.py
has_command_finished_correctly
#python distortion_crit.py # short to compute, it's just that it doesn't seem to be very useful
#has_command_finished_correctly