-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50267][ML] Improve
TargetEncoder.fit
with DataFrame APIs
### What changes were proposed in this pull request? Improve `TargetEncoder.fit` to be based on DataFrame APIs ### Why are the changes needed? 1, simplify the implementation; 2, with DataFrame APIs, it will benefit from the optimization from Spark SQL ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #48797 from zhengruifeng/target_encoder_fit. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information
1 parent
8f5d8d4
commit 2cdbede
Showing
2 changed files
with
57 additions
and
78 deletions.
There are no files selected for viewing
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
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