MLBazaar / MLBazaar/MLPrimitives

Add new timeseries anomaly detection primitives

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new primitives Pending Review
Dominant language
Python
Stars
70
Forks
37
PR merge metrics
No merged PRs in 30d

Description

X-Sigma primitive:
This primitive computes the absolute error of a prediction and checks to see if its magnitude is larger than a factor of x-sigma where x is a positive integer.

Edit the timeseries_errors.py file so that it has methods from only the NASA paper. It should be given a different name like dynamic_error_thresholding.py

For the new primitive, I will call it sigma_error_thresholding.py

Methods needed for this primitive:

  • To compute the error for this method, we could use the get_forecast_errors() method similarly implemented in the current timeseries_errors.py

  • detect_sigma_outliers(errors, num_sigmas) returns a list of contiguous sequences of anomalies, where each an anomaly has errors[i] > x*sigma_error and sigma_error = np.std(errors).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading timeseries_errors.py and its get_forecast_errors() method, then compare the requested NASA-paper methods with the proposed sigma_error_thresholding.py name. Define detect_sigma_outliers(errors, num_sigmas) around the stated standard-deviation threshold and contiguous anomaly sequences; done means the new primitive is separated from the existing methods and its behavior is covered by the repository's relevant checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.