Created
February 1, 2018 06:17
-
-
Save goddoe/befb5be2f857fd36fafbace3e1ba5b6d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 multiprocessing.dummy import Pool | |
from sklearn.cluster import KMeans | |
import functools | |
... | |
pool = Pool() | |
results = pool.map(functools.partial(find_cluster, kmeans=kmeans, X=X), clusters) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment