Điểm qua twitter/AnomalyDetection: 3.6k sao trên GitHub, viết chủ yếu bằng R. Anomaly Detection with R
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
AnomalyDetection is an open-source R package to detect anomalies which is
robust, from a statistical standpoint, in the presence of seasonality and an
underlying trend. The AnomalyDetection package can be used in wide variety of
contexts. For example, detecting anomalies in system metrics after a new
software release, user engagement post an A/B test, or for problems in
econometrics, financial engineering, political and social sciences.
How the package works
The underlying algorithm – referred to as Seasonal Hybrid ESD (S-H-ESD) builds
upon the Generalized ESD test for detecting anomalies. Note that S-H-ESD can
be used to detect both global as well as local anomalies. This is achieved by
employing time series decomposition and using robust statistical metrics, viz.,
median together with ESD. In addition, for long time series (say, 6 months of
minutely data), the algorithm employs piecewise approximation - this is rooted
to the fact that trend extraction in the presence of anomalies in non-trivial -
for anomaly detection.
Besides time series, the package can also be used to detect anomalies in a
vector of numerical values. We have found this very useful as many times the
corresponding timestamps are not available. The package provides rich
visualization support. The user can specify the direction of anomalies, the
window of interest (such as last day, last hour), enable/disable piecewise
approximation; additionally, the x- and y-axis are annotated in a way to assist
visual data analysis.
How to get started
Install the R package using the following commands on the R console:
The function AnomalyDetectionTs is called to detect one or more statistically
significant anomalies in the input time series. The documentation of the
function AnomalyDetectionTs, which can be seen by using the following command,
details the input arguments and the output of the function AnomalyDetectionTs.
help(AnomalyDetectionTs)
The function AnomalyDetectionVec is called to detect one or more statistically
significant anomalies in a vector of observations. The documentation of the
function AnomalyDetectionVec, which can be seen by using the following command,
details the input arguments and the output of the function AnomalyDetectionVec.
help(AnomalyDetectionVec)
A simple example
To get started, the user is recommended to use the example dataset which comes
with the packages. Execute the following commands:
data(raw_data)
res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', plot=TRUE)
res$plot
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,
cannot be detected using the traditional approaches). The anomalies detected
using the proposed technique are annotated on the plot. In case the timestamps
for the plot above were not available, anomaly detection could then carried
out using the AnomalyDetectionVec function; specifically, one can use the
following command:
Often, anomaly detection is carried out on a periodic basis. For instance, at
times, one may be interested in determining whether there was any anomaly
yesterday. To this end, we support a flag only_last whereby one can subset the
anomalies that occurred during the last day or last hour. Execute the following
command:
res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', only_last=”day”, plot=TRUE)
res$plot
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
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
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/twitter/AnomalyDetection là nguồn chính thức.
twitter/AnomalyDetection có bao nhiêu sao?
twitter/AnomalyDetection có 3.6k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/twitter/AnomalyDetection. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
twitter/AnomalyDetection có phải mã nguồn mở không?
Có — twitter/AnomalyDetection phát hành theo license GPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/twitter/AnomalyDetection.
twitter/AnomalyDetection còn đang phát triển không?
Commit gần nhất trên twitter/AnomalyDetection là 7.2 năm trước (theo timestamp GitHub). Repo có 764 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
twitter/AnomalyDetection là gì?
twitter/AnomalyDetection (twitter/AnomalyDetection) là dự án R trên GitHub. Theo mô tả gốc: Anomaly Detection with R
Đọc đầy đủ README ở tab phía trên.
Chưa chắc AnomalyDetection có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về AnomalyDetection.