Also allow batch queries to be prepared
@@ -56,6 +56,12 @@ def run_individual_query(algo, X_train, X_test, distance, count, run_count, batc
return (total, candidates)
def batch_query(X):
+ if prepared_queries:
+ algo.prepare_query(X, count)
+ start = time.time()
+ algo.run_prepared_query()
+ total = (time.time() - start)
+ else:
start = time.time()
algo.batch_query(X, count)
total = (time.time() - start)
