Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit a12da44

Browse files
author
Miltos Allamanis
committed
Increase the number of trees used for indexing the embeddings.
This improves the results among all baselines.
1 parent c83d4ee commit a12da44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/predict.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def query_model(query, model, indices, language, topk=100):
123123
for index, vector in tqdm(enumerate(code_representations)):
124124
if vector is not None:
125125
indices.add_item(index, vector)
126-
indices.build(10)
126+
indices.build(200)
127127

128128
for query in queries:
129129
for idx, _ in zip(*query_model(query, model, indices, language)):

0 commit comments

Comments
 (0)