baybe.exceptionsΒΆ

Custom exceptions and warnings.

Exceptions

DeprecationError

Signals the use of a deprecated mechanism to the user, interrupting execution.

EmptySearchSpaceError

The created search space contains no parameters.

IncompatibleSearchSpaceError

A recommender is used with a search space that contains incompatible parts, e.g. a discrete recommender is used with a hybrid or continuous search space.

NoMCAcquisitionFunctionError

A Monte Carlo acquisition function is required but an analytical acquisition function has been selected by the user.

NoRecommendersLeftError

A recommender is requested by a meta recommender but there are no recommenders left.

NotEnoughPointsLeftError

More recommendations are requested than there are viable parameter configurations left in the search space.

NothingToSimulateError

There is nothing to simulate because there are no testable configurations.

NumericalUnderflowError

A computation would lead to numerical underflow.

OptionalImportError

An attempt was made to import an optional but uninstalled dependency.

UnidentifiedSubclassError

A specified subclass cannot be found in the given class hierarchy.

UnmatchedAttributeError

An attribute cannot be matched against a certain callable signature.

UnusedObjectWarning

A method or function was called with undesired arguments which indicates an unintended user fault.