From 11319ffd0ea13847ace05701a3a5f0ac19c09b93 Mon Sep 17 00:00:00 2001 From: Alex Moreo Date: Wed, 19 Jan 2022 19:36:25 +0100 Subject: [PATCH] adding bash scripts for rapid tests --- eDiscovery/experiments.sh | 18 ++++++++++++++++++ eDiscovery/run.sh | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 eDiscovery/experiments.sh create mode 100755 eDiscovery/run.sh diff --git a/eDiscovery/experiments.sh b/eDiscovery/experiments.sh new file mode 100755 index 0000000..77c5c08 --- /dev/null +++ b/eDiscovery/experiments.sh @@ -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 diff --git a/eDiscovery/run.sh b/eDiscovery/run.sh new file mode 100755 index 0000000..3595204 --- /dev/null +++ b/eDiscovery/run.sh @@ -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