Skip to content

[ML] Fix regression in QA data set #489

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

Merged
merged 2 commits into from
Jun 3, 2019
Merged

Conversation

tveasey
Copy link
Contributor

@tveasey tveasey commented May 31, 2019

One of our QA sets has shown a regression associated with #468. This was triggered by selecting our Poisson process model in conjunction with a periodic event rate. Including the Poisson process at all in such cases is low value and since we don't properly deal with the change in variance associated with rate changes in this case it has undesirable side effects. This change simply removes it from model selection if we start modelling seasonality (we can revisit this if we do any work to better deal with the variance).

I also increased the parameter introduced in #468 (this means we revert slightly more to our old behaviour). Finally, I've rejigged reinitialisation of the multi-bucket model decay rate, which should have been matching the single bucket model.

Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -1619,6 +1619,8 @@ void CUnivariateTimeSeriesModel::reinitializeStateGivenNewComponent(
// re-weight so that the total sample weight corresponds to the sample
// weight the model receives from a fixed (shortish) time interval.

m_ResidualModel->removeModels(
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps add a comment to explain why we're removing Poisson from model selection in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this comment

@tveasey tveasey merged commit 89c9402 into elastic:master Jun 3, 2019
@tveasey tveasey added the v7.2.1 label Jun 3, 2019
@tveasey tveasey deleted the qa-regression-1 branch June 3, 2019 17:28
tveasey added a commit to tveasey/ml-cpp-1 that referenced this pull request Jun 10, 2019
tveasey added a commit that referenced this pull request Jun 10, 2019
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.

3 participants