Introduction
A simple introduction to statistical learning in time-series forecasting. This model is a lightweight and easy to understand example of model traning, testing and implementation. The package enables one to build, train and test a time-series forcasting model using the Simple Exponential Smoothing method.
Learn more here: https://machinelearningmastery.com/exponential-smoothing-for-time-series-forecasting-in-python/
Usage
Download and run the package on your local system. Python version 3.10.0 or greater is advised.
Model
Simple Exponential Smoothing can be interpreted as a weighted sum of the time-series values wherein the weights are exponentially increasing (greater importance to future values in the time-series). The "alpha" value or the smoothing parameter lies between 0 and 1: the alpha value is directly proportional to the exponentially increasing nature of the weights.
Learn more here: https://btsa.medium.com/introduction-to-exponential-smoothing-9c2d5909a714
Error metrics
Simply put, training the model involves finding the "alpha" value that minimizes the forecast error (difference between true and forecasted values). In this implementation, one can choose from the following error metrics to obtain the optimal "alpha" value:
| Error (Cost Function) | Parameter | Formula |
|---|---|---|
| Mean Squared Error (MSE) | mean squared error |
|
| Root Mean Squared Error (RMSE) | root mean squared error |
|
| Mean Absolute Error (MAE) | mean absolute error |
|
| Mean Absolute Percentage Error (MAPE) | mean absolute percentage error |
|
Where n represents the number of time-series in the data set.
is the difference between the true and forecasted future values of the time-series i in n.
Learn more about the different cost functions here: https://www.analyticsvidhya.com/blog/2021/10/evaluation-metric-for-regression-models/
Implementation
This model is trained and tested on the M4 dataset of the Makridakis Time-Series Forecasting Competition: https://github.com/Mcompetitions/M4-methods/tree/master/Dataset (Daily-train.csv and Daily-test.csv) using the mean absolute percentage error metric from the table above.
Questions
Contact aparna.komarla@gmail.com with any questions.
Metadata
Release files for ExpSmoothing 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ExpSmoothing-0.1.9.tar.gz | 11.7 kB | Without provenance | Details for ExpSmoothing-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ExpSmoothing-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for ExpSmoothing-0.1.9-py3-none-any.whl |
Total release size: 23.8 kB
Release files / ExpSmoothing-0.1.9.tar.gz
| Download URL | ExpSmoothing-0.1.9.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44153a5d45dd870c8bb76b67d2bbca39ac195721f1fe7df78a0cb2c9d63dd166
|
|
BLAKE2b-256 checksum How to use checksums |
3f44be0d13427268a5561ebb9751b04572d4531df1bf9b58e99d01eb3137679d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / ExpSmoothing-0.1.9-py3-none-any.whl
| Download URL | ExpSmoothing-0.1.9-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f25545736c2f410d4d652b6e8afd1abe638a056e401afd1618e135aaeddd8450
|
|
BLAKE2b-256 checksum How to use checksums |
4cbcb860ecaec040a46792454364de6a3ec1f6ef46fa2a981b452e2dac3fda8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for ExpSmoothing 0.1.9
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.