1
0
Fork 0

adding bash scripts for rapid tests

This commit is contained in:
Alejandro Moreo Fernandez 2022-01-19 19:36:25 +01:00
parent d3b48f219b
commit 11319ffd0e
2 changed files with 36 additions and 0 deletions

18
eDiscovery/experiments.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -x
dataset=RCV1.C4
iter=50
k=100
initsize=1000
initprev=0.5
seed=1
commons="--dataset $dataset --iter $iter --k $k --initsize $initsize --initprev $initprev --seed $seed"
for Q in PCC ACC PACC EMQ HDy ; do
for sampling in relevance_sampling uncertainty_sampling mix_sampling ; do
# PYTHONPATH='.:..' python3 main.py --quantifier $Q --sampling $sampling $commons
PYTHONPATH='.:..' python3 plot.py "./results/$dataset"_"$sampling"_"$Q.csv" 0
done
done

18
eDiscovery/run.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -x
dataset=RCV1.C4
iter=50
k=100
initsize=500
initprev=-1
seed=1
Q=ACC
CLS=svm
sampling=mix_sampling
filepath="./results/classifier:"$CLS"__dataset:"$dataset"__initprev:"$initprev"__initsize:"$initsize"__iter:"$iter"__k:"$k"__quantifier:"$Q"__sampling:"$sampling"__seed:"$seed".csv"
PYTHONPATH='.:..' python3 main.py --quantifier $Q --classifier $CLS --sampling $sampling --dataset $dataset --iter $iter --k $k --initsize $initsize --initprev $initprev --seed $seed &
sleep 2
PYTHONPATH='.:..' python3 plot.py $filepath 1