alibi.exceptions
This module defines the Alibi exception hierarchy and common exceptions used across the library.
AlibiException
AlibiExceptionInherits from: Exception, BaseException, ABC
Abstract base class of all alibi exceptions.
Constructor
AlibiException(self, message: str) -> Nonemessage
str
AlibiPredictorCallException
AlibiPredictorCallExceptionConstructor
AlibiPredictorCallException(self, /, *args, **kwargs)AlibiPredictorReturnTypeError
AlibiPredictorReturnTypeErrorConstructor
AlibiPredictorReturnTypeError(self, /, *args, **kwargs)NotFittedError
NotFittedErrorInherits from: AlibiException, Exception, BaseException, ABC
This exception is raised whenever a compulsory call to a fit method has not been carried out.
Constructor
NotFittedError(self, object_name: str)object_name
str
PredictorCallError
PredictorCallErrorInherits from: AlibiException, Exception, BaseException, ABC, AlibiPredictorCallException
This exception is raised whenever a call to a user supplied predictor fails at runtime.
PredictorReturnTypeError
PredictorReturnTypeErrorInherits from: AlibiException, Exception, BaseException, ABC, AlibiPredictorReturnTypeError
This exception is raised whenever the return type of a user supplied predictor is of an unexpected or unsupported type.
SerializationError
SerializationErrorInherits from: AlibiException, Exception, BaseException, ABC
This exception is raised whenever an explainer cannot be serialized.
Constructor
SerializationError(self, message: str)message
str
Last updated
Was this helpful?

