Skip to content

Commit 86273fd

Browse files
zhai_proamueller
authored andcommitted
FIX KMeans with fortran-aligned data.
bad case: X = np.asfortranarray([[0, 0], [0, 1], [0, 1]]) labels = np.array([0, 1, 1]) km = KMeans(n_init=1, init=centers, precompute_distances=False) km.fit(X) print km.cluster_centers_ print km.labels_ print km.n_iter_
1 parent 7097af0 commit 86273fd

File tree

2 files changed

+926
-842
lines changed

2 files changed

+926
-842
lines changed

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