Skip to content

[ML] do not clear periodicity test after detecting a changepoint #159

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

Conversation

hendrikmuhs
Copy link

Internal QA test revealed a problem with deleting the periodicity test after detecting a changepoint, causing a regression in an internal dataset. This fix removes the clearance part of changepoint detection (only a small part of cp detection, see #95), effectively restoring the old behavior.

Non-issue because this fixes an issue of an unreleased feature.

Copy link
Contributor

@tveasey tveasey left a comment

Choose a reason for hiding this comment

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

LGTM

@hendrikmuhs hendrikmuhs force-pushed the dont-clear-peridicity-after-cp branch from e4e6a45 to 6ca7f97 Compare July 19, 2018 13:52
Copy link
Contributor

@tveasey tveasey left a comment

Choose a reason for hiding this comment

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

Still LGTM.

CPPUNIT_ASSERT(::fabs(x[2][0] - x[0][0]) < 3.3 * std::sqrt(noiseVariance));
time += bucketLength;
}

// Scale by 2 / 0.3

// Disabled, see https://github.com/elastic/ml-cpp/pull/159
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

That's unfortunate. This shows the problem with detecting a seasonal component when the window includes one or more change points.

I wonder if we can determine that the seasonal component we detect has worse prediction error than the current model and discard it. Such a test should avoid the other problem we hit.

This is something we might be able to achieve for 6.4, but let's look at that in a follow up PR.

@hendrikmuhs hendrikmuhs merged commit fd6141b into elastic:master Jul 19, 2018
hendrikmuhs pushed a commit to hendrikmuhs/ml-cpp that referenced this pull request Jul 20, 2018
…stic#159)

do not clear periodicity test after detecting a changepoint: Internal QA test revealed a problem with
deleting the periodicity test after detecting a changepoint, causing a regression in an internal dataset. 
This fix removes the clearance part of changepoint detection (only a small part of cp detection, see 
elastic#95), effectively restoring the old behavior.
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.

2 participants