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)