pymc_forecast.exceptions#

Exception taxonomy for pymc_forecast.

Every package-raised error derives from PymcForecastError, so callers can catch the whole family with one clause. Specific subclasses exist where a caller might plausibly branch on the failure mode.

exception pymc_forecast.exceptions.AlignmentError[source]#

Bases: PymcForecastError, ValueError

Data and covariates do not align along the time dimension.

exception pymc_forecast.exceptions.BacktestWindowError[source]#

Bases: PymcForecastError, ValueError

Backtest windowing parameters admit no valid windows.

exception pymc_forecast.exceptions.HorizonError[source]#

Bases: PymcForecastError, ValueError

The train/forecast horizon could not be derived or is inconsistent.

exception pymc_forecast.exceptions.MethodResolutionError[source]#

Bases: PymcForecastError, ValueError

A VI-method, optimizer, or sampler specification could not be resolved.

exception pymc_forecast.exceptions.NotFittedError[source]#

Bases: PymcForecastError, RuntimeError

A predictive method was called on a forecaster that has not been fit.

exception pymc_forecast.exceptions.OptionalDependencyError(package, extra, feature)[source]#

Bases: PymcForecastError, ImportError

An optional dependency is required for the requested feature.

exception pymc_forecast.exceptions.PymcForecastError[source]#

Bases: Exception

Base class for all pymc_forecast errors.