-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32164][ML] GeneralizedLinearRegressionSummary optimization #28990
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
|
retest this please |
|
|
||
| private[regression] lazy val link: Link = familyLink.link | ||
|
|
||
|
|
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.
super nit: extra blank line?
| lazy val numInstances: Long = predictions.count() | ||
| lazy val numInstances: Long = glrSummary.getLong(0) | ||
|
|
||
|
|
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.
remove this extra blank line too?
|
The changes make sense to me. |
|
Test build #124927 has finished for PR 28990 at commit
|
|
Retest this please |
|
Test build #124983 has finished for PR 28990 at commit
|
|
Test build #124997 has finished for PR 28990 at commit
|
|
I will merge this PR :) |
|
Merged to master. Thanks everyone! |
|
thanks all! |
What changes were proposed in this pull request?
1, GeneralizedLinearRegressionSummary compute several statistics on single pass
2, LinearRegressionSummary use metrics.count
Why are the changes needed?
avoid extra passes on the dataset
Does this PR introduce any user-facing change?
No
How was this patch tested?
existing testsuites