Skip to main content

Forecast_x: Toolkit with Naive models for time series.

Forecast_x logo

PyPI version license Downloads Downloads Downloads

**If you're interested in financially supporting my open source, consider visiting this link. Your support helps tremendously with sustainability this work.

Forecast_x is a pure python package that provides different naive models for fitting multiple time series, especially in batch process, due to its powerful flexibility and easy usage.

This library can be used in several industries with focus on manufacturing processes, where forecasting models with low cost of error are needed to plan raw material consumption.

Models

Forecast_x uses the following models to produce forecast:

  • Model Naive
  • Model Seas Naive
  • Model Mean Two Periods
  • Model Mean Three Periods
  • Model Half Seas Mean
  • Model Seas Period Mean
  • Model Double Seas Mean
  • Model Seas Growth
  • Model Expo Weighted
  • Model Threefith Mean
  • Model Multi Seas Mean
  • Model Seas Double Mean Growth
  • Model Grand Mean
  • Model Smooth Grand Mean
  • Model Last Seas Mean
  • Model Current Mean Seas
  • Model Smooth Double Seas Naive
  • Model Truncated Mean
  • Model Harmonic Mean
  • Model Heronian Mean

Getting started: 10 seconds to Forecast_x

Here is how-to use Forecast_x models:

from forecast_x import forecast_x as fx

# time series observation
time_series = [51, 17, 28, 37, 52, 21, 34, 47, 38, 35, 7, 27]
freq = 12 # monthly
h = 12 # forecast months ahead

# Creating the forecast object
f = fx.forecast(time_series, freq, h)

# Applying any the model from the package
model = f.model_naive()

# The model variable would produce a list of three elements:
# - Fitting Values
# - Error
# - Forecast
model

To get only forecast of a given model you should use:

f.get_forecast('model_naive')

To allow the package to select the best fit based on multiple cross validation you should use:

model = f.best_model()
# forecast_x would select 'model_seas_period_mean' as best model based on test results
model
# Getting forecast from best model
forecast = get_forecast(model)

Installation

# or PyPI
pip install forecast_x

Dependencies

  • None.

Python Version

Supported on 3.5, 3.6 and 3.7.

License

MIT

Documentation

The official documentation will be available soon.

Citation

Citations or acknowledge on any work or project are very welcome:

Alejandro De Barros. 2018. Forecast_x: An open source forecasting tool for time series library for Python

Meta

Alejandro De Barros – (https://twitter.com/alejandrodbn) – alejandrodbn@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/alejandrodbn/forecast

Code of Conduct

Everyone interacting with this project's codebases, issue trackers, and mailing lists is expected to follow the Code of Conduct.

Metadata

Release files for forecast-x 0.12.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forecast-x 0.12.20
File Size Uploaded Provenance Actions
forecast_x-0.12.20.tar.gz 6.6 kB Without provenance Details for forecast_x-0.12.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forecast-x 0.12.20
File Interpreter ABI Platform Actions
forecast_x-0.12.20-py3-none-any.whl Python 3 none any Details for forecast_x-0.12.20-py3-none-any.whl

Total release size: 25.1 kB

Release files / forecast_x-0.12.20.tar.gz

Download URL forecast_x-0.12.20.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4f31565192e76cf3c85777dfbea21be41ab4821e40f980b343134ae3cc5e3612
BLAKE2b-256 checksum
How to use checksums
09e76c37847866dc89f989144caf028bd9a7aaea2533db0a0dc20aafd2138971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

Release files / forecast_x-0.12.20-py3-none-any.whl

Download URL forecast_x-0.12.20-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ab32904670d9ec1fc877efb1c5893d5ed87c2a5b53f583a45d760633e34b7e6
BLAKE2b-256 checksum
How to use checksums
ea6ec8b92acddff8c8d655818e7b430c73e8fe52a0ef43b0c1443e5c4ce8d257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

Security for forecast-x 0.12.20

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.

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