-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Simplify estimate gaussian covariances diag #30414
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
Simplify estimate gaussian covariances diag #30414
Conversation
553fc3d
to
67c180d
Compare
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.
LGTM.
For future reviewers, the means
arg receives means computed as means = np.dot(resp.T, X) / nk[:, np.newaxis]
, so avg_X_means
is precisely means**2
.
Not sure it requires a changelog entry since it's internal detail but now that it's here. |
67c180d
to
f31c5dd
Compare
@mekleo I amended my commit to credit co-authorship (and similarly in the changelog entry). Please let us know if this is fine with you. |
Great, thank you Olivier. Thanks, Jeremie for the speedy review. |
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.
Co-authored-by: mekleo <[email protected]>
A quick efficiency improvement spotted by @mekleo in #30382.
I think this can go in independently of the decided resolution of the numerical stability problem reported in #30382.