Skip to main content

A scikit-learn estimator which wraps another estimator to provide facilities for time series problems where previous predictions are used as features.

Description

When calling model.fit(X,y), y with time lag 1 is appended to X before fitting the model. When calling model.predict(X), for each sample in X, the prediction uses the previous known value for y (either true or predicted) as an additional feature.

Usage

This estimator implements the standard estimator API. As such, it should play nice with other scikit-learn objects

Example of wrapping an existing estimator:

>>> from sklearn.linear_model import LinearRegression
    from progestimator.prog_regression import ProgressiveRegression

    y = np.array([[1.0], [3.0], [4.0], [7.0], [15.0], [31.0]])
    X = np.ones(([1.0], [1.0], [1.0], [1.0], [1.0], [1.0]])
    model = ProgressiveRegression(LinearRegression()) 
    model.fit(X,y)

>>> model.predict(([1.0], [1.0], [1.0], [1.0], [1.0], [1.0]]))

array([[  64.98224852],
       [ 137.08896047],
       [ 290.09172322],
       [ 614.74728963],
       [1303.63182285],
       [2765.37143003]])

Metadata

Release files for scikit-learn-progestimator 0.1.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 scikit-learn-progestimator 0.1.0
File Size Uploaded Provenance Actions
scikit-learn-progestimator-0.1.0.tar.gz 3.6 kB Without provenance Details for scikit-learn-progestimator-0.1.0.tar.gz

Release files / scikit-learn-progestimator-0.1.0.tar.gz

Download URL scikit-learn-progestimator-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
37a6dfe10b84dfdd69d0df38dd3b6e54edd654efa1abb2030f915e15d36e04e1
BLAKE2b-256 checksum
How to use checksums
0e7d401cdda8c4b9bbd6cfb00823f0f41ee80c1adecb765bad2f148585e3e6fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Security for scikit-learn-progestimator 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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