alibi_detect.exceptions module

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

exception alibi_detect.exceptions.AlibiDetectException(message)[source]

Bases: Exception, ABC

__init__(message)[source]

Abstract base class of all alibi detect errors.

Parameters:

message (str) – The error message.

exception alibi_detect.exceptions.NotFittedError(object_name)[source]

Bases: AlibiDetectException

__init__(object_name)[source]

Exception raised when a transform is not fitted.

Parameters:

object_name (str) – The name of the unfit object.

exception alibi_detect.exceptions.ThresholdNotInferredError(object_name)[source]

Bases: AlibiDetectException

__init__(object_name)[source]

Exception raised when a threshold not inferred for an outlier detector.

Parameters:

object_name (str) – The name of the object that does not have a threshold fit.