A Python package for adding realistic noise to electrical load or current profiles. Useful for studying robustness to noise of algorithms
Project description
Overview
This is a package to ADD realistic sources of noise to electrical load profiles. This is useful for testing the robustness of algorithms to noise, to enhance the realism of synthetic data, or to generate augmented data for machine learning purposes.
The overal approach is as follows:
- The package contains various
Perturbations, such as perturbations to add Gaussian or Ornstein-Uhlenbeck noise, or to simulate measurement deadbands (and many others) - You decide which perturbations you want to use, and you add them to a
Pipelineobject. - You can call
pipeline.apply(profiles), and the pipeline sequentially applies the various perturbations to the given profiles.
Note, the package expects profiles as a 2D array (timesteps X measurement devices)
Install
pip install noisy_load_profiles
Examples
On our Github We have examples that demonstrate basic usage, advanced usage, and how to construct new Perturbations.
Below we show the most barebones example of a pipeline applying two types of noise.
from noisy_load_profiles import Pipeline, perturbations
import numpy as np
# initialize some profiles
timesteps = 10
n_profiles = 2
profiles = np.ones((timesteps, n_profiles)) # 2 profiles with 10 timesteps each; example
# Initialize some pertubations
gaussian_noise = perturbations.GaussianNoise(mean=0.0, std=0.01, seed=42)
deadband = perturbations.PercentualDeadBand(seed=42)
# construct the pipeline
pipeline = Pipeline([gaussian_noise, deadband])
# apply the perturbation to the profiles
perturbed_profiles = pipeline.apply(profiles)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noisy_load_profiles-0.1.13.tar.gz.
File metadata
- Download URL: noisy_load_profiles-0.1.13.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9192a070c65be205389decb4367c359deb88bf5df161d5a9cc74cf4a18e34ac
|
|
| MD5 |
5cec905390572b876b99f6d886d3d2f3
|
|
| BLAKE2b-256 |
7c7607c04dfc964fbf35ac15a43d86aad4b84277ee0e41a54dd20921bf6ce576
|
File details
Details for the file noisy_load_profiles-0.1.13-py3-none-any.whl.
File metadata
- Download URL: noisy_load_profiles-0.1.13-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f1f61b0a511651954fd1a7b96e91d2ba4f776f7e0e38288624fbf44e737eda5
|
|
| MD5 |
9a567e5bed587570bf9977a60aa6ef02
|
|
| BLAKE2b-256 |
8a81c9ef1a3a9004fff85c7e22fc92cb85c33d18ecbe327677f8e31081b43278
|