This repository has been archived by the owner on Oct 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
ChangeFinder Anomaly and Change-Point Detector #305
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…etected. Removed -dim option accordingly. Also changed some initial parameter values and minutiae in ChangeFinderUDFTest, and fixed a typo in MathUtils.
Implemented multiple passes for multidimensional covariances to ensure they are full-rank. Changed internals of solving the system of equations from Cholesky Decomposition to LU Decomposition (However, after the multiple changes introduced in this commit, Cholesky Decomposition may be viable again.)
- Pretty comments describing the computation process in more detail. - Using the initial values of the data to break in data structures instead of rand. (Random generation tends to unpredictably reduce detection accuracy in the beginning.) - Added a moving average for change-point scores to improve detection accuracy. - Refactored tests
L3Sota
changed the title
Feature/cf sdar focused
ChangeFinder Anomaly and Change-Point Detector
Jun 17, 2016
myui
force-pushed
the
master
branch
2 times, most recently
from
June 18, 2016 06:06
bd31b3d
to
ab5c19e
Compare
@L3Sota It seems unit tests of ChangeFinder is failing. |
@myui OK, will look into it. |
The Java 7 Double class doesn't have a isFinite(double) method. Using isNaN(double) instead.
@L3Sota Thanks for fixing ^. |
@L3Sota I'm revising your ChangeFinder implementation in Could you check it in your spare time? |
*/ | ||
RealMatrix[][] xCovarsCombinedRaw = | ||
new RealMatrix[xRunningWindowSize][xRunningWindowSize]; | ||
for (int i = 0; i < xRunningWindowSize; i++) { |
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.
@L3Sota It seems Toeplitz matrix initialization has a bug. Fixed in
https://github.com/myui/hivemall/blob/feature/changefinder1d/core/src/main/java/hivemall/utils/math/MatrixUtils.java#L118
OK, will take a look at it. |
Merged
Let's continue discussions on #333 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Statistical Anomaly and Change-Point detection of discrete time series data via fitting to an SDAR (Sequentially Discounting Autoregressive) Model.
Input
Takes a single n-dimensional vector of doubles as the next point in the time series. Multiple calls automatically update the internal SDAR model.
Output
A struct containing the following 4 elements:
Notes
a + c
calls after initialization usually return false positives, wherea
andc
are the value of the optionsaWindow
andcWindow
, respectivelyArticles/Slides (Japanese):