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] Fix potential use of unintialised value when minimising lowess regression function #2268

Merged
merged 2 commits into from
May 16, 2022

Conversation

tveasey
Copy link
Contributor

@tveasey tveasey commented May 16, 2022

If for any reason the extrapolation range for lowess regression returns zero then globalMinimize, to find the function minimum, would be supplied an empty collection of points and fail. This would then lead to minimum returning a uninitialised value for the minimum. This shouldn't normally happen in our usage of it, but we have seen the error message associated with supplying an empty collection to globalMinimize in our QA suite.

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 9d1507c into elastic:main May 16, 2022
@tveasey tveasey deleted the log-error-1 branch May 16, 2022 14:00
tveasey added a commit to tveasey/ml-cpp-1 that referenced this pull request May 16, 2022
…egression function (elastic#2268)

If for any reason the extrapolation range for lowess regression returns zero then globalMinimize, to find the function
minimum, would be supplied an empty collection of points and fail. This would then lead to minimum returning a
uninitialised value for the minimum. This shouldn't normally happen in our usage of it, but we have seen the error
message associated with supplying an empty collection to globalMinimize in our QA suite.
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