alibi.exceptions
This module defines the Alibi exception hierarchy and common exceptions used across the library.
AlibiException
AlibiException
Inherits from: Exception
, BaseException
, ABC
Abstract base class of all alibi exceptions.
Constructor
AlibiException(self, message: str) -> None
message
str
AlibiPredictorCallException
AlibiPredictorCallException
Constructor
AlibiPredictorCallException(self, /, *args, **kwargs)
AlibiPredictorReturnTypeError
AlibiPredictorReturnTypeError
Constructor
AlibiPredictorReturnTypeError(self, /, *args, **kwargs)
NotFittedError
NotFittedError
Inherits 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
PredictorCallError
Inherits from: AlibiException
, Exception
, BaseException
, ABC
, AlibiPredictorCallException
This exception is raised whenever a call to a user supplied predictor fails at runtime.
PredictorReturnTypeError
PredictorReturnTypeError
Inherits 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
SerializationError
Inherits 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?