mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-15 23:45:54 +00:00
Update test.sh
This commit is contained in:
30
test.sh
30
test.sh
@@ -1,14 +1,30 @@
|
||||
#!/bin/bash
|
||||
for i in STree Wodt Cart SVC ExtraTree; do
|
||||
for a in accuracy f1_macro; do
|
||||
python src/main.py -s $a -P iMac27 -m $i -r 1
|
||||
echo "* Copying best hyperparameters into STree and SVC measures"
|
||||
for i in accuracy f1_micro f1_macro; do
|
||||
cp src/best_results_STree-x.json "results/best_results_"$i"_STree.json"
|
||||
cp src/best_results_SVC-x.json "results/best_results_"$i"_SVC.json"
|
||||
done
|
||||
echo "* Computing scores with best hyperparameters in STree"
|
||||
for a in accuracy f1_macro f1_micro; do
|
||||
python src/main.py -s $a -P iMac27 -m STree -f 1
|
||||
done
|
||||
echo "* Computing scores with best hyperparameters in SVC"
|
||||
for a in accuracy f1_macro f1_micro; do
|
||||
python src/main.py -s $a -P iMac27 -m SVC -f 1
|
||||
done
|
||||
echo "* Computing scores with the rest of models"
|
||||
for i in Wodt Cart ExtraTree; do
|
||||
for a in accuracy f1_macro f1_micro; do
|
||||
python src/main.py -s $a -P iMac27 -m $i
|
||||
done
|
||||
done
|
||||
echo "* Building best hyperaparameters files for models"
|
||||
for i in STree Wodt Cart SVC ExtraTree; do
|
||||
for a in accuracy f1_macro; do
|
||||
python src/build_best.py -s $a -m $i -r 1
|
||||
for a in accuracy f1_macro f1_micro; do
|
||||
python src/build_best.py -s $a -m $i
|
||||
done
|
||||
done
|
||||
for a in accuracy f1_macro; do
|
||||
echo "* Doing benchmark with all the results"
|
||||
for a in accuracy f1_macro f1_micro; do
|
||||
python src/benchmark.py -s $a
|
||||
done
|
||||
done
|
||||
|
Reference in New Issue
Block a user