Coder Social home page Coder Social logo

anomalydetect's Introduction

Recognition of sharp outbursts on the graph

Before recognition, the series undergoes preprocessing in the form of a Holt-Winters smoothing, and dividing each co- ordinate by a burst factor. Since the data are discrete, a formula for detecting strong oscillations on a graph, such as:



The time series is represented as a function of x (t), where t is the time of the coordinate, and in this case the index in the array, the time series is represented by the formula:



Neural network: a fully connected perceptron with three layers and architecture:

  • x -> w1 -> relus -> w2 -> relu -> w3 -> softmax
  1. Input size: 100
  2. First hidden size: 55
  3. Seconds hidden size: 1024
  4. Output size: 2 (anomaly or not anomaly)

Loss function: cross entropy for softmax

Loss function optimization: stochastic gradient descent of Adam Network training: Method of back propagation error

Quick start

make docker_build && make docker_up

Dependencies

For server:
For network train:

Server api


GET /

Server test.
RESPONSE:

{
    "server": "Server start in 8080 port."
}

GET /test

Get network weights, model load test.
RESPONSE:

{
    'w1': {
        'w1: [],
        'b1: []
    },
    'w2': {
        'w2: [],
        'b2: []
    },
    'w3': {
        'w3: [],
        'b3: []
    }
}

POST /analyze

To analyze a segment or segments on the anomaly.
REQYEST BODY:

{
    "series": [
        {
            "value": 1,
            "timestamp": 1514238804
        },
        {
            "value": 1,
            "timestamp": 1514238804
        }
    ]
}

RESPONSE:

{
    "results": [
        {
            "anomaly": true,
            "start": 1514238804,
            "end": 1514238804
        },
        {
            "anomaly": false,
            "start": 1514238804,
            "end": 1514238804
        }
    ]
}

anomalydetect's People

Contributors

vladpunko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.