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

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.1a0.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

spcqe-0.0.1a0-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

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