Skip to main content

Take Forecast

A time series forecasting library that uses Kedro pipelines.

For performing the forecast, there are four main steps:

  • Tune: Analyse the time series to find seasonality, unit roots, memory lags and stochastic process lags.

  • Fit: Fit a SARIMA model with hyperparameters obtained in the last step and input data.

  • Predict: Make forecast using the fitted model. Also provide upper and lower boundaries for confidence interval.

  • Evaluate: Assess the model quality by error metrics evaluated in train and test sets.

Installation

Use pip to install:

pip install take-forecast

Usage

A simple example using take_forecast.

import numpy as np
import pandas as pd
from take_forecast import ProjectContext
np.random.seed(0)
samples = 60
x = 100 + 80 * np.linspace(0, 1, samples) + 20 * np.random.randn(samples)
y = x[:-3] + x[1:-2] + x[2:-1] + x[3:]
date_end = pd.Timestamp.now()
date_start = date_end - pd.Timedelta(len(y) - 1, 'd')
index = pd.date_range(date_start, date_end, freq='d')
ts = pd.Series(y, index)
context = ProjectContext()
results = context.run_forecast(ts)

The results are informed as a report in a dict with following keys:

  • forecast: Prediction
  • forecast_lower: Lower limit
  • forecast_upper: Upper limit
  • alpha: Significance level
  • error_metrics_report: Train and test error metrics
  • model: Fitted SARIMA model

Author

Take Blip - Data & Analytics - Research Tribe - Squad XD

Metadata

Release files for take-forecast 1.0.0

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

Built distributions (wheels)

Table of built distributions (wheels) for take-forecast 1.0.0
File Interpreter ABI Platform
take_forecast-1.0.0-py3.7.egg Legacy Egg format - - Details
take_forecast-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 105.1 kB

Release files / take_forecast-1.0.0-py3.7.egg

Download URL take_forecast-1.0.0-py3.7.egg
Size 72.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
5fd4da97816d97bc6c548b6dbe61772395a8298a38f12a1bb2ca4afded257638
BLAKE2b-256 checksum
How to use checksums
79990832894039489076791af5075ba4992738048d5fc2711a61ec1cce84f136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.8

Release files / take_forecast-1.0.0-py3-none-any.whl

Download URL take_forecast-1.0.0-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9349aa31c86cd1f87df8c1a83daa8cd6ea9e7118229ffdd01fc5abec54b3cc2
BLAKE2b-256 checksum
How to use checksums
6d858bbb1c5617a38a3e540c2d85a17154d6329991f51e2fea85e4f4a25b3537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.8

Security for take-forecast 1.0.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.

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