84 |
|
EOF` |
85 |
|
required_number_of_configs=7 # set the number of required cconfig |
86 |
|
input_configs_array=( $input_configs ) # create an array to count the number of elements |
87 |
< |
if [ ${#input_configs_array[*]} -ne $required_number_of_configs ] # check if the list contains the right number of configs |
87 |
> |
if [ ${#input_configs_array[*]} -lt $required_number_of_configs ] # check if the list contains the right number of configs |
88 |
|
then |
89 |
|
echo "@ERROR : The number of the elements in the config list is not correct" |
90 |
|
exit |
101 |
|
if [ $task = "prep" ]; then |
102 |
|
./prepare_environment_with_config.py --samples $sample --config ${energy}config/${configList} |
103 |
|
fi |
104 |
+ |
if [ $task = "trainReg" ]; then |
105 |
+ |
./trainRegression.py --config ${energy}config/${configList} |
106 |
+ |
fi |
107 |
|
if [ $task = "sys" ]; then |
108 |
|
./write_regression_systematics.py --samples $sample --config ${energy}config/${configList} |
109 |
|
fi |
110 |
|
if [ $task = "eval" ]; then |
111 |
< |
echo ./evaluateMVA.py --discr $MVAList --samples $sample --config ${energy}config/${configList} |
111 |
> |
./evaluateMVA.py --discr $MVAList --samples $sample --config ${energy}config/${configList} |
112 |
|
fi |
113 |
|
if [ $task = "syseval" ]; then |
114 |
|
./write_regression_systematics.py --samples $sample --config ${energy}config/${configList} |
140 |
|
echo "BDT factory settings" |
141 |
|
echo $additional_arg |
142 |
|
echo "Runnning" |
143 |
< |
./train.py --name ${sample} --training ${job_id} --config ${energy}config/${configList} --samples ${additional_arg} --local False |
143 |
> |
./train.py --name ${sample} --training ${job_id} --config ${energy}config/${configList} --setting ${additional_arg} --local False |
144 |
|
fi |
145 |
|
|
146 |
|
rm -rf $TMPDIR |