$npx skillfedfor your agent

hierarchicalforecast

Hierarchical Methods Time Series Forecasting

Worth itPyPI Scientific/EngineeringReleased Mar 2026318.8K downloads / moApache Software License 2.0Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — hierarchicalforecast-1.5.1-cp310-cp310-macosx_14_0_arm64.whl · hierarchicalforecast-1.5.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl · hierarchicalforecast-1.5.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
v1.5.1 · released 2026-03-04 · Python <4.0,>=3.10 · 7 runtime deps: numpy, pandas, scikit-learn, matplotlib, narwhals, qpsolvers, utilsforecast

Yes. Active maintenance, permissive license, and no known vulnerabilities make it a reliable choice. Medium install friction is acceptable given the specialized nature of hierarchical forecasting. Install if you need to enforce coherence across hierarchical time-series forecasts; skip if your forecasts are flat or non-hierarchical.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires base forecasts (Y_hat_df) and a hierarchy structure (S_df, tags) as input; typically used downstream of a forecasting model.
  • Medium install friction with 7 runtime dependencies including numpy, pandas, and scikit-learn.
  • Active maintenance with recent release and repository activity.

License · maintenance · safety

Apache Software License 2.0 (permissive) — Apache Software License 2.0 is permissive, allowing commercial use, modification, and distribution with minimal restrictions. Suitable for most production and research applications.

last release 2026-03-04 (163 days) · last repo commit 2026-08-12 · 752 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 318,751 downloads/mo, #7,649 on PyPI

Verify before relying

pip install hierarchicalforecast

from hierarchicalforecast.core import HierarchicalReconciliation
from hierarchicalforecast.methods import BottomUp, TopDown

reconcilers = [BottomUp(), TopDown(method='forecast_proportions')]
hrec = HierarchicalReconciliation(reconcilers=reconcilers)
Y_rec_df = hrec.reconcile(Y_hat_df=Y_hat_df, Y_df=Y_train_df, S_df=S_df, tags=tags)
  • Performance characteristics and reconciliation accuracy across different hierarchy sizes and depths.
  • Whether the package handles missing values or irregular time-series structures automatically.
  • Scalability limits for very large hierarchies or high-frequency data.
  • Monthly download volume and adoption metrics beyond repository stars.
Same gist for agents: .md · .json

What it is and what it does

HierarchicalForecast provides reconciliation methods for time-series forecasts organized in hierarchical structures—such as geographical regions, product categories, or temporal aggregations (weeks, months, years). It takes base forecasts and enforces coherence across hierarchy levels so that predictions at different aggregation levels remain mathematically consistent. The package includes classic methods like BottomUp and TopDown, alternative approaches like MinTrace and MiddleOut, and probabilistic methods such as Normality, Bootstrap, and PERMBU that generate coherent prediction intervals.

The library is designed for practitioners who need coherent forecasts across multiple organizational or temporal levels for consistent decision-making. It integrates with the broader forecasting ecosystem and provides evaluation tools to measure reconciliation quality. The package depends on standard scientific Python libraries (numpy, pandas, scikit-learn, matplotlib) and specialized tools like narwhals for dataframe abstraction and qpsolvers for optimization.

Use it for

  • Reconcile sales forecasts across product hierarchies (brand → category → SKU) to ensure consistency in inventory planning.
  • Enforce temporal coherence in forecasts across different time aggregations (daily → weekly → monthly) for supply-chain alignment.
  • Generate probabilistic coherent forecasts with valid prediction intervals using Bootstrap or Normality methods for risk assessment.
  • Combine independent forecasts from multiple models at different hierarchy levels and reconcile them into a coherent forecast.
  • Evaluate and benchmark reconciliation methods on hierarchical datasets using built-in evaluation metrics.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Active maintenance, permissive license, and no known vulnerabilities make it a reliable choice. Medium install friction is acceptable given the specialized nature of hierarchical forecasting. Install if you need to enforce coherence across hierarchical time-series forecasts; skip if your forecasts are flat or non-hierarchical.

Install

hierarchicalforecast on PyPI

Before you install

Medium install friction with 7 runtime dependencies including numpy, pandas, and scikit-learn. Active maintenance with recent release and repository activity. Supports Python 3.10–3.14 with pre-built wheels across macOS, Linux, and Windows.

Requires base forecasts (Y_hat_df) and a hierarchy structure (S_df, tags) as input; typically used downstream of a forecasting model.

License in practice

Apache Software License 2.0 is permissive, allowing commercial use, modification, and distribution with minimal restrictions. Suitable for most production and research applications.

Quickstart

pip install hierarchicalforecast

from hierarchicalforecast.core import HierarchicalReconciliation
from hierarchicalforecast.methods import BottomUp, TopDown

reconcilers = [BottomUp(), TopDown(method='forecast_proportions')]
hrec = HierarchicalReconciliation(reconcilers=reconcilers)
Y_rec_df = hrec.reconcile(Y_hat_df=Y_hat_df, Y_df=Y_train_df, S_df=S_df, tags=tags)

Verify before relying

  • Performance characteristics and reconciliation accuracy across different hierarchy sizes and depths.
  • Whether the package handles missing values or irregular time-series structures automatically.
  • Scalability limits for very large hierarchies or high-frequency data.
  • Monthly download volume and adoption metrics beyond repository stars.

Package facts

LicenseApache Software License 2.0 permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
7 packages
numpypandasscikit-learnmatplotlibnarwhalsqpsolversutilsforecast
MaintenanceActively maintained 163 days since the last release
Last repo commit
First released
Downloads318,751 / month, #7,649 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: hierarchicalforecast-1.5.1-cp310-cp310-macosx_14_0_arm64.whl; hierarchicalforecast-1.5.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; hierarchicalforecast-1.5.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; hierarchicalforecast-1.5.1-cp310-cp310-win_amd64.whl; hierarchicalforecast-1.5.1-cp311-cp311-macosx_14_0_arm64.whl; hierarchicalforecast-1.5.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; hierarchicalforecast-1.5.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; hierarchicalforecast-1.5.1-cp311-cp311-win_amd64.whl; hierarchicalforecast-1.5.1-cp312-cp312-macosx_14_0_arm64.whl; hierarchicalforecast-1.5.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; hierarchicalforecast-1.5.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; hierarchicalforecast-1.5.1-cp312-cp312-win_amd64.whl; hierarchicalforecast-1.5.1-cp313-cp313-macosx_14_0_arm64.whl; hierarchicalforecast-1.5.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; hierarchicalforecast-1.5.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; hierarchicalforecast-1.5.1-cp313-cp313-win_amd64.whl; hierarchicalforecast-1.5.1-cp314-cp314-macosx_14_0_arm64.whl; hierarchicalforecast-1.5.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; hierarchicalforecast-1.5.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; hierarchicalforecast-1.5.1-cp314-cp314-win_amd64.whl

Tags

Capabilities
hierarchical time series reconciliationcoherent forecasting methodscross-sectional temporal aggregationforecast coherence constraintshierarchical forecast reconciliationbottom-up top-down forecastingprobabilistic forecast reconciliation
Topics
time-series-forecastinghierarchical-reconciliationstatistical-methods
PyPI keywords
time-seriesforecastingdatasetshierarchical

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “hierarchical time series reconciliation”

  • hierarchicalforecastReconciles hierarchical time-series forecasts across multiple levels…
  • datasetsforecastDownloads and loads curated time-series forecasting datasets…
  • dartsDarts provides forecasting and anomaly detection for time series…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also properscoring · statsforecast · neuralforecast · cartoboost · datasetsforecast · mlforecast · gluonts · tbats · chronos-forecasting · utilsforecast

Further reading