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

[SPARK-51060][ML][PYTHON][CONNECT] Support QuantileDiscretizer on Conenct #49761

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Support QuantileDiscretizer on Conenct

Why are the changes needed?

for feature parity

Does this PR introduce any user-facing change?

yes

How was this patch tested?

added tests

Was this patch authored or co-authored using generative AI tooling?

no

remote_model = JavaModel(java_model)
if self.isSet(self.inputCol):
return Bucketizer(
splits=remote_model._call_java("getSplits"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bucketizer is kind of special, it not only can be directly used as a normal transformer, but also can be fitted by a QuantileDiscretizer.

When fitted by QuantileDiscretizer, it fetches the coefficients and builds a client side model

@zhengruifeng
Copy link
Contributor Author

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

Successfully merging this pull request may close these issues.

1 participant