Extended API

Anomaly Detection

OutlierDetector - Isolation Forest

python
from fling import OutlierDetector

od = OutlierDetector(contamination=0.05)
is_outlier = od.detect(df)
od.visualize(df)

AnomalyDetector - Local Outlier Factor

python
from fling import AnomalyDetector

ad = AnomalyDetector()
is_anomaly = ad.detect(df)

NoveltyDetector - One-Class SVM

python
from fling import NoveltyDetector

nd = NoveltyDetector()
nd.fit(df_normal)
is_novel = nd.predict(df_new)