-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_experiment.sh
More file actions
26 lines (18 loc) · 842 Bytes
/
run_experiment.sh
File metadata and controls
26 lines (18 loc) · 842 Bytes
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
#! /bin/sh
QUANTILES_FILE=$1
EXPERIMENT_NAME=$2
VECTOR_SIZE="${3:-300}"
echo "Running experiment *$EXPERIMENT_NAME* on *$QUANTILES_FILE* with "\
"vector size *$VECTOR_SIZE*"
MODEL_DIR="models/$EXPERIMENT_NAME"
INDICES_FILE="indices/indices_$EXPERIMENT_NAME.csv"
DISPARITIES_FILE="indices/disparity_$EXPERIMENT_NAME.json"
TF_FILE="$MODEL_DIR/term_frequency.json"
PREDICTIONS_FILE="aoe_v2_predictions.csv"
echo "\tindices file: $INDICES_FILE"
echo "\tdisparities file: $DISPARITIES_FILE"
echo "\tmodel dir: $MODEL_DIR"
python train_models.py -i $QUANTILES_FILE -s $VECTOR_SIZE -o $MODEL_DIR
python compute_indices.py -i $MODEL_DIR -d $DISPARITIES_FILE -o $INDICES_FILE
python evaluate_aoa.py -i $INDICES_FILE -o $EXPERIMENT_NAME -tf $TF_FILE
python generate_aoe_v2_predictions.py -i $INDICES_FILE -tf $TF_FILE -o $PREDICTIONS_FILE