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 bdb32d4 commit 5ad4d0eCopy full SHA for 5ad4d0e
sklearn/cluster/tests/test_hierarchical.py
@@ -80,6 +80,10 @@ def test_ward_clustering():
80
clustering.compute_full_tree = False
81
clustering.fit(X)
82
np.testing.assert_array_equal(clustering.labels_, labels)
83
+ # Check that we raise a TypeError on dense matrices
84
+ clustering = Ward(n_clusters=10,
85
+ connectivity=connectivity.todense())
86
+ assert_raises(TypeError, clustering.fit, X)
87
88
89
def test_ward_agglomeration():
0 commit comments