Skip to content

Instantly share code, notes, and snippets.

@AmeerHajAli
Last active April 2, 2020 00:17
Show Gist options
  • Save AmeerHajAli/0a35f1d788bc6e04a1857fb0cd811e7f to your computer and use it in GitHub Desktop.
Save AmeerHajAli/0a35f1d788bc6e04a1857fb0cd811e7f to your computer and use it in GitHub Desktop.
Ray Four Lines
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