ProphetLite
Like Prophet but in numba and all fit with LASSO
A basic comparison vs Prophet:
import pandas as pd
import matplotlib.pyplot as plt
from prophet import Prophet
df = pd.read_csv('https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv')
m = Prophet(weekly_seasonality=False)
m.fit(df, )
future = m.make_future_dataframe(periods=365)
forecast = m.predict(future)
m.plot(forecast)
m.plot_components(forecast)
plt.show()
Now for ProphetLite
You must pass your data as a numpy array
y = df['y'].values
Now to build the class and pass the seasonality
from ProphetLite.prophetlite import ProphetLite
pl = ProphetLite()
fitted = pl.fit(y, [365.25]) #To pass multiple seasonalities just add more nu
predicted = pl.predict(365)
Some Plotting helper methods
pl.plot()
pl.plot_components()
Comparison Plots
plt.plot(np.append(fitted['yhat'], predicted['yhat']), alpha=.3)
plt.plot(forecast['yhat'], alpha=.3)
plt.show()
The Trend Components:
plt.plot(np.append(fitted['trend'], predicted['trend']))
plt.plot(forecast['trend'])
plt.show()
Metadata
Release files for ProphetLite 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ProphetLite-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for ProphetLite-0.0.2-py3-none-any.whl |
Release files / ProphetLite-0.0.2-py3-none-any.whl
| Download URL | ProphetLite-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6eb63536dd6efaf53be52ad23d4802a0c6c2b6d63a7e504422eb5437be4911d
|
|
BLAKE2b-256 checksum How to use checksums |
c00731416c20b92a9524f1bf4d82397d0dd11ed2f528114ff0804cc6fbaf08ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|
Security for ProphetLite 0.0.2
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.