-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20764][ML][PySpark][FOLLOWUP]Fix visibility discrepancy with numInstances and degreesOfFreedom in LR and GLR - Python version #18068
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
|
Test build #77231 has started for PR 18068 at commit |
|
Test build #77229 has finished for PR 18068 at commit
|
| # test evaluation (with training dataset) produces a summary with same values | ||
| # one check is enough to verify a summary is returned, Scala version runs full test | ||
| # one check is enough to verify a summary is returned | ||
| # The child class LinearRegressionTrainingSummary runs full test |
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.
I'm not sure what this comment means?
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.
The comment is not related with this PR, just because the previous comment is misleading.
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.
@MLnick This is because the type of LinearRegressionModel.summary is LinearRegressionTrainingSummary, but the return type of LinearRegressionModel.evalute() is LinearRegressionSummary. Theoretically we should test both, but we can simplify the test for only check one function since we have checked all functions in the child class. Thanks for @mpjlu to update this comments.
| # test evaluation (with training dataset) produces a summary with same values | ||
| # one check is enough to verify a summary is returned, Scala version runs full test | ||
| # one check is enough to verify a summary is returned | ||
| # The child class LinearRegressionTrainingSummary runs full test |
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.
I think this is not because Scala version runs full test. Even Scala version runs full test, we still need the function call test.
If a child class have done the function call test, we don't need to test parent class again.
|
retest this please |
|
Test build #77234 has finished for PR 18068 at commit
|
|
LGTM, merged into master and branch-2.2. Thanks for all. |
…numInstances and degreesOfFreedom in LR and GLR - Python version ## What changes were proposed in this pull request? Add test cases for PR-18062 ## How was this patch tested? The existing UT Author: Peng <[email protected]> Closes #18068 from mpjlu/moreTest. (cherry picked from commit 9afcf12) Signed-off-by: Yanbo Liang <[email protected]>
What changes were proposed in this pull request?
Add test cases for PR-18062
How was this patch tested?
The existing UT