Created
November 14, 2014 02:02
-
-
Save josericardo/a66d717ad64ce53efbf8 to your computer and use it in GitHub Desktop.
Joblib parallel's usage example
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 math import sqrt | |
from joblib import Parallel, delayed | |
Parallel(n_jobs=2)(delayed(sqrt)(i ** 2) for i in range(10)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment