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.3.0.tar.gz (80.3 MB view details)

Uploaded Source

Built Distribution

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

spcqe-0.3.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spcqe-0.3.0.tar.gz
  • Upload date:
  • Size: 80.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spcqe-0.3.0.tar.gz
Algorithm Hash digest
SHA256 063c3f9b9325e37ed0407cfc3a3b5d7ad90878d183479f88757b78d77e363601
MD5 4d3ea3d542398c05474db3d8f246f16b
BLAKE2b-256 13c970368b68bcf2dd78135c6cc462323798567f79ce3901a04e70357c5e6056

See more details on using hashes here.

Provenance

The following attestation bundles were made for spcqe-0.3.0.tar.gz:

Publisher: build.yml on cvxgrp/spcqe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: spcqe-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spcqe-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06467a653be8c160ae945e832ea8f8295cae8683771421425ba6534b32cf7cdd
MD5 e0ba672f400416d520a76f54497e2454
BLAKE2b-256 945dbf9cf5718b4e2e40f2c6694caea0d66ce3c8853c92b98ff455b154126e77

See more details on using hashes here.

Provenance

The following attestation bundles were made for spcqe-0.3.0-py3-none-any.whl:

Publisher: build.yml on cvxgrp/spcqe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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