OutlierRemovalAdapter<T, TInput, TOutput>

Models & Types · AiDotNet.AnomalyDetection

Adapts any IAnomalyDetector to the legacy IOutlierRemoval interface.

Implements: IOutlierRemoval<T, TInput, TOutput>

For Beginners

This adapter class allows you to use any of the new anomaly detection algorithms (like Isolation Forest, Local Outlier Factor, etc.) with the existing data preprocessing pipeline that expects the older IOutlierRemoval interface.

How It Works

Usage Example:

Constructors

Constructor Summary
OutlierRemovalAdapter(IAnomalyDetector<T> detector) Creates a new adapter that wraps an anomaly detector for use with the legacy outlier removal interface.

Properties

Property Summary
IAnomalyDetector<T> Detector { get; } Gets the underlying anomaly detector.

Methods

Method Summary
ValueTuple<TInput, TOutput> RemoveOutliers(TInput inputs, TOutput outputs) Removes outliers from the input data using the configured anomaly detector.