Skip to content

Replace dask_ml.wrappers.ParallelPostFit with custom ParallelPostFit class #832

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

Merged
merged 17 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions dask_sql/physical/rel/custom/create_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ def convert(self, rel: "LogicalPlan", context: "dask_sql.Context") -> DataContai
model = Incremental(estimator=model)

if wrap_predict:
try:
from dask_ml.wrappers import ParallelPostFit
except ImportError: # pragma: no cover
raise ValueError("Wrapping requires dask-ml to be installed.")
from dask_sql.physical.rel.custom.wrappers import ParallelPostFit

# When `wrap_predict` is set to True we train on single partition frames
# because this is only useful for non dask distributed models
Expand Down
Loading