Last active
April 2, 2020 00:17
-
-
Save AmeerHajAli/0a35f1d788bc6e04a1857fb0cd811e7f to your computer and use it in GitHub Desktop.
Ray Four Lines
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 joblib import parallel_backend | |
from ray.util.joblib import register_ray | |
register_ray() | |
with parallel_backend("ray"): | |
# your code, e.g., clf.fit(X_train,y_train) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment