Add the final experimental scripts
This commit is contained in:
parent
6febf4cceb
commit
6f0f2fb2e6
3 changed files with 105 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
ldata=$1 # eg : ./csv_plan2/ don t forget to end the path with /
|
||||
file_py=$2
|
||||
ldata=$1 # eg : ./csv_planF/ don t forget to end the path with /
|
||||
file_sh=$2 #eg : ./run_elites_planF
|
||||
ldir=$(echo $(ls ${ldata}))
|
||||
fastga_dir="fastga_results_all"
|
||||
mkdir -p /scratchbeta/${USER}/${fatga_dir}
|
||||
|
|
@ -16,7 +16,7 @@ for data in ${ldir[@]} ; do
|
|||
mevals=$(echo ${data[@]} | cut -d _ -f5)
|
||||
mevals_id=$(echo ${mevals} | cut -d = -f2)
|
||||
path="/scratchbeta/${USER}/${fastga_dir}/fastga_results_plan${plan_name[@]:0:1}"
|
||||
cmd="bash ${file_py} ${path_csv} ${mexp_id} ${mevals_id} ${path}"
|
||||
cmd="bash ${file_sh} ${path_csv} ${mexp_id} ${mevals_id} ${path}"
|
||||
name="fastga${plan_name[@]:0:1}_${mexp}_${mevals}_$(date -Iseconds)_results_elites_all"
|
||||
${cmd} &> "${path}/output${plan_name[@]:0:1}_fastga_${mexp}_${mevals}_$(date -Iseconds).txt"
|
||||
done
|
||||
|
|
|
|||
101
eo/contrib/irace/expe/beta/readme.txt
Executable file
101
eo/contrib/irace/expe/beta/readme.txt
Executable file
|
|
@ -0,0 +1,101 @@
|
|||
1. INTRODUCTION
|
||||
|
||||
The aim of all the scripts is to make the experimental plans for Algorithm Configuration for Genetic Algorithms by using a fully modular benchmarking pipeline design of this article https://arxiv.org/abs/2102.06435 .
|
||||
|
||||
Plan A is an experimental plan for finding an efficient algorithm for all the functions that we consider.
|
||||
|
||||
Plan F is an experimental plan for finding an efficient algorithm for each function that we consider.
|
||||
|
||||
Plan R is an experimental plan for getting random algorithms.
|
||||
|
||||
2. VOCABULARIES
|
||||
|
||||
* maxExp : means maximum Experiments, the budget for irace
|
||||
* maxEv : means maximum evaluation, the budget for FastGA algorithms
|
||||
|
||||
*dataFAR : directory which we store all the experiment data of Plan F and Plan A, created when you run run_exp.sh
|
||||
|
||||
* dataA, dataF
|
||||
dataA is a directory which we store all the runs of an experiment plan for several budgets
|
||||
eg : /dataA/planA_maxExp=*_maxEv=**_$(data), * is a value of maxExp, and ** is a value of maxEv
|
||||
|
||||
|
||||
*fastga_results_all : directory which we store all the data for validation runs. It constains only 3 subdirectories (fastga_results_planF, fastga_results_planA, fastga_results_random), created by running run_exp.sh
|
||||
|
||||
* fastga_results_planF, fastga_results_planA, fastga_results_random
|
||||
Each directory store the data for validation runs of each experiment plan.
|
||||
fastga_random directory are created by running run_exp.sh
|
||||
fastga_results_planF and fastag_results_planA are created only after you have data in the dataA or dataF directories.
|
||||
|
||||
|
||||
* planA_*, planF_*
|
||||
If the planA_* or planF_* are in the dataFAR directory, the directory contains the data of experimental plan. This means that each plan contains the result of 15 runs of irace stored in irace.log file, and the data are provided by run_exp.sh.
|
||||
|
||||
If the planA_* or planF_* directories are in the fastga_results_planA or fastga_results_planF, these directories contain the data of 50 validation runs by running all the best algorithms of each plan stores in dataFAR. The data are provided by running run_res.sh
|
||||
|
||||
|
||||
*fastag_all_results : contains the directories of the validation run data.
|
||||
|
||||
*fastga_results_planF, fastga_results_planA and fastga_results_random contain respectively the validation run data of Plan F, Plan A and Plan R.
|
||||
|
||||
|
||||
3. DESCRIPTION
|
||||
|
||||
The directory which you load all the scripts contains :
|
||||
|
||||
* bash files :
|
||||
-run_res.sh : submit to the cluster all the experiment plan, get all the data we need for the plan F, plan A and plan R.
|
||||
-run_exp.sh : submit to the cluster for getting all the data for validation runs of each data A and data F provided by running run_res.sh
|
||||
-run_random.sh : script for getting random algorithms and the data for validation runs for each problem
|
||||
-testrandom.sh : change the budget fastga (maxEv) in this file if you need, by running this file, you submit plan R job in the cluster
|
||||
|
||||
-csv_all_bests.sh : script for getting all the best configurations of each plan in a dataF or a dataA directories
|
||||
|
||||
-run_elites_planA.sh : script for validation runs of plan A by giving a csv file of each best configuration. This file is provided by running parseA_irace_bests.py.
|
||||
-run_elites_planB.sh
|
||||
-fastga_elites_all.sh : run this file, by giving a directory csv_plan* of csv files ( must only contains the csv file of the same plan, eg : csv_planF) and a run_elites_plan*.sh (* is the name of the plan, eg run_elites_planF.sh), by running this file you get all the validation runs of each csv file. Each csv file contains the best configuration (you get these csv files by running csv_all_bests.sh)
|
||||
|
||||
* python files :
|
||||
-parseA_irace_bests.py : for parsing the irace.log file of each data provided by running irace. By giving a bounch of directories of one experiment
|
||||
-parseF_irace_bests.py
|
||||
|
||||
* 4 directories :
|
||||
-irace_files_pA :
|
||||
-default.instances
|
||||
-example.scen
|
||||
-fastga.param
|
||||
-forbidden.txt
|
||||
-target-runner
|
||||
|
||||
-irace_files_pF :
|
||||
-default.instances :
|
||||
-example.scen
|
||||
-fastga.param
|
||||
-forbidden.txt
|
||||
-target-runner
|
||||
|
||||
-planA :
|
||||
-riaA.sh : for running 15 times r_iA.sh file by submitting to the mesu cluster
|
||||
-r_iA.sh : for running irace for all the problems
|
||||
|
||||
-planF :
|
||||
-riaF.sh : for running 15 times r_iF.sh file by submitting to the mesu cluster
|
||||
-r_iF.sh : for running irace for each problem we considered
|
||||
|
||||
|
||||
The directories planA, planF contain the scripts to run one experiment of Plan A and Plan F.
|
||||
|
||||
The directories irace_files_pA and irace_files_pA contain the scripts needing for calling irace for one experiment of Plan A and Plan F. [Look at the irace package : User Guide for more information]
|
||||
|
||||
|
||||
5. CONCLUSION
|
||||
|
||||
For getting all the experiment data and the validation run data run run_exp.sh file first, after run_exp.sh file finished to execute and there is all the data in the dataFAR (ie : in the cluster, all the jobs finished to execute) run_res.sh data.
|
||||
|
||||
Warning : run_exp.sh may take few days or few weeks depending on the Budget you ask, do not run_res.sh if in dataFAR there are data which are not finished to execute in the cluster, or jobs killed. Do not forget to remove directories of plan which are not complete.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -6,7 +6,7 @@ myhome=${HOME}
|
|||
for exp in ${lexp[@]} ; do
|
||||
for evals in ${levals[@]} ; do
|
||||
bash ./planF/riaF.sh ${myhome} ${myscratchpath} ${exp} ${evals}
|
||||
bash ./planA/riaA.sh ${myhome} ${scratchpath} ${exp} ${evals}
|
||||
bash ./planA/riaA.sh ${myhome} ${myscratchpath} ${exp} ${evals}
|
||||
done
|
||||
done
|
||||
bash testrandom.sh ${myhome} ${scratchpath} ${levals[@]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue