Last active
December 14, 2015 05:18
-
-
Save amueller/5033992 to your computer and use it in GitHub Desktop.
simple kmeans test with n_jobs=2
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
from sklearn.cluster import KMeans | |
from sklearn.datasets import make_blobs | |
X, y = make_blobs() | |
KMeans(n_jobs=2).fit(X) | |
print("done") |
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
from sklearn.cluster import KMeans | |
from sklearn.datasets import make_blobs | |
def main(): | |
X, y = make_blobs() | |
KMeans(n_jobs=2).fit(X) | |
print("done") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment