For the complete documentation index, see llms.txt. This page is also available as Markdown.

alibi.exceptions

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

AlibiException

Inherits from: Exception, BaseException, ABC

Abstract base class of all alibi exceptions.

Constructor

AlibiException(self, message: str) -> None
Name
Type
Default
Description

message

str

AlibiPredictorCallException

Constructor

AlibiPredictorCallException(self, /, *args, **kwargs)

AlibiPredictorReturnTypeError

Constructor

AlibiPredictorReturnTypeError(self, /, *args, **kwargs)

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

Name
Type
Default
Description

object_name

str

PredictorCallError

Inherits from: AlibiException, Exception, BaseException, ABC, AlibiPredictorCallException

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

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

Inherits from: AlibiException, Exception, BaseException, ABC

This exception is raised whenever an explainer cannot be serialized.

Constructor

Name
Type
Default
Description

message

str

Last updated