usearch 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/conanfile.py +1 -1
- package/package.json +1 -1
- package/python/usearch/eval.py +6 -2
package/Cargo.toml
CHANGED
package/conanfile.py
CHANGED
|
@@ -4,7 +4,7 @@ from conans import ConanFile
|
|
|
4
4
|
class USearchConan(ConanFile):
|
|
5
5
|
|
|
6
6
|
name = 'USearch'
|
|
7
|
-
version = '0.16.
|
|
7
|
+
version = '0.16.1'
|
|
8
8
|
license = 'Apache 2.0'
|
|
9
9
|
url = 'https://github.com/unum-cloud/usearch'
|
|
10
10
|
description = 'Smaller & Faster Single-File Vector Search Engine from Unum'
|
package/package.json
CHANGED
package/python/usearch/eval.py
CHANGED
|
@@ -184,7 +184,7 @@ class TaskResult:
|
|
|
184
184
|
def search_seconds(self) -> float:
|
|
185
185
|
return self.search_operations / self.search_per_second
|
|
186
186
|
|
|
187
|
-
def __add__(self, other: TaskResult
|
|
187
|
+
def __add__(self, other: TaskResult):
|
|
188
188
|
result = TaskResult()
|
|
189
189
|
if self.add_operations and other.add_operations:
|
|
190
190
|
result.add_operations = self.add_operations + other.add_operations
|
|
@@ -309,7 +309,11 @@ class Evaluation:
|
|
|
309
309
|
ndim: int
|
|
310
310
|
|
|
311
311
|
@staticmethod
|
|
312
|
-
def for_dataset(
|
|
312
|
+
def for_dataset(
|
|
313
|
+
dataset: Dataset,
|
|
314
|
+
batch_size: int = 0,
|
|
315
|
+
clusters: int = 1) -> Evaluation:
|
|
316
|
+
|
|
313
317
|
tasks = []
|
|
314
318
|
add = AddTask(
|
|
315
319
|
vectors=dataset.vectors,
|