alibi_detect.base module

class alibi_detect.base.BaseDetector[source]

Bases: abc.ABC

Base class for outlier detection algorithms.

property meta
Return type

Dict

abstract predict(X)[source]
abstract score(X)[source]
class alibi_detect.base.FitMixin[source]

Bases: abc.ABC

abstract fit(X)[source]
Return type

None

class alibi_detect.base.NumpyEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]

Bases: json.encoder.JSONEncoder

default(obj)[source]

Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

For example, to support arbitrary iterators, you could implement default like this:

def default(self, o):
    try:
        iterable = iter(o)
    except TypeError:
        pass
    else:
        return list(iterable)
    # Let the base class default method raise the TypeError
    return JSONEncoder.default(self, o)
class alibi_detect.base.ThresholdMixin[source]

Bases: abc.ABC

abstract infer_threshold(X)[source]
Return type

None

alibi_detect.base.adversarial_correction_dict()[source]
alibi_detect.base.adversarial_prediction_dict()[source]
alibi_detect.base.concept_drift_dict()[source]
alibi_detect.base.outlier_prediction_dict()[source]