-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal_superlearner_test.sh
executable file
·54 lines (48 loc) · 1.37 KB
/
local_superlearner_test.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
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
#=============================
# Test train_predict_eval.sh
# locally by specifying all
# the necessary inputs with
# data/options that correspond
# to sample files already
# present in this repository.
# This script is a good starting
# point if you want to do
# some initial tests with the
# SuperLearner.
#
#============================
# One place to specify Conda install
# location for the rest of the pipeline.
miniconda_loc="${HOME}/.miniconda3"
my_env="superlearner"
# Specify the output (working) directory
# and make it if it does not yet exist.
work_dir="./sample_outputs/train_predict_eval_output_tmp"
mkdir -p $work_dir
echo Starting $0
# Check if Conda environment is installed.
echo "======> Test for presence of Conda environment"
ls $miniconda_loc > /dev/null
if [ $? -ne 0 ]; then
echo "======> No Conda found; install Conda environment for SuperLearner."
./create_conda_env.sh $miniconda_loc $my_env
else
echo "======> Conda found! Assuming no need to install."
fi
./train_predict_eval.sh \
./sample_inputs/whondrs_25_inputs_train.csv \
25 \
./sample_inputs/superlearner_conf_TTR_mms_log10_neg.py \
$work_dir \
$miniconda_loc \
$my_env \
True \
False \
False \
False \
4 \
loky \
Normalized_Respiration_Rate_mg_DO_per_H_per_L_sediment \
./sample_inputs/whondrs_25_inputs_predict
echo Finished $0