detectors.aggregations package
Submodules
detectors.aggregations.anomaly module
- class detectors.aggregations.anomaly.AnomalyBaseAggregation(method_class, **kwargs)[source]
Bases:
object
- class detectors.aggregations.anomaly.IFAggregation(n_estimators=100, **kwargs)[source]
Bases:
AnomalyBaseAggregation
- class detectors.aggregations.anomaly.LOFAggregation(n_neighbors: int = 20, p=2, **kwargs)[source]
Bases:
AnomalyBaseAggregation
detectors.aggregations.basics module
- detectors.aggregations.basics.avg_topk_aggregation(x: Tensor, k: int, *args, **kwargs) Tensor[source]
detectors.aggregations.cosine module
detectors.aggregations.innerprod module
detectors.aggregations.mahalanobis module
- class detectors.aggregations.mahalanobis.MahalanobisAggregation(*args, **kwargs)[source]
Bases:
object
- detectors.aggregations.mahalanobis.mahalanobis_distance_inv_fast(x: Tensor, y: Tensor, precision: Tensor)[source]
Mahalanobis distance betwee x and y with an accelerated implementation.
- Parameters:
x (Tensor) – first point.
y (Tensor) – second point.
precision (Tensor) – inverse of the covariance matrix.
detectors.aggregations.quantile module
detectors.aggregations.supervised module
Module contents
- class detectors.aggregations.Aggregation(aggregation_method, *args, **kwargs)[source]
Bases:
objectAggregation wrapper class.
- detectors.aggregations.create_aggregation(aggregation_name: str, **kwargs) Aggregation[source]