Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a plan to implement Spark Connect to Joblib-spark? #50

Open
Kurdzik opened this issue Jul 4, 2023 · 0 comments
Open

Is there a plan to implement Spark Connect to Joblib-spark? #50

Kurdzik opened this issue Jul 4, 2023 · 0 comments

Comments

@Kurdzik
Copy link

Kurdzik commented Jul 4, 2023

Hi,
Recently i've finished setting up a Spark cluster on couple of separate VMs.

When i was trying to perform SKlearn model training using Joblib-spark i've encountered following problem:

from pyspark.sql import SparkSession

spark = SparkSession.builder.remote('sc://<master node ip>').appName("JoblibSparkBackend").getOrCreate()
register_spark()

param_distributions = {
    "n_estimators": list(range(100, 500, 50)),
    "max_depth": list(range(2, 7)),
}

model = RandomForestRegressor()
random_forest = RandomizedSearchCV(model,param_distributions,cv=5,refit=True)

with parallel_backend('spark', n_jobs=4):
    random_forest.fit(X=X_train,y=y_train)
...
NotImplementedError: sparkContext() is not implemented.

Is there a workaround for this issue? Or is this something that will be implemented in a future ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant