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-50941][ML][PYTHON][CONNECT] add supports for TrainValidationSplit #49688

Closed
wants to merge 2 commits into from

Conversation

wbo4958
Copy link
Contributor

@wbo4958 wbo4958 commented Jan 27, 2025

What changes were proposed in this pull request?

This PR adds support for TrainValidationSplit and TrainValidationSplitModel on Connect

Why are the changes needed?

new feature parity

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

The CI passes

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

No

@wbo4958 wbo4958 marked this pull request as ready for review January 27, 2025 06:34

# Access the train ratio
self.assertEqual(tvs_model.getTrainRatio(), 0.75)
print("----------- ", tvs_model.validationMetrics)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, why print this?

zhengruifeng added a commit that referenced this pull request Jan 27, 2025
### What changes were proposed in this pull request?

This PR adds support for TrainValidationSplit and TrainValidationSplitModel on Connect

### Why are the changes needed?
new feature parity

### Does this PR introduce _any_ user-facing change?
Yes

### How was this patch tested?
The CI passes

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

Closes #49688 from wbo4958/train_validation_split.

Lead-authored-by: Bobby Wang <[email protected]>
Co-authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
(cherry picked from commit 9d0e888)
Signed-off-by: Ruifeng Zheng <[email protected]>
@zhengruifeng
Copy link
Contributor

merged to master/4.0

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.

2 participants