Created
April 28, 2020 14:47
-
-
Save dantegd/95e179996f583f3d3a7085067a806231 to your computer and use it in GitHub Desktop.
Default input format type mirroring behavior of cuML mirroring NumPy arrays
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 cuml | |
import numpy as np | |
ary = np.array([[1.0, 4.0, 4.0], [2.0, 2.0, 2.0], [5.0, 1.0, 1.0]]) | |
kmeans = cuml.KMeans(n_clusters=2) | |
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