alibi.exceptions module

This module defines the Alibi exception hierarchy and common exceptions used across the library.

exception alibi.exceptions.AlibiException(message)[source]

Bases: Exception, abc.ABC

Abstract base class of all alibi exceptions.

exception alibi.exceptions.AlibiPredictorCallException(message)[source]

Bases: alibi.exceptions.AlibiException

This exception is raised whenever a call to a user supplied predictor fails at runtime.

exception alibi.exceptions.AlibiPredictorReturnTypeError(message)[source]

Bases: alibi.exceptions.AlibiException

This exception is raised whenever the return type of a user supplied predictor is of an unexpected or unsupported type.