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):
- For series with a sample rate higher than that of the target, the samples between two timestamps of the targets series, are aggregated (mean)
- 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:
- isolated: Events that have an instant impact when they occur.
- 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.
Related works:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pdmcontext-0.0.6.tar.gz
.
File metadata
- Download URL: pdmcontext-0.0.6.tar.gz
- Upload date:
- Size: 787.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc290c01478e1728a2f6a81654be5539c5ef28e84427db739a2d10db339589f2 |
|
MD5 | afc974c27e0a30242de30f141088939a |
|
BLAKE2b-256 | 2c6318372fc8953999b556ea68ec01730d6e9bd3544977dab1257f8f983531e8 |
File details
Details for the file pdmcontext-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: pdmcontext-0.0.6-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56033fed6b8d9d8f267f9c8a91d2088f0a4ca04727a2ef43ed7c806ee568ad7a |
|
MD5 | 154ac735927eebfd4cca86049c92e5a2 |
|
BLAKE2b-256 | 59572bdbe2d37c1e95589d923da5992c357ba4f89ca9e28037b646917c443e8b |