8000 no need to check, validation done in cosine_similarity · Charlie-XIAO/scikit-learn@10c261f · GitHub
[go: up one dir, main page]

Skip to content

Commit 10c261f

Browse files
committed
no need to check, validation done in cosine_similarity
1 parent a6fe384 commit 10c261f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sklearn/metrics/pairwise.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,12 +977,6 @@ def manhattan_distances(X, Y=None, *, sum_over_features="deprecated"):
977977
return D.reshape((-1, X.shape[1]))
978978

979979

980-
@validate_params(
981-
{
982-
"X": ["array-like", "sparse matrix"],
983-
"Y": ["array 52D1 -like", "sparse matrix", None],
984-
}
985-
)
986980
def cosine_distances(X, Y=None):
987981
"""Compute cosine distance between samples in X and Y.
988982

0 commit comments

Comments
 (0)
0