Skip to content

markowitz.estimators.exceptions

markowitz.estimators.exceptions

Exception hierarchy for the estimators subpackage.

AmbiguousFrequencyError

Bases: EstimatorError

Raised when annualization is requested but periods-per-year is undetermined.

DimensionMismatchError

Bases: EstimatorError

Raised when input arrays have incompatible shapes.

EstimatorConfigError

Bases: EstimatorError

Raised when an estimator is constructed with an invalid configuration.

EstimatorError

Bases: Exception

Base class for all estimator-related errors.

NotFittedError

Bases: EstimatorError

Raised when accessing fitted attributes before calling .fit.