fix: resolve ruff linting errors

- Remove unused variables in benchmark scripts
- Rename unused loop variables to follow convention
This commit is contained in:
Andy Lee
2025-08-22 13:53:25 -07:00
parent ed72232bab
commit 8dfd2f015c
3 changed files with 7 additions and 7 deletions

View File

@@ -259,7 +259,7 @@ class LAIONEvaluator:
for caption in test_queries:
start_time = time.time()
search_results = non_compact_searcher.search(
_ = non_compact_searcher.search(
caption, top_k=3, complexity=complexity, recompute_embeddings=False
)
search_time = time.time() - start_time
@@ -271,7 +271,7 @@ class LAIONEvaluator:
for caption in test_queries:
start_time = time.time()
search_results = compact_searcher.search(
_ = compact_searcher.search(
caption, top_k=3, complexity=complexity, recompute_embeddings=True
)
search_time = time.time() - start_time