-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-32092][ML][PySpark][3.0] Removed foldCol related code #29524
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
Conversation
|
ok to test |
|
Test build #127812 has finished for PR 29524 at commit
|
|
Ended up changing more than just There was a bug in #29445 where I modified the unit tests to make sure |
|
cc @huaxingao |
|
Test build #127818 has finished for PR 29524 at commit
|
|
Also, cc @srowen |
srowen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK
### What changes were proposed in this pull request? - Removed `foldCol` related code introduced in #29445 which is causing issues in the base branch. - Fixed `CrossValidatorModel.copy()` so that it correctly calls `.copy()` on the models instead of lists of models. ### Why are the changes needed? - `foldCol` is from 3.1 hence causing tests to fail. - `CrossValidatorModel.copy()` is supposed to shallow copy models not lists of models. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Existing tests created in #29445 ran and passed. - Updated `test_copy` to make sure `copy()` is called on models instead of lists of models. Closes #29524 from Louiszr/remove-foldcol-3.0. Authored-by: Louiszr <[email protected]> Signed-off-by: Huaxin Gao <[email protected]>
|
Merged to 3.0. Thank you all! |
… to copy models instead of list ### What changes were proposed in this pull request? Fixed `CrossValidatorModel.copy()` so that it correctly calls `.copy()` on the models instead of lists of models. ### Why are the changes needed? `copy()` was first changed in #29445 . The issue was found in CI of #29524 and fixed. This PR introduces the exact same change so that `CrossValidatorModel.copy()` and its related tests are aligned in branch `master` and branch `branch-3.0`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Updated `test_copy` to make sure `copy()` is called on models instead of lists of models. Closes #29553 from Louiszr/fix-cv-copy. Authored-by: Louiszr <[email protected]> Signed-off-by: Huaxin Gao <[email protected]>
What changes were proposed in this pull request?
foldColrelated code introduced in [SPARK-32092][ML][PySpark] Fix parameters not being copied in CrossValidatorModel.copy(), read() and write() #29445 which is causing issues in the base branch.CrossValidatorModel.copy()so that it correctly calls.copy()on the models instead of lists of models.Why are the changes needed?
foldColis from 3.1 hence causing tests to fail.CrossValidatorModel.copy()is supposed to shallow copy models not lists of models.Does this PR introduce any user-facing change?
No
How was this patch tested?
test_copyto make surecopy()is called on models instead of lists of models.