Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8da0d23

Browse filesBrowse files
qinhanmin2014jnothman
authored andcommitted
TST np.vstack won't support generator in the future (#12816)
1 parent ad8764d commit 8da0d23
Copy full SHA for 8da0d23

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎sklearn/metrics/tests/test_pairwise.py

Copy file name to clipboardExpand all lines: sklearn/metrics/tests/test_pairwise.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@ def test_pairwise_distances_data_derived_params(n_jobs, metric, dist_function,
927927
params = {'VI': np.linalg.inv(np.cov(np.vstack([X, Y]).T)).T}
928928

929929
expected_dist_explicit_params = cdist(X, Y, metric=metric, **params)
930-
dist = np.vstack(dist_function(X, Y, metric=metric, n_jobs=n_jobs))
930+
dist = np.vstack(tuple(dist_function(X, Y,
931+
metric=metric, n_jobs=n_jobs)))
931932

932933
assert_allclose(dist, expected_dist_explicit_params)
933934
assert_allclose(dist, expected_dist_default_params)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.