Skip to main content

Context is used here to provide a better understanding of the difference cases the data are each time. Essentially, Context represent the data (CD), existing in a time window, and their relationships (CR), where the relationships are extracted using causal discovery between the data (the causal discovery method can be user defiend).

Project description

PdMContext

A Python package for extracting context in streaming applications (related to Predictive Maintenance and Anomaly Detection)

Documentation can be found in the Documentation folder

See src/Example.ipynb for usage

Context and Data types

Context is used here to provide a better understanding of the different cases the data are each time.

Essentially Context represents the data (CD), existing in a time window, and their relationships (CR), where the relationships are extracted using causal discovery between the data (the causal discovery method can be user defined).

PdmContext.utils.structure.Context is used to represent such a context.

Data Types

Continuous (analog, real, Univariate series ...):

To this point CD contains data from different sources, and supports different sample rates of signals, and event discrete data. The difference in sample rate is handled internally in the context generation process where all the series are mapped to a single series sample rate called target series (also referred to the code and documentation as such):

  1. For series with a sample rate higher than that of the target, the samples between two timestamps of the targets series, are aggregated (mean)
  2. For series with lower sample rates, repetition of their values is used.

Event Data:

The context supports also data that are not numeric, but related to some kind of event (events that occur in time). These are often referred to as discrete data. To this end, the Context supports two types of such events:

  1. isolated: Events that have an instant impact when they occur.
  2. configuration: Events that refer to a configuration change that has an impact after its occurrence.

The type of events is used to transform them into continuous space and add them to CD.

alt text

Related works:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdmcontext-0.0.2.tar.gz (920.9 kB view details)

Uploaded Source

Built Distribution

pdmcontext-0.0.2-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pdmcontext-0.0.2.tar.gz.

File metadata

  • Download URL: pdmcontext-0.0.2.tar.gz
  • Upload date:
  • Size: 920.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pdmcontext-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1471a0c7fc8e19346d9e4de1d0a012d97b1600202629f76174240c0d42c9d490
MD5 f986bc78ea3aea53b193ee687cbc7e31
BLAKE2b-256 502d070e1bb6d4e5e9b6406a4eb057fd145a0ff576c7d5c1d87e743e7c14cda0

See more details on using hashes here.

File details

Details for the file pdmcontext-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pdmcontext-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pdmcontext-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39e66ffd7753639f52e5cc38cc5d31b8e3e2e171a99dcfadc0a9efe7f2d8a02c
MD5 25f5e2735c88f54b02c8f26e898775b3
BLAKE2b-256 7a94cc9a56e01fe6f15d322199e9b39c19098ff7321eec7e845eb6c6f51ffa5e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page