Skip to content

[SPARK-46224][PYTHON][MLLIB][TESTS] Test string representation of TestResult (pyspark.mllib.stat.test)#44138

Closed
HyukjinKwon wants to merge 1 commit into
apache:masterfrom
HyukjinKwon:SPARK-46041
Closed

[SPARK-46224][PYTHON][MLLIB][TESTS] Test string representation of TestResult (pyspark.mllib.stat.test)#44138
HyukjinKwon wants to merge 1 commit into
apache:masterfrom
HyukjinKwon:SPARK-46041

Conversation

@HyukjinKwon
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR adds a test for toString on the model via TestResult within pyspark.mllib.stat.test.

Why are the changes needed?

Screenshot 2023-12-04 at 9 19 37 AM

https://app.codecov.io/gh/apache/spark/blob/master/python%2Fpyspark%2Fmllib%2Fstat%2Ftest.py#L28

This is not being tested.

Does this PR introduce any user-facing change?

No, test-only

How was this patch tested?

Manually ran the new unittest.

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

No.

Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@HyukjinKwon
Copy link
Copy Markdown
Member Author

The linter failure is by #44141.

Merged to master.

asl3 pushed a commit to asl3/spark that referenced this pull request Dec 5, 2023
…tResult (pyspark.mllib.stat.test)

### What changes were proposed in this pull request?

This PR adds a test for `toString` on the model via `TestResult` within `pyspark.mllib.stat.test`.

### Why are the changes needed?

![Screenshot 2023-12-04 at 9 19 37 AM](https://github.com/apache/spark/assets/6477701/8a360172-0913-43ce-a5f0-a68cdefe252c)

https://app.codecov.io/gh/apache/spark/blob/master/python%2Fpyspark%2Fmllib%2Fstat%2Ftest.py#L28

This is not being tested.

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

No, test-only

### How was this patch tested?

Manually ran the new unittest.

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

No.

Closes apache#44138 from HyukjinKwon/SPARK-46041.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
…tResult (pyspark.mllib.stat.test)

### What changes were proposed in this pull request?

This PR adds a test for `toString` on the model via `TestResult` within `pyspark.mllib.stat.test`.

### Why are the changes needed?

![Screenshot 2023-12-04 at 9 19 37 AM](https://github.com/apache/spark/assets/6477701/8a360172-0913-43ce-a5f0-a68cdefe252c)

https://app.codecov.io/gh/apache/spark/blob/master/python%2Fpyspark%2Fmllib%2Fstat%2Ftest.py#L28

This is not being tested.

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

No, test-only

### How was this patch tested?

Manually ran the new unittest.

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

No.

Closes apache#44138 from HyukjinKwon/SPARK-46041.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@HyukjinKwon HyukjinKwon deleted the SPARK-46041 branch January 15, 2024 00:50
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.

3 participants