Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion faiss/python/class_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def replacement_train_encoded(self, x, codec, index, weights=None):
Index used to decode the vectors. Should have dimension `self.d`.
index : faiss.Index
Index used for assignment. The dimension of the index should be `self.d`.
weigths : array_like, optional
weights : array_like, optional
Per training sample weight (size n) used when computing the weighted
average to obtain the centroid (default is 1 for all training vectors).
"""
Expand Down
2 changes: 1 addition & 1 deletion faiss/python/extra_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def knn(xq, xb, k, metric=METRIC_L2, metric_arg=0.0):
`dtype` must be float32.
k : int
Number of nearest neighbors.
distance_type : MetricType, optional
metric : MetricType, optional
distance measure to use (either METRIC_L2 or METRIC_INNER_PRODUCT)

Returns
Expand Down