Skip to content

web search done right

try 31 leaves in lambdamart

Mikkel Denkerd59130e35ebe
diff --git a/ltr/lambdamart.py b/ltr/lambdamart.py
index c22b4834..cca2022f 100644
--- a/ltr/lambdamart.py
+++ b/ltr/lambdamart.py
@@ -18,7 +18,7 @@ param_grid = {
# "max_depth": [-1, 2, 4, 8],
"max_depth": [-1],
# "num_leaves": [7, 15, 31],
- "num_leaves": [63],
+ "num_leaves": [31, 63],
"lambda_l2": [2.5],
"linear_tree": [False],
}
diff --git a/ltr/leechy_annotate.py b/ltr/leechy_annotate.py
index 45d5e8bf..4d93b54c 100644
--- a/ltr/leechy_annotate.py
+++ b/ltr/leechy_annotate.py
@@ -76,7 +76,7 @@ for qid, query in tqdm(unannotated_queries.items()):
db.annotate(qid, result, label)
for page in range(2, 2 + 1):
- bad_results = stract.search(query, page)
+ bad_results = stract.search(query, page=page)
for i, result in enumerate(bad_results):
if result["url"] in leechy_results: