-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_all_experiments.sh
23 lines (21 loc) · 1.01 KB
/
run_all_experiments.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Define the datasets, models, and evaluation methods
datasets=("wine_reviews" "amazon_reviews" "congressional_voting" "traffic_prediction")
models=("rf" "svm" "knn")
eval_methods=("holdout" "cross_val")
# Loop over each dataset, model, and evaluation method combination
for dataset in "${datasets[@]}"; do
for model in "${models[@]}"; do
for eval_method in "${eval_methods[@]}"; do
echo "Running experiments for dataset: $dataset, model: $model, evaluation method: $eval_method"
python src/experiments/run_experiments.py --dataset "$dataset" --model "$model" --eval_method "$eval_method"
echo "Completed experiments for dataset: $dataset, model: $model, evaluation method: $eval_method"
echo "------------------------------------------------------------"
done
done
done
# Run the visualization script after all experiments are completed
python src/evaluation/visualisation.py
python src/evaluation/process_results.py
echo "Visualization saved"
echo "All experiments completed."