Created
April 28, 2020 15:38
-
-
Save dantegd/ed8aeaa288b72b12f825231a4072f41c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cupy as cp | |
import cuml | |
ary = cp.array([[1.0, 4.0, 4.0], [2.0, 2.0, 2.0], [5.0, 1.0, 1.0]]) | |
kmeams = cuml.KMeans(n_clusters=2, output_type='numpy') | |
kmeans.fit(ary) | |
print(type(kmeans.labels_)) | |
# <class 'numpy.ndarray'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment