dataframe-learn-2.4.1.0: Interpretable, expression-returning machine learning for the dataframe ecosystem.
Safe HaskellNone
LanguageHaskell2010

DataFrame.DBSCAN

Description

Density-based clustering (DBSCAN). Brute-force O(n²) region queries, no spatial index — suitable for the in-memory scales this library targets. DBSCAN is transductive: it has a Fit instance but deliberately no Predict instance (there is no honest single prediction expression). dbscanSurrogateExpr fits an interpretable decision-tree surrogate on the cluster labels instead.

Synopsis

Documentation

data DBSCANConfig Source #

Constructors

DBSCANConfig 

Fields

Instances

Instances details
Show DBSCANConfig Source # 
Instance details

Defined in DataFrame.DBSCAN

Eq DBSCANConfig Source # 
Instance details

Defined in DataFrame.DBSCAN

Fit DBSCANConfig [Expr Double] Source # 
Instance details

Defined in DataFrame.DBSCAN

Associated Types

type ModelOf DBSCANConfig [Expr Double] 
Instance details

Defined in DataFrame.DBSCAN

type FrameReq DBSCANConfig [Expr Double] 
Instance details

Defined in DataFrame.DBSCAN

type FrameReq DBSCANConfig [Expr Double] Source # 
Instance details

Defined in DataFrame.DBSCAN

type ModelOf DBSCANConfig [Expr Double] Source # 
Instance details

Defined in DataFrame.DBSCAN

data DBSCANModel Source #

A fitted DBSCAN labelling. dbLabels uses -1 for noise (sklearn's labels_); dbCoreSampleIndices are the core points.

Constructors

DBSCANModel 

Instances

Instances details
Show DBSCANModel Source # 
Instance details

Defined in DataFrame.DBSCAN

Eq DBSCANModel Source # 
Instance details

Defined in DataFrame.DBSCAN

dbscanSurrogateExpr :: TreeConfig -> [Expr Double] -> DBSCANModel -> DataFrame -> Expr Int Source #

Fit a decision-tree surrogate on the DBSCAN labels so new rows can be assigned an (approximate) cluster. Noise (-1) is its own class.