Giter Site home page Giter Site logo

Comments (7)

Bigchicken98 avatar Bigchicken98 commented on August 18, 2024 1

Thank you for your help

from gutentag.

CodeLionX avatar CodeLionX commented on August 18, 2024

Hey,

You are trying to generate an extremum anomaly of length 15. This is not allowed because extreme values just consist of a single point. If you want to generate multiple extremum anomalies, just add multiple anomaly definitions:

timeseries:
- name: demo
  length: 1000
  base-oscillations:
  - kind: sine
    frequency: 4.0
    amplitude: 1.0
    variance: 0.05
  anomalies:
  # 1. extremum anomaly
  - position: beginning
    length: 1
    kinds:
    - kind: extremum
      min: true
      local: false
  # 2. extremum anomaly
  - &extremum-anomaly
    position: middle
    length: 1
    kinds:
    - kind: extremum
      min: false
      local: true
      context_window: 50
  # 3. extremum anomaly
  - <<: *extremum-anomaly
  # ...

Figure

from gutentag.

Bigchicken98 avatar Bigchicken98 commented on August 18, 2024

I adopted your method. I wanted to generate 50 extremum anomalies in base oscillation with length of 1000, but only 32 were generated

from gutentag.

CodeLionX avatar CodeLionX commented on August 18, 2024

50 extreme values in a time series of length 1000 is a contamination of 5%. Don't you think that this is too much for an anomaly detection use case?

Nevertheless, there is only so much that the automatic positioning algorithm in GutenTAG can do. With so many anomalies, you should specify their location manually and don't rely on the "beginning", "middle", "end" positions. You can do this with the exact-position-key:

timeseries:
- name: demo
  length: 1000
  base-oscillations:
  - kind: sine
    frequency: 4.0
    amplitude: 1.0
    variance: 0.05
  anomalies:
  - exact-position: 413  # index beginning from 0
    length: 1
    kinds:
    - kind: extremum
      min: true
      local: false
  # ...

I want to have a look why the anomalies disappear. Can you send me your configuration file?

from gutentag.

Bigchicken98 avatar Bigchicken98 commented on August 18, 2024

timeseries-declarations.txt
Thank you!

from gutentag.

CodeLionX avatar CodeLionX commented on August 18, 2024

timeseries-declarations.txt Thank you!

There is actually a bug in the positioning algorithm that leads to multiple anomalies getting injected at the same position. We are working on a fix for that.

from gutentag.

CodeLionX avatar CodeLionX commented on August 18, 2024

We fixed the positioning algorithm in 801b0a3. GutenTAG should not miss any further anomalies from now on. You can use the current master to test this.

from gutentag.

Related Issues (14)

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.