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

DataFrame.Metrics.Report

Description

Bundled, pretty-printing evaluation summaries: a labelled confusion matrix and scikit-learn-style regression / classification reports. The *Expr variants take a model's prediction expression and a truth column directly, so a full report is a one-liner after fitting.

Synopsis

Documentation

data ConfusionMatrix Source #

A labelled confusion matrix: class order plus row-major actual×predicted.

Constructors

ConfusionMatrix 

Fields

confusionMatrix :: Vector Double -> Vector Double -> ConfusionMatrix Source #

Confusion matrix over the class set of truth ∪ preds.

confusionMatrixExpr :: Expr Double -> Expr Double -> DataFrame -> ConfusionMatrix Source #

Confusion matrix from a prediction expression and a truth column.

data RegressionReport Source #

Regression metrics bundle.

Constructors

RegressionReport 

Fields

regressionReport :: Vector Double -> Vector Double -> RegressionReport Source #

Regression report from prediction/truth vectors.

regressionReportExpr :: Expr Double -> Expr Double -> DataFrame -> RegressionReport Source #

Regression report from a prediction expression and a truth column.

data ClassStats Source #

Per-class precisionrecallF1/support.

Constructors

ClassStats 

Instances

Instances details
Show ClassStats Source # 
Instance details

Defined in DataFrame.Metrics.Report

Eq ClassStats Source # 
Instance details

Defined in DataFrame.Metrics.Report

data ClassificationReport Source #

A scikit-learn-style classification report: per-class stats plus accuracy and macro/weighted F1.

classificationReport :: Vector Double -> Vector Double -> ClassificationReport Source #

Classification report from prediction/truth vectors.

classificationReportExpr :: Expr Double -> Expr Double -> DataFrame -> ClassificationReport Source #

Classification report from a prediction expression and a truth column.