Release notes#

Changelog#

All notable changes to cultivars will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. Until 1.0.0, pre-releases may move public names between alphas; such moves are listed under Changed.

Unreleased#

0.0.5 - 2026-11-30#

Stable-channel republish of 1.0.0a8: the code is identical and only the version string differs. pip install cultivars resolves to it without --pre; pre-release installs keep resolving to 1.0.0a8. Relative to 0.0.3 it carries everything listed under 1.0.0a7 and 1.0.0a8. There is no 0.0.4: the republish of 1.0.0a7 under that number was never published. The entries below are the parts an upgrade from 0.0.3 can notice; docs changes and internal clean-up are listed under 1.0.0a7 and 1.0.0a8.

Changed#

  • Data access is now a separate distribution, cultivars-data (import name cultivars_data), pinned at 0.0.1. cultivars.data is gone: from cultivars.data import economic becomes from cultivars_data import economic.

  • The engine pin moves from cultivars-engine==0.0.3 to 0.0.5. The engine now has a warning hierarchy, cultivars_engine.warnings, which holds StabilityWarning and ExperimentalWarning; neither is importable from cultivars_engine.exceptions any longer. Its particle filter and smoother accept a single particle. See the engine changelog for 0.0.4 and 0.0.5.

  • fedfred is installed through cultivars-data, which also brings edgar-sec and toros. matplotlib is no longer installed with cultivars; install it to run the examples.

  • cultivars.multivariate.structural.heteroskedacity is renamed cultivars.multivariate.structural.heteroskedasticity (#389). The misspelled name is not kept as an alias.

  • cultivars.exceptions, cultivars.summary and cultivars.typing are the cultivars_engine modules themselves, bound in cultivars/__init__.py. cultivars.exceptions.SpecificationError and from cultivars import exceptions work as before. from cultivars.exceptions import ... raises ModuleNotFoundError, and the same holds for summary and typing: import from cultivars_engine.exceptions, cultivars_engine.summary and cultivars_engine.typing.

  • John Bernardin joins Nikhil Sunder as maintainer and co-author. The copyright notice, the package metadata and CITATION.cff name both.

Removed#

  • cultivars.data.

  • The modules cultivars/exceptions.py, cultivars/summary.py and cultivars/typing.py.

  • cultivars.multivariate.structural.heteroskedacity, renamed as above.

Fixed#

  • cultivars.diagnostics imports its stability module and lists it in __all__ (#105).

  • ShortRunSVAR.identify and MixedSVAR.identify use the singular for a count of one in the restriction sentence (#482).

  • PerturbationDSGE.loglikelihood and fit with filter="particle", and sample, raise SpecificationError up front when n_particles is not a positive integer (#437), and warn when it is 1.

1.0.0a8 - 2026-11-29#

Changed#

  • The engine pin moves to cultivars-engine==0.0.5. That release adds cultivars_engine.warnings, moves StabilityWarning and ExperimentalWarning into it, and lets the particle filter and smoother run with a single particle; see its changelog. cultivars.experimental imports ExperimentalWarning from its new module.

  • cultivars.multivariate.structural.heteroskedacity is renamed cultivars.multivariate.structural.heteroskedasticity (#389). The misspelled name is not kept as an alias, so an import from the old path raises ModuleNotFoundError. The user guide and example 4 use the new path.

  • cultivars.exceptions, cultivars.summary and cultivars.typing are the cultivars_engine modules themselves, bound in cultivars/__init__.py, where each was a module of this package that re-exported the engine’s names. cultivars.exceptions.SpecificationError and from cultivars import exceptions work as before and give the same objects. from cultivars.exceptions import ... and import cultivars.exceptions raise ModuleNotFoundError, and the same holds for summary and typing: import from cultivars_engine.exceptions, cultivars_engine.summary and cultivars_engine.typing. The user guide and example 3 import the exceptions from there.

  • John Bernardin joins Nikhil Sunder as maintainer and co-author. The copyright notice names both in LICENSE, in every MIT file header and in __about__.__copyright__; __author__ and __email__ list both; and pyproject.toml gains a maintainers field.

  • CITATION.cff lists John Bernardin as second author, with his ORCID, and the BibTeX entries in the README and on the documentation landing page match it. The documentation’s author, copyright line and structured data name both authors, as does the author list of the JOSS paper draft.

  • .github/CODEOWNERS assigns every path to both maintainers. The file was empty.

  • Internal clean-up with no change in behavior: ProxySVAR drops redundant np.asarray casts of its source result’s resid and sigma_u (#405, #518), and TVPVARSV.fit drops an unused # type: ignore[override] (#257).

Removed#

  • The modules cultivars/exceptions.py, cultivars/summary.py and cultivars/typing.py.

  • cultivars.multivariate.structural.heteroskedacity, renamed as above.

Fixed#

  • PerturbationDSGE.loglikelihood and fit with filter="particle", and sample, raise SpecificationError up front when n_particles is not a positive integer (#437), and warn when it is 1.

  • The # filepath: header names the file it is in for five modules where it named another (#376): bayes/__init__.py, multivariate/nonlinear/__init__.py, univariate/autoregression.py, univariate/box_jenkins.py and univariate/regime_switching.py.

  • multivariate/reduced_form/__init__.py and multivariate/regime_switching/__init__.py carry the MIT header. They had none.

  • Docs: the installation page and the landing page said that a plain pip install cultivars resolves to 0.0.4. That stable-channel republish of 1.0.0a7 was never published. The pages now name 0.0.5, the republish of this release.

  • Docs: the version menu lists a numbered release only if its pages are on the site. It listed every tag, so 1.0.0a1, 1.0.0a2, 1.0.0a5 and 0.0.1, which have no pages, were dead links, and a tag whose release failed still appeared.

1.0.0a7 - 2026-11-28#

Changed#

  • Data access is now a separate distribution, cultivars-data (import name cultivars_data), which this release pins at 0.0.1. cultivars.data is removed: from cultivars.data import economic becomes from cultivars_data import economic, and economic is the same fedfred module as before.

  • The engine pin moves to cultivars-engine==0.0.4. That release drops the engine’s unused fedfred and matplotlib requirements and corrects its docstrings and metadata; see its changelog.

  • fedfred reaches an install through cultivars-data, which also brings edgar-sec and toros. matplotlib is no longer installed with cultivars; install it to run the examples.

  • The examples fetch FRED data through cultivars_data.economic.

  • Internal clean-up with no change in behavior: VECMXResult._refuse is annotated NoReturn (#298), and unreachable branches are removed from FunctionalCoefficientVAR (#213) and from irf and fevd on SignRestrictedSVARResult (#453).

  • Docs: the installation page and the landing page describe the three distributions and the stable-channel release alongside the pre-release, and plain pip install cultivars no longer shows --pre.

Removed#

  • cultivars.data, and its page in the API reference.

Fixed#

  • cultivars.diagnostics imports its stability module and lists it in __all__ (#105).

  • ShortRunSVAR.identify and MixedSVAR.identify use the singular for a count of one in the restriction sentence: “1 coefficient estimated” and “1 cell fixed on impact”, where they said “1 coefficients” and “1 cells” (#482).

  • Docstrings name MarkovSwitchingAR where they still said MSAR, and no longer point at the nonexistent cultivars.univariate.ms_ar (#24, #100).

  • Docstrings cross-reference cultivars_engine where they named cultivars.engine, cultivars._core or cultivars._internals (#218).

  • The GVAR weak-exogeneity regression is credited to Harbo, Johansen, Nielsen and Rahbek (1998), not described as “Johansen-style” (#282).

  • Docs: the landing page and the footer link to the engine reference site. They pointed at engine pages that were removed from this site in 1.0.0a6.

  • The analyze workflow lints, type-checks and scans src/cultivars. It had pointed at src/fedfred.

0.0.3 - 2026-11-24#

Stable-channel republish of 1.0.0a6: the code is identical and only the version string differs. pip install cultivars resolves to it without --pre; pre-release installs keep resolving to 1.0.0a6. Relative to 0.0.2 it carries everything listed under 1.0.0a6 plus the one 1.0.0a5 fix that 0.0.2 did not have. The entries below are the parts an upgrade from 0.0.2 can notice; docs changes are listed under 1.0.0a6.

Changed#

  • The private engine is now a separate distribution, cultivars-engine (import name cultivars_engine), pinned at 0.0.3. The cultivars.engine subpackage is gone: imports of cultivars.engine._core or cultivars.engine._internals become cultivars_engine._core or cultivars_engine._internals. No public model, result or test was renamed. See 1.0.0a6 for the re-exported modules and the names a traceback now prints.

  • numpy, scipy, fedfred and matplotlib are no longer declared by this package and are installed through cultivars-engine.

  • ns-sdn is no longer pinned to 1.0.0a1; the stable 1.0.0 is resolved.

Fixed#

  • scipy.stats.norm is imported at module level in cultivars.multivariate.structural.stochastic_volatility (#472).

1.0.0a6 - 2026-11-24#

Changed#

  • The private engine is now a separate distribution, cultivars-engine (import name cultivars_engine), which this release pins at 0.0.3. The cultivars.engine subpackage is gone: code that reached into cultivars.engine._core or cultivars.engine._internals imports cultivars_engine._core or cultivars_engine._internals instead. No public model, result or test was renamed.

  • cultivars.exceptions, cultivars.summary and cultivars.typing keep their import paths and now re-export from the engine. The classes are the engine’s own objects, so a traceback names cultivars_engine.exceptions.SpecificationError where it used to name cultivars.exceptions.SpecificationError; except clauses written against either module are unaffected.

  • numpy, scipy, fedfred and matplotlib are no longer declared by this package and are installed through cultivars-engine.

  • ns-sdn is no longer pinned to 1.0.0a1; the stable 1.0.0 is resolved.

  • Docs: each section in the header opens a menu of its pages on hover, and the section title links to the section index.

  • Docs: the engine reference moved to the cultivars-engine site. The header links to the reference for the pinned engine release, and cross-references into the engine resolve against that release’s inventory.

Added#

  • Docs: a logo for the dark theme.

Removed#

  • The engine reference pages and their templates from this site.

Fixed#

  • Docs: generated reference pages no longer carry the full navigation tree of their section in the sidebar, which had pushed the GitHub Pages deployment past its size limit. The pages are still built and linked from their parent’s tables.

  • Doctest examples that showed a traceback or imported from cultivars.engine match the names the split package prints.

  • The Pixelmator sources under assets/source are restored; pre-commit’s whitespace hooks had rewritten them as text. assets/ is excluded from the hooks and *.pxd is marked binary.

1.0.0a5 - 2026-11-19 (YANKED)#

Added#

  • Sphinx docs documented docstrings for all objects under engine/_internals.

Fixed#

  • VECMResult.normalized_alpha raises SpecificationError for an out-of-range or zero-loading on, matching normalized_beta; both methods validate through one shared helper (#286).

  • The “declare at least one narrative event” error from NarrativeSignRestrictedSVAR names SignRestrictedSVAR instead of the pre-a2 SignSVAR (#497).

  • cultivars.multivariate.structural.sign_restrictions.__all__ lists NarrativeSignRestrictedSVAR, so star imports and the API reference see it (#452, #496).

  • ARMA validates order before unpacking it, so a wrong-length or non-integer order raises SpecificationError naming p and q instead of a bare ValueError (#81, #494).

  • scipy.stats.norm imported inside volatility_bands (#472).

  • sphinx engine reference templates.

0.0.2 - 2026-10-29#

First release on the stable channel: 1.0.0a4 plus the fixes below. pip install cultivars resolves to it without --pre; pre-release installs keep resolving to 1.0.0a4 until 1.0.0a5.

Fixed#

  • VECMResult.normalized_alpha raises SpecificationError for an out-of-range or zero-loading on, matching normalized_beta; both methods validate through one shared helper (#286).

  • The “declare at least one narrative event” error from NarrativeSignRestrictedSVAR names SignRestrictedSVAR instead of the pre-a2 SignSVAR (#497).

  • cultivars.multivariate.structural.sign_restrictions.__all__ lists NarrativeSignRestrictedSVAR, so star imports and the API reference see it (#452, #496).

  • ARMA validates order before unpacking it, so a wrong-length or non-integer order raises SpecificationError naming p and q instead of a bare ValueError (#81, #494).

1.0.0a4 - 2026-10-13#

Documentation and integration release. No public model, result or test was renamed or removed.

Added#

  • User guide: nineteen pages under docs/source/user_guide/. Foundations (architecture, conventions, choosing a model, nuances and known issues), diagnostics, three univariate pages, six multivariate pages (VAR, VAR extensions, structural identification, Bayesian VARs, large and high-dimensional systems, nonlinear and switching VARs), state space, spectral, forecasting and the Bayesian workflow. Every example runs under the Sphinx doctest builder against this release.

  • Getting started: installation, a quickstart that runs a unit-root test, ARIMA comparison and an identified VAR end to end, and a core-concepts page on the model-fit-result design.

  • cultivars.experimental: a subpackage for recent models under a looser stability contract. Importing it raises cultivars.exceptions.ExperimentalWarning once.

  • cultivars.experimental.spectral: the Non-Stationary Spectral Decomposition Network (Sunder and Leon, 2026), re-exported from the ns-sdn distribution under an NSSDN prefix (NSSDN, NSSDNResult, NSSDNStage, NSSDNPenalties, NSSDNSpectralState, the option aliases and the error hierarchy).

  • cultivars.data: the FRED client fedfred re-exported as cultivars.data.economic.

  • cultivars.exceptions.ExperimentalWarning.

  • API reference entries for cultivars.summary, cultivars.data and cultivars.experimental; intersphinx mapping for ns-sdn.

Changed#

  • ns-sdn is a runtime dependency, pinned to 1.0.0a1. It depends on torch, so an install now pulls in PyTorch; a later release will move it behind an extra.

  • The top-level package imports cultivars.experimental. Because of that, import cultivars raises ExperimentalWarning and imports torch through ns-sdn; see the note below.

Known issues#

  • The user guide’s “Nuances and known issues” page lists the defects found while verifying this release’s documentation: the Christiano-Fitzgerald endpoint weights, the moving-average block ignored by the model-implied spectral views and the shared simulate, mis-scaled HeteroskedasticSVAR variance shares, kpss verdicts outside the tabulated p-value range, and the VAR portmanteau degrees of freedom, among others. Each entry has a workaround. Fixes land in 1.0.0b1.

1.0.0a3 - 2026-10-11#

Structure and documentation release. No public model, result or test was renamed or removed; code that imports from the public leaf modules is unaffected.

Added#

  • cultivars.summary: the public home of SummaryTable and InformationCriteria, the records every summary() and information_criteria returns.

  • Example gallery: ten worked examples on live FRED data, from recursive and long-run SVARs through sign, narrative and set identification, dynamic Nelson-Siegel, Markov switching, VECM, Bayesian VARs, volatility backtests and forecast evaluation, built and executed with the docs.

  • tools dependency group (pre-commit, tox, tox-uv), included in dev.

Changed#

  • The numerical core and internal layers moved from cultivars._core and cultivars._internals to cultivars.engine._core and cultivars.engine._internals, with engine helpers renamed to private (validate_choice -> _validate_choice, …). These were never public API; code importing them must follow the move.

  • TimeVaryingSVAR references in the time_varying docstrings now name the class, TVPSVAR.

  • CI: action versions bumped (scorecard, CodeQL, gh-pages, dependency review, GPG import); prerelease publishing checks PyPI before upload.

Fixed#

  • uv run pre-commit install from a clean uv sync (#495).

  • Doctests that called renamed engine functions or used pre-move import paths.

1.0.0a2 - 2026-10-08#

Documentation release. Every public module, class, method and dataclass field now carries a Google-style docstring with a runnable, deterministic example; the examples are the doctest suite. The pass also surfaced several hundred findings, which are tracked as GitHub issues against the 1.0.0 milestone.

Added#

  • API reference generated from the docstrings, with a sphinx-gallery examples section, source links, and a version switcher that works on the published site and in a local preview (make -C docs serve).

  • README.md with installation, quick-start examples and the package layout.

  • Module docstrings for every package and subpackage, stating what each family of models commits to and where its helpers live.

  • cultivars.exceptions documents the full hierarchy with the handler patterns each class supports.

Changed#

  • Documentation builds no longer fail on warnings or on a failing gallery example; make -C docs strict (and the workflow’s strict input) restore warnings-as-errors.

  • VARResult docstring examples and cross-references now use module paths (cultivars.multivariate.reduced_form.vector_autoregression.VAR); the subpackage __init__ modules re-export modules only, not classes.

Fixed#

  • VARResult._from_fit dropped the posterior and prior_label fields when building a result from a Bayesian (Minnesota-prior) fit, so a shrinkage estimate reported as if it were OLS.

  • The exceptions module described StabilityWarning as emitted by the fitting layers; no layer emits it yet, and the docstring now says what the class is for rather than what does not happen.

  • Stale cross-references to classes that do not exist (SignSVAR, NarrativeSignSVAR, DSGESpecification) and to the old cultivars.var.* paths, across the multivariate packages.

1.0.0a1 - 2026-09-22#

First public pre-release of the rebuilt package. The 0.0.x line was a placeholder.

Added#

  • Univariate: ARIMA family, GARCH family, stochastic volatility, unobserved components, fractional integration, Markov-switching, threshold and smooth-transition models.

  • Multivariate, reduced form: VAR and VARX, VECM, VMA, mixed-frequency and panel VARs, closed global VAR, functional and Nelson-Siegel term-structure models.

  • Multivariate, large-dimensional: Minnesota and hierarchical Bayesian VARs, Gibbs samplers with shrinkage priors, Student-t and stochastic-volatility VARs, penalized and graphical VARs, dynamic factor models, FAVAR, factor stochastic volatility, Diebold-Yilmaz spillovers.

  • Multivariate, nonlinear and regime-switching: threshold, smooth-transition, functional-coefficient, quantile and time-varying-parameter VARs; Markov-switching VAR, SVAR and dynamic factor model.

  • Structural identification: recursive, long-run, AB-model and mixed zero restrictions; sign and narrative sign restrictions; exact set-identification bounds; external instruments; identification by heteroskedasticity, stochastic volatility and non-Gaussianity; FAVAR identification; perturbation-solved DSGE estimation by Kalman, extended, unscented and particle filters with particle marginal Metropolis-Hastings.

  • State space: linear-Gaussian substrate with Kalman filter, smoothers and simulation smoother; extended, unscented and particle filters; regime-switching state space.

  • Bayesian: priors, chain diagnostics, posterior checks, marginal likelihood, model combination.

  • Diagnostics: ADF, DF-GLS, KPSS, Phillips-Perron and Ng-Perron unit-root tests, cointegration, structural breaks, stability, seasonality, nonlinearity and long-memory tests.

  • Forecast: backtesting, scoring rules, calibration, fan charts, conditional forecasts, Diebold-Mariano, Clark-West and Giacomini-White comparisons, model confidence sets, combination.

  • Spectral: periodogram and spectral density, band-pass and trend-cycle filters, cycle extraction and Bry-Boschan turning points, frequency-domain causality, MODWT and wavelet coherence.

  • Typed throughout (py.typed); results are frozen dataclasses with a uniform summary() and to_pandas() / to_polars() conveniences.

Changed#

  • Requires Python 3.12 or later (PEP 695 type syntax).

  • Runtime dependencies are numpy, scipy and fedfred; pandas and polars are optional extras.

0.0.1 - 2026-05-08#

Added#

  • Initial file dump.