-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdataPrep.sh
executable file
·38 lines (27 loc) · 1.31 KB
/
dataPrep.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
#!/bin/bash
source ~/.bash_profile
conda activate py-plan2014
currentDir=$(pwd)
loc="$1" # home directory for the optimization code
folderName="$2" # name of folder with results
nseeds="$3" # number of random seeds to run optimization
nobjs="$4" # number of objectives included in optimization
# path where output data is stored
moeaFileDirName="${loc}"/output/data
# path to `moeaFramework/` folder - NOTE: DO NOT store `moeaFramework/` on Google Drive Desktop or Box Drive, the syncing will freeze the code
moeaDir="${loc}"/moeaFramework
# -----------------------------------------------------------------------------
# format data
# -----------------------------------------------------------------------------
echo "... formatting raw data ..."
python postScripts/dataFormat.py "${loc}" "${folderName}" "${nseeds}"
# -----------------------------------------------------------------------------
# MOEA performance
# -----------------------------------------------------------------------------
echo "... calculating borg metrics ..."
cd "${moeaDir}"
./find_metrics.sh "${moeaFileDirName}" "${folderName}" "${nseeds}" "${nobjs}"
echo "... making convergence plots ..."
cd ${currentDir}
conda activate rshiny
Rscript postScripts/convergencePlots.R "${loc}" "${folderName}" "${nseeds}"