Skip to content

Commit 184a36d

Browse files
authored
Merge pull request #138 from braceletboy/fix_issue_136
Simplication + Exception Handling + Fix issue #136.
2 parents cfd8a13 + 199568f commit 184a36d

File tree

272 files changed

+10068
-71428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+10068
-71428
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ datasets/*
88
!datasets/download_datasets.sh
99
!datasets/dataset-urls.txt
1010
libraries/*.tar.gz
11+
libraries/*.zip
12+
libraries/*.jar
1113
libraries/*/
1214
methods/ann/allknn
1315
methods/flann/allknn

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ endif
3737
endif
3838

3939
# Specify the benchmark settings.
40-
CONFIG := config.yaml
40+
CONFIG := test.yaml
4141
BENCHMARKDDIR := benchmark
4242
LOG := False
43+
LIB := "shogun"
44+
SAVE := ""
45+
LOGLEVEL := "INFO"
4346
BLOCK := ""
4447
METHODBLOCK := ""
4548
UPDATE := False
46-
FILES := ""
47-
COPY := False
48-
USER := ""
49-
PASSWORD := ""
5049
BUILD_CORES := 1
5150

5251
# Set the environment variable for the compiled mlpack executables.
@@ -177,7 +176,11 @@ endif
177176
$(PYTHON_BIN) $(BENCHMARKDDIR)/test_config.py -c $(CONFIG)
178177

179178
.run:
180-
$(PYTHON_BIN) $(BENCHMARKDDIR)/run_benchmark.py -c $(CONFIG) -b $(BLOCK) -l $(LOG) -u $(UPDATE) -m $(METHODBLOCK) --f $(FILES) --n $(COPY) -r $(USER) -p $(PASSWORD)
179+
ifndef METHODS
180+
$(PYTHON_BIN) run.py -c $(CONFIG) -l $(LIB) -s $(SAVE) -o $(LOGLEVEL)
181+
else
182+
$(PYTHON_BIN) run.py -c $(CONFIG) -l $(LIB) -m $(METHODS) -s $(SAVE) -o $(LOGLEVEL)
183+
endif
181184

182185
.memory:
183186
$(PYTHON_BIN) $(BENCHMARKDDIR)/memory_benchmark.py -c $(CONFIG) -b $(BLOCK) -l $(LOG) -u $(UPDATE) -m $(METHODBLOCK)

base.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
timeout: 300
2+
flann_path: 'methods/flann/'
3+
ann_path: 'methods/ann/'
4+
dlibml_path: 'methods/dlibml/'
5+
r_path: 'methods/R/'
6+
weka_path: 'libraries/weka/'
7+
matlab_path: '/opt/matlab/bin/'
8+
java_path: 'libraries/share/'
9+
mlpack_path: 'libraries/bin/'

benchmark/memory_benchmark.py

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)