Skip to main content

forecastbox

Forecast containers, evaluation metrics, and cross-validation for time series.

Installation

pip install -e ".[dev]"

Quick Start

import numpy as np
import pandas as pd
from forecastbox import Forecast
from forecastbox.metrics import mae, rmse
from forecastbox.datasets import load_dataset

# Create a forecast
fc = Forecast(
    point=np.array([100.5, 101.2, 102.0]),
    index=pd.date_range('2024-01', periods=3, freq='MS'),
    model_name='MyModel',
    horizon=3
)

# Evaluate
actual = np.array([100.8, 100.9, 103.1])
print(f"MAE: {mae(actual, fc.point):.2f}")
print(f"RMSE: {rmse(actual, fc.point):.2f}")

# Load dataset
data = load_dataset('macro_brazil')
print(data['ipca'].head())

License

MIT

Metadata

Release files for forecastbox 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 forecastbox 0.1.0
File Size Uploaded
forecastbox-0.1.0.tar.gz 224.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forecastbox 0.1.0
File Interpreter ABI Platform
forecastbox-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 505.5 kB

Release files / forecastbox-0.1.0.tar.gz

Download URL forecastbox-0.1.0.tar.gz
Size 224.5 kB
Tags Source
SHA-256 checksum
How to use checksums
be07b01fcdfe30665cc3cf226c14568c400a8fdd3a5d095cbfc12d6f0223e9c5
BLAKE2b-256 checksum
How to use checksums
4f65e1e7d72a018b7d52befc02e8c8415c63c9c22e7a7b83d9bfd24eef6a21b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

Release files / forecastbox-0.1.0-py3-none-any.whl

Download URL forecastbox-0.1.0-py3-none-any.whl
Size 281.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10a7e87ffc3bcb04b597b0d2fe57d91c8925e81ed0898964fcccb87068115968
BLAKE2b-256 checksum
How to use checksums
5afac994d6390bb32703db5e2ebdf9f23dad82a9b4efccd09833a8fd37cf9784
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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