alibi_detect.od.base
FittedTransformProtocol
FittedTransformProtocolInherits from: TransformProtocol, Protocol, Generic
Protocol for fitted transformer objects.
This protocol models the joint interface of the :py:obj:~alibi_detect.od.pytorch.ensemble.BaseTransformTorch class and the :py:obj:~alibi_detect.od.pytorch.ensemble.FitMixinTorch class. These objects are transforms that require to be fit.
Methods
check_fitted
check_fittedcheck_fitted()fit
fitfit(x_ref)x_ref
set_fitted
set_fittedset_fitted()TransformProtocol
TransformProtocolInherits from: Protocol, Generic
Protocol for transformer objects.
The :py:obj:~alibi_detect.od.pytorch.ensemble.BaseTransformTorch object provides abstract methods for objects that map between torch tensors. This protocol models the interface of the BaseTransformTorch class.
Constructor
TransformProtocol(self, *args, **kwargs)Methods
transform
transformtransform(x)x
Functions
get_aggregator
get_aggregatorget_aggregator(aggregator: Union[alibi_detect.od.base.TransformProtocol, Literal[TopKAggregator, AverageAggregator, MaxAggregator, MinAggregator]]) -> alibi_detect.od.base.TransformProtocolaggregator
Union[alibi_detect.od.base.TransformProtocol, Literal[TopKAggregator, AverageAggregator, MaxAggregator, MinAggregator]]
Returns
Type:
alibi_detect.od.base.TransformProtocol
get_normalizer
get_normalizerget_normalizer(normalizer: Union[alibi_detect.od.base.TransformProtocol, alibi_detect.od.base.FittedTransformProtocol, Literal[PValNormalizer, ShiftAndScaleNormalizer]]) -> alibi_detect.od.base.TransformProtocolnormalizer
Union[alibi_detect.od.base.TransformProtocol, alibi_detect.od.base.FittedTransformProtocol, Literal[PValNormalizer, ShiftAndScaleNormalizer]]
Returns
Type:
alibi_detect.od.base.TransformProtocol
Last updated
Was this helpful?

