Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Move exports/exports.csv to mskk_benchmark after each series of runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenskoett committed May 24, 2021
1 parent 1acb572 commit 5afaf5d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
18 changes: 9 additions & 9 deletions benchmarks-files/algos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ float:
docker-tag: ann-benchmarks-ecp
module: ann_benchmarks.algorithms.eCP
constructor: eCP
base-args: ["@metric", 50] #percentage of dataset to load dynamically load
base-args: ["@metric", 0] #percentage of dataset to load dynamically load
run-groups:
eCP:
# args: [[30, 300, 800, 1200], #sc
args: [[100], #sc
[0.3], #span (0.0 < p < 1.0)
args: [[130], #sc
[0.0], #span (0.0 < p < 1.0)
[1], #cpol (1=avg, 2=abs)
[1]] #npol
query-args: [[1, 5, 10, 20]] #b
Expand All @@ -19,12 +19,12 @@ float:
docker-tag: ann-benchmarks-ecp
module: ann_benchmarks.algorithms.eCP-2
constructor: eCP
base-args: ["@metric", 50] #percentage of dataset to load dynamically load
base-args: ["@metric", 0] #percentage of dataset to load dynamically load
run-groups:
eCP:
# args: [[30, 300, 800, 1200], #sc
args: [[100], #sc
[0.3], #span (0.0 < p < 1.0)
args: [[130], #sc
[0.0], #span (0.0 < p < 1.0)
[1], #cpol (1=avg, 2=abs)
[1]] #npol
query-args: [[1, 5, 10, 20]] #b
Expand All @@ -33,12 +33,12 @@ float:
docker-tag: ann-benchmarks-ecp
module: ann_benchmarks.algorithms.eCP-3
constructor: eCP
base-args: ["@metric", 50] #percentage of dataset to load dynamically load
base-args: ["@metric", 0] #percentage of dataset to load dynamically load
run-groups:
eCP:
# args: [[30, 300, 800, 1200], #sc
args: [[100], #sc
[0.3], #span (0.0 < p < 1.0)
args: [[130], #sc
[0.0], #span (0.0 < p < 1.0)
[1], #cpol (1=avg, 2=abs)
[1]] #npol
query-args: [[1, 5, 10, 20]] #b
Expand Down
2 changes: 1 addition & 1 deletion scripts/ecp_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cd ann-benchmarks
python3.6 -m venv env
source env/bin/activate

echo "Making export dir and export file..."
echo "${NAME}: Making export dir and export file..."
mkdir exports

echo "${NAME}: Install dependencies"
Expand Down
13 changes: 6 additions & 7 deletions scripts/ecp_run_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
NAME="ecp_run_local" # Script name.

# ALGO_NAME="eCP" # WARNING: Must match in algos.yaml + eCP.py.

DATASET="random-xs-20-euclidean"

ALGOS=(eCP eCP-2 eCP-3)

#DATASET="glove-25-angular"
# DATASET="random-xs-20-euclidean"
DATASET="glove-25-angular"
# DATASET="sift-128-euclidean"

echo "${NAME}: Will run benchmarks on ${ALGOS[*]}. First run 'ecp_install.sh'. Dataset: $DATASET."
Expand Down Expand Up @@ -41,13 +39,13 @@ done
echo "${NAME}: Creating plots and website"
python plot.py --dataset ${DATASET}

echo "Exporting data to ./exports"
echo "${NAME}: Exporting data to ./exports"
python data_export.py --output exports/exports.csv

echo "Cleaning up data"
echo "${NAME}: Averaging AB data samples"
python cleanup.py

echo "Moving samples into separate directory"
echo "${NAME}: Moving samples into separate directory"
mkdir mskk_benchmark
mv -v ecp_clusters_bulk.csv mskk_benchmark/ecp_clusters_bulk.csv
mv -v ecp_clusters_incr.csv mskk_benchmark/ecp_clusters_incr.csv
Expand All @@ -56,6 +54,7 @@ mv -v ecp_general_stats.csv mskk_benchmark/ecp_general_stats.csv
mv -v ecp_maintenance.csv mskk_benchmark/ecp_maintenance.csv
mv -v ecp_nodes_bulk.csv mskk_benchmark/ecp_nodes_bulk.csv
mv -v ecp_nodes_incr.csv mskk_benchmark/ecp_nodes_incr.csv
mv -v exports/exports.csv mskk_benchmark/exports.csv

# mkdir -p website
# python create_website.py --outputdir website --scatter --latex
Expand Down

0 comments on commit 5afaf5d

Please sign in to comment.