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 namecultivars_data), pinned at0.0.1.cultivars.datais gone:from cultivars.data import economicbecomesfrom cultivars_data import economic.The engine pin moves from
cultivars-engine==0.0.3to0.0.5. The engine now has a warning hierarchy,cultivars_engine.warnings, which holdsStabilityWarningandExperimentalWarning; neither is importable fromcultivars_engine.exceptionsany longer. Its particle filter and smoother accept a single particle. See the engine changelog for 0.0.4 and 0.0.5.fedfredis installed throughcultivars-data, which also bringsedgar-secandtoros.matplotlibis no longer installed with cultivars; install it to run the examples.cultivars.multivariate.structural.heteroskedacityis renamedcultivars.multivariate.structural.heteroskedasticity(#389). The misspelled name is not kept as an alias.cultivars.exceptions,cultivars.summaryandcultivars.typingare thecultivars_enginemodules themselves, bound incultivars/__init__.py.cultivars.exceptions.SpecificationErrorandfrom cultivars import exceptionswork as before.from cultivars.exceptions import ...raisesModuleNotFoundError, and the same holds forsummaryandtyping: import fromcultivars_engine.exceptions,cultivars_engine.summaryandcultivars_engine.typing.John Bernardin joins Nikhil Sunder as maintainer and co-author. The copyright notice, the package metadata and
CITATION.cffname both.
Removed#
cultivars.data.The modules
cultivars/exceptions.py,cultivars/summary.pyandcultivars/typing.py.cultivars.multivariate.structural.heteroskedacity, renamed as above.
Fixed#
cultivars.diagnosticsimports itsstabilitymodule and lists it in__all__(#105).ShortRunSVAR.identifyandMixedSVAR.identifyuse the singular for a count of one in the restriction sentence (#482).PerturbationDSGE.loglikelihoodandfitwithfilter="particle", andsample, raiseSpecificationErrorup front whenn_particlesis 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 addscultivars_engine.warnings, movesStabilityWarningandExperimentalWarninginto it, and lets the particle filter and smoother run with a single particle; see its changelog.cultivars.experimentalimportsExperimentalWarningfrom its new module.cultivars.multivariate.structural.heteroskedacityis renamedcultivars.multivariate.structural.heteroskedasticity(#389). The misspelled name is not kept as an alias, so an import from the old path raisesModuleNotFoundError. The user guide and example 4 use the new path.cultivars.exceptions,cultivars.summaryandcultivars.typingare thecultivars_enginemodules themselves, bound incultivars/__init__.py, where each was a module of this package that re-exported the engine’s names.cultivars.exceptions.SpecificationErrorandfrom cultivars import exceptionswork as before and give the same objects.from cultivars.exceptions import ...andimport cultivars.exceptionsraiseModuleNotFoundError, and the same holds forsummaryandtyping: import fromcultivars_engine.exceptions,cultivars_engine.summaryandcultivars_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; andpyproject.tomlgains amaintainersfield.CITATION.cfflists 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/CODEOWNERSassigns every path to both maintainers. The file was empty.Internal clean-up with no change in behavior:
ProxySVARdrops redundantnp.asarraycasts of its source result’sresidandsigma_u(#405, #518), andTVPVARSV.fitdrops an unused# type: ignore[override](#257).
Removed#
The modules
cultivars/exceptions.py,cultivars/summary.pyandcultivars/typing.py.cultivars.multivariate.structural.heteroskedacity, renamed as above.
Fixed#
PerturbationDSGE.loglikelihoodandfitwithfilter="particle", andsample, raiseSpecificationErrorup front whenn_particlesis 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.pyandunivariate/regime_switching.py.multivariate/reduced_form/__init__.pyandmultivariate/regime_switching/__init__.pycarry the MIT header. They had none.Docs: the installation page and the landing page said that a plain
pip install cultivarsresolves 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 namecultivars_data), which this release pins at0.0.1.cultivars.datais removed:from cultivars.data import economicbecomesfrom cultivars_data import economic, andeconomicis the samefedfredmodule as before.The engine pin moves to
cultivars-engine==0.0.4. That release drops the engine’s unusedfedfredandmatplotlibrequirements and corrects its docstrings and metadata; see its changelog.fedfredreaches an install throughcultivars-data, which also bringsedgar-secandtoros.matplotlibis 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._refuseis annotatedNoReturn(#298), and unreachable branches are removed fromFunctionalCoefficientVAR(#213) and fromirfandfevdonSignRestrictedSVARResult(#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 cultivarsno longer shows--pre.
Removed#
cultivars.data, and its page in the API reference.
Fixed#
cultivars.diagnosticsimports itsstabilitymodule and lists it in__all__(#105).ShortRunSVAR.identifyandMixedSVAR.identifyuse 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
MarkovSwitchingARwhere they still saidMSAR, and no longer point at the nonexistentcultivars.univariate.ms_ar(#24, #100).Docstrings cross-reference
cultivars_enginewhere they namedcultivars.engine,cultivars._coreorcultivars._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
analyzeworkflow lints, type-checks and scanssrc/cultivars. It had pointed atsrc/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 namecultivars_engine), pinned at0.0.3. Thecultivars.enginesubpackage is gone: imports ofcultivars.engine._coreorcultivars.engine._internalsbecomecultivars_engine._coreorcultivars_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,fedfredandmatplotlibare no longer declared by this package and are installed throughcultivars-engine.ns-sdnis no longer pinned to1.0.0a1; the stable1.0.0is resolved.
Fixed#
scipy.stats.normis imported at module level incultivars.multivariate.structural.stochastic_volatility(#472).
1.0.0a6 - 2026-11-24#
Changed#
The private engine is now a separate distribution,
cultivars-engine(import namecultivars_engine), which this release pins at0.0.3. Thecultivars.enginesubpackage is gone: code that reached intocultivars.engine._coreorcultivars.engine._internalsimportscultivars_engine._coreorcultivars_engine._internalsinstead. No public model, result or test was renamed.cultivars.exceptions,cultivars.summaryandcultivars.typingkeep their import paths and now re-export from the engine. The classes are the engine’s own objects, so a traceback namescultivars_engine.exceptions.SpecificationErrorwhere it used to namecultivars.exceptions.SpecificationError;exceptclauses written against either module are unaffected.numpy,scipy,fedfredandmatplotlibare no longer declared by this package and are installed throughcultivars-engine.ns-sdnis no longer pinned to1.0.0a1; the stable1.0.0is 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-enginesite. 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.enginematch the names the split package prints.The Pixelmator sources under
assets/sourceare restored; pre-commit’s whitespace hooks had rewritten them as text.assets/is excluded from the hooks and*.pxdis marked binary.
1.0.0a5 - 2026-11-19 (YANKED)#
Added#
Sphinx docs documented docstrings for all objects under engine/_internals.
Fixed#
VECMResult.normalized_alpharaisesSpecificationErrorfor an out-of-range or zero-loadingon, matchingnormalized_beta; both methods validate through one shared helper (#286).The “declare at least one narrative event” error from
NarrativeSignRestrictedSVARnamesSignRestrictedSVARinstead of the pre-a2SignSVAR(#497).cultivars.multivariate.structural.sign_restrictions.__all__listsNarrativeSignRestrictedSVAR, so star imports and the API reference see it (#452, #496).ARMAvalidatesorderbefore unpacking it, so a wrong-length or non-integer order raisesSpecificationErrornamingpandqinstead of a bareValueError(#81, #494).scipy.stats.normimported 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_alpharaisesSpecificationErrorfor an out-of-range or zero-loadingon, matchingnormalized_beta; both methods validate through one shared helper (#286).The “declare at least one narrative event” error from
NarrativeSignRestrictedSVARnamesSignRestrictedSVARinstead of the pre-a2SignSVAR(#497).cultivars.multivariate.structural.sign_restrictions.__all__listsNarrativeSignRestrictedSVAR, so star imports and the API reference see it (#452, #496).ARMAvalidatesorderbefore unpacking it, so a wrong-length or non-integer order raisesSpecificationErrornamingpandqinstead of a bareValueError(#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 raisescultivars.exceptions.ExperimentalWarningonce.cultivars.experimental.spectral: the Non-Stationary Spectral Decomposition Network (Sunder and Leon, 2026), re-exported from thens-sdndistribution under anNSSDNprefix (NSSDN,NSSDNResult,NSSDNStage,NSSDNPenalties,NSSDNSpectralState, the option aliases and the error hierarchy).cultivars.data: the FRED clientfedfredre-exported ascultivars.data.economic.cultivars.exceptions.ExperimentalWarning.API reference entries for
cultivars.summary,cultivars.dataandcultivars.experimental; intersphinx mapping forns-sdn.
Changed#
ns-sdnis a runtime dependency, pinned to1.0.0a1. It depends ontorch, 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 cultivarsraisesExperimentalWarningand importstorchthroughns-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-scaledHeteroskedasticSVARvariance shares,kpssverdicts outside the tabulated p-value range, and the VAR portmanteau degrees of freedom, among others. Each entry has a workaround. Fixes land in1.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 ofSummaryTableandInformationCriteria, the records everysummary()andinformation_criteriareturns.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.
toolsdependency group (pre-commit,tox,tox-uv), included indev.
Changed#
The numerical core and internal layers moved from
cultivars._coreandcultivars._internalstocultivars.engine._coreandcultivars.engine._internals, with engine helpers renamed to private (validate_choice->_validate_choice, …). These were never public API; code importing them must follow the move.TimeVaryingSVARreferences in thetime_varyingdocstrings 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 installfrom a cleanuv 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.mdwith 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.exceptionsdocuments 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’sstrictinput) restore warnings-as-errors.VARResultdocstring 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_fitdropped theposteriorandprior_labelfields when building a result from a Bayesian (Minnesota-prior) fit, so a shrinkage estimate reported as if it were OLS.The
exceptionsmodule describedStabilityWarningas 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 oldcultivars.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 uniformsummary()andto_pandas()/to_polars()conveniences.
Changed#
Requires Python 3.12 or later (PEP 695 type syntax).
Runtime dependencies are
numpy,scipyandfedfred;pandasandpolarsare optional extras.
0.0.1 - 2026-05-08#
Added#
Initial file dump.