 |
Anomaly detection problem for time series using Egads
Source code name: "egads_ time series.py"
Programming language: Python
Topic: Data mining/Algorithms
DMelt Version 2.4. Last modified: 03/03/2021. License: Pro
https://datamelt.org/code/cache/egads_ time series_8837.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
# Anomaly detection problem for time series
# You need at least configuration file defining what to do, and data file
# with time series
"""
This example uses EGADS (Extensible Generic Anomaly Detection System) is an open-source Java package to automatically detect anomalies in large scale time-series data.
"""
from java.util import Properties
from java.io import FileInputStream
from com.yahoo.egads.utilities import FileInputProcessor
from jhplot import *
print "Get a sample config file and CSV data file"
conf="sample_config.ini"
data="sample_input.csv"
fhttp="https://datamelt.org/examples/data/egads/"
print Web.get(fhttp+conf)
print Web.get(fhttp+data)
p = Properties()
iss = FileInputStream(conf)
p.load(iss)
ip = FileInputProcessor(data)
ip.processInput(p)
You see the box below because you did not login.