-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_experiments.py
37 lines (25 loc) · 926 Bytes
/
main_experiments.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# import pyximport;
# pyximport.install()
import sys
import time
# import argparse
from experiments import run
# parser = argparse.ArgumentParser()
# parser.add_argument("data", type=str, help="path to input file")
# parser.add_argument("kmax", type=int, help="maximum value of mpts to be used")
# parser.add_argument("sep", type=str, help="delimiter for parsing the CSV files")
# parser.add_argument("method", type=str, help="method knn, knn_inc, rng")
# parser.add_argument("efficient", type=bool, help="efficient computation of rng")
# args = parser.parse_args()
# print(args)
if __name__ == "__main__":
print(sys.argv[1], sys.argv[2], sep=' ', end=' ', flush=True)
start = time.time()
run.dbmsts(
datafile=sys.argv[1],
kmax=int(sys.argv[2]),
delimiter=sys.argv[3],
method=sys.argv[4],
efficient=True)
end = time.time()
print(str(end - start))