Skip to main content

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 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)

Examples

We have examples that demonstrate basic usage, advanced usage, and how to construct new Perturbations on our github.

Below we show the most barebones example of a pipeline applying two types of noise.

import noisy_load_profiles as nolp
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 = nolp.perturbations.MultiplicativeGaussianNoise(mean=0.0, std=0.01, seed=42)
deadband = nolp.perturbations.PercentualDeadBand(seed=42)

# construct the pipeline
pipeline = nolp.Pipeline([gaussian_noise, deadband])


# apply the perturbation to the profiles
perturbed_profiles = pipeline.apply(profiles)

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

noisy_load_profiles-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noisy_load_profiles-0.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file noisy_load_profiles-0.1.0.tar.gz.

File metadata

  • Download URL: noisy_load_profiles-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for noisy_load_profiles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e894bcea9b4f108a8f1f9a73b9fa2c714982796c0642148a99783bf29d2bd040
MD5 37c6f541339607204c063c7ffabcf947
BLAKE2b-256 be96655e1d0de45dbb55af84e495fac5f5d266c0706d5cc6ecb75763e53d1eb3

See more details on using hashes here.

File details

Details for the file noisy_load_profiles-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for noisy_load_profiles-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21dace18532c6ffad2d852649f5b61eec8400e938aee519b15bfdc6606402fb1
MD5 ba508f2835e66ff1dc410b08a8e17f24
BLAKE2b-256 c3fa9a03db310dc9303b5199ade61ca4e7c98f43b61e2f2da4f69d15a8cacbc5

See more details on using hashes here.

Supported by

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