alibi_detect.od.base module

class alibi_detect.od.base.FittedTransformProtocol(*args, **kwargs)[source]

Bases: TransformProtocol, Protocol

Protocol for fitted transformer objects.

This protocol models the joint interface of the BaseTransformTorch class and the FitMixinTorch class. These objects are transforms that require to be fit.

check_fitted()[source]
fit(x_ref)[source]
set_fitted()[source]
class alibi_detect.od.base.TransformProtocol(*args, **kwargs)[source]

Bases: Protocol

Protocol for transformer objects.

The BaseTransformTorch object provides abstract methods for objects that map between torch tensors. This protocol models the interface of the BaseTransformTorch class.

transform(x)[source]
alibi_detect.od.base.get_aggregator(aggregator)[source]
Return type:

TransformProtocol

alibi_detect.od.base.get_normalizer(normalizer)[source]
Return type:

TransformProtocol