Skip to main content

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 Pipeline object.
  • 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)

Metadata

Release files for noisy-load-profiles 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for noisy-load-profiles 0.2.0
File Size Uploaded
noisy_load_profiles-0.2.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for noisy-load-profiles 0.2.0
File Interpreter ABI Platform
noisy_load_profiles-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / noisy_load_profiles-0.2.0.tar.gz

Download URL noisy_load_profiles-0.2.0.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b75d9d0a9c8ac8ea3772ed2e53688bd2d6eccdef3f1ff36c370cc894ecfb7ac
BLAKE2b-256 checksum
How to use checksums
1b3b564dbd68b4a272b22b3e32a1561807ab3a76ab72066a48c2656bdc083345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / noisy_load_profiles-0.2.0-py3-none-any.whl

Download URL noisy_load_profiles-0.2.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f19bcc89e896c4e1aafbacbf008febdeb59fbd5000288794afc922ecdc5f178b
BLAKE2b-256 checksum
How to use checksums
183d49f107107197eaa1df5e49957803da337a277a07aefb2b2fd02d025b34ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.27

2 release files

0.1.26

2 release files

0.1.25

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page