diff --git a/faiss/python/class_wrappers.py b/faiss/python/class_wrappers.py index 208065351a..20cef772b1 100644 --- a/faiss/python/class_wrappers.py +++ b/faiss/python/class_wrappers.py @@ -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). """ diff --git a/faiss/python/extra_wrappers.py b/faiss/python/extra_wrappers.py index a037b0280f..0b3deec81b 100644 --- a/faiss/python/extra_wrappers.py +++ b/faiss/python/extra_wrappers.py @@ -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