GithubHelp home page GithubHelp logo

suedaglgn / novelty-detector-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.1 MB

Novelty Detection on Time Series Data using Gaussion Distribution and CatBoost

Dockerfile 0.01% Python 0.01% Jupyter Notebook 99.99%

novelty-detector-app's Introduction

Novelty Detection App on Time Series Data

Data

ambient_temperature_system_failure.csv from The Numenta Anomaly Benchmark (NAB)

Techniques

  • EllipticEnvelope
  • CatBoost

Usage

1- Run ipynb file to create model

2- Build docker file in project directory

docker build -t novelty_detector .

3- Run docker image

docker run -p 5000:5000 novelty_detector

4- Use postman or curl to predict

Curl:

curl --location --request POST 'http://127.0.0.0:5000/predict' \
--header 'Content-Type: application/json' \
--data-raw '{
    "value": 13
}'

Json:

{
    "value": 13
}

API docs

Endpoints Method Params Definition Sample Value Sample Response
/predict POST value Value that want to predict 13 {'prediction': [1]}
/report GET - - - Number of normal values and Number of anormal values

Result

              precision    recall  f1-score   support

           0       1.00      1.00      1.00      1797
           1       1.00      0.90      0.95        20

    accuracy                           1.00      1817
   macro avg       1.00      0.95      0.97      1817
weighted avg       1.00      1.00      1.00      1817

novelty-detector-app's People

Contributors

suedaglgn 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.