10000 Update sklearn/metrics/pairwise.py · scikit-learn/scikit-learn@a7b2627 · GitHub
[go: up one dir, main page]

Skip to content

Commit a7b2627

Browse files
rand0wnglemaitre
andauthored
Update sklearn/metrics/pairwise.py
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
1 parent a367e07 commit a7b2627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/metrics/pairwise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ def additive_chi2_kernel(X, Y=None):
15701570
{
15711571
"X": ["array-like", "sparse matrix"],
15721572
"Y": ["array-like", "sparse matrix", None],
1573-
"gamma": [Interval(Real, None, None, closed="neither")],
1573+
"gamma": [Interval(Real, None, None, closed="neither"), Hidden(np.ndarray)],
15741574
}
15751575
)
15761576
def chi2_kernel(X, Y=None, gamma=1.0):

0 commit comments

Comments
 (0)
0