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

[ML] Numerical robustness improvements for Bayesian Optimisation #2249

Merged
merged 7 commits into from Apr 27, 2022

Conversation

tveasey
Copy link
Contributor

@tveasey tveasey commented Mar 30, 2022

This improves handling of numerical issues computing EI.

In particular, we weren't checking the condition of kernel covariance matrix. We don't need a lot of accuracy, but we need to handle edge cases, like singular matrices, NaNs, etc. In this case, zeroing the EI and its gradient is fine, the solver will fallback to taking random step.

Note that this is also a potential source of [CTools.cc@152] x = NaN, distribution = class... log errors.

@tveasey
Copy link
Contributor Author

tveasey commented Mar 31, 2022

retest

Comment on lines 61 to 62
* Fix possible source of "x = NaN, distribution = class boost::math::normal_distribution<..."
log errors training classification and regression models. (See {ml-pull}2249[#2249].)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since Easter is coming up and this still isn't merged it's likely to miss 8.2.0. If it does slip to a subsequent release then please remember to move the release note.

Copy link
Contributor

@valeriy42 valeriy42 left a comment

Choose a reason for hiding this comment

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

LGTM

@tveasey tveasey merged commit da6c87b into elastic:main Apr 27, 2022
@tveasey tveasey deleted the numerical-stability branch April 27, 2022 11:58
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.

None yet

3 participants