We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ca6ff commit 85d7edaCopy full SHA for 85d7eda
sklearn/metrics/pairwise.py
@@ -1555,7 +1555,7 @@ def additive_chi2_kernel(X, Y=None):
1555
International Journal of Computer Vision 2007
1556
https://hal.archives-ouvertes.fr/hal-00171412/document
1557
"""
1558
- X, Y = check_pairwise_arrays(X, Y)
+ X, Y = check_pairwise_arrays(X, Y, accept_sparse=False)
1559
if (X < 0).any():
1560
raise ValueError("X contains negative values.")
1561
if Y is not X and (Y < 0).any():
0 commit comments