Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akejariwal committed Jan 6, 2015
2 parents c5fdbdb + db19f9f commit 3b65fc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ before_install:
- ./travis-tool.sh bootstrap

install:
- ./travis-tool.sh install_r Rcpp ggplot2
- ./travis-tool.sh install_r Rcpp ggplot2 stringr lubridate testthat

script:
- ./travis-tool.sh run_tests
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', plot=TRUE)
res$plot
```

![Fig 1](https://github.com/twitter/AnomalyDetection/blob/master/figs/Fig1.png)

From the plot, we observe that the input time series experiences both positive
and negative anomalies. Furthermore, many of the anomalies in the time series
are local anomalies within the bounds of the time series’ seasonality (hence,
Expand All @@ -91,6 +93,8 @@ res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', only_last=
res$plot
```

![Fig 2](https://github.com/twitter/AnomalyDetection/blob/master/figs/Fig2.png)

From the plot, we observe that only the anomalies that occurred during the last
day have been annotated. Further, the prior six days are included to expose the
seasonal nature of the time series but are put in the background as the window
Expand All @@ -99,3 +103,7 @@ of prime interest is the last day.
Anomaly detection for long duration time series can be carried out by setting
the longterm argument to T.

## Copyright and License
Copyright 2015 Twitter, Inc and other contributors

Licensed under the GPLv3

0 comments on commit 3b65fc9

Please sign in to comment.