Skip to content

Commit 1748d0e

Browse files
committed
TST: avoid a crash in Windows + Anaconda Py3.3
The crash is due to a numpy bug in np.load, that is called by joblib caching. We work around it by avoiding the call to np.load
1 parent 5902a9e commit 1748d0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/cluster/tests/test_hierarchical.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def test_ward_clustering():
8787
clustering.fit(X)
8888
labels = clustering.labels_
8989
assert_true(np.size(np.unique(labels)) == 10)
90+
# Turn caching off now
91+
clustering = Ward(n_clusters=10, connectivity=connectivity)
9092
# Check that we obtain the same solution with early-stopping of the
9193
# tree building
9294
clustering.compute_full_tree = False

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy