Skip to main content

Smooth periodic consistent quantile estimation

Project description

spcqe

Smooth (multi-) periodic consistent quantile estimation. We attempt to follow the sklearn "fit/transform" API, and the main class inherets TransformerMixin and BaseEstimator from sklearn.base.

Installation

The package is available on both PyPI and conda-forge.

pip installation:

pip install spcqe

conda installation:

conda install conda-forge::spcqe 

You may also clone the repository to your local machine and install with pip by navigating to the project directory and running:

pip install .

If working on the files in this package (i.e. fixing bugs or adding features), it useful to install in editable mode:

pip install -e .

Usage

from spcqe.quantiles import SmoothPeriodicQuantiles

y1 = ... # some data with hourly measurement exhibiting daily, weekly, and yearly periodicities
P1 = int(365*24)
P2 = int(7*24)
P3 = int(24)
K = 3
l = 0.1
spq = SmoothPeriodicQuantiles(K, [P1, P2, P3], weight=l)
spq.fit(y1)

Examples

Many examples Jupyter notebooks are available in the notebooks folder.

Acknowledgement

This material is based upon work supported by the U.S. Department of Energy's Office of Energy Efficiency and Renewable Energy (EERE) under the Solar Energy Technologies Office Award Number 38529, "PVInsight".

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

spcqe-0.0.3.tar.gz (53.7 MB view details)

Uploaded Source

Built Distribution

spcqe-0.0.3-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file spcqe-0.0.3.tar.gz.

File metadata

  • Download URL: spcqe-0.0.3.tar.gz
  • Upload date:
  • Size: 53.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for spcqe-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0af506a02b913f6b91750bc0be3ab7855e79b122c81ce4d09368a858f82f3744
MD5 52a95ed7ae57cf7fcb1086d1e2174e34
BLAKE2b-256 47ba2aed7676da2d97170bed677972eef9e3bbd2fd6afba9afa0ae515ddd3eb5

See more details on using hashes here.

File details

Details for the file spcqe-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: spcqe-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for spcqe-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 30a2cb06a650e79892cfcb26e22712481e22f52cb68853329974a4ba336bf5fa
MD5 a2526befdae7f6a5b6cb71c937c33a04
BLAKE2b-256 b1b0b3c9f4473a018b5c20f4cfd64bd538d93ea4ed08eea3c708782671aa2d10

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