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) |
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
import numpy as np | |
from joblib import parallel_backend # added line. | |
from sklearn.datasets import load_digits | |
from sklearn.model_selection import RandomizedSearchCV | |
from sklearn.svm import SVC | |
from ray.util.joblib import register_ray # added line. | |
register_ray() # added line. | |
param_space = { |