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

DataFrame.DecisionTree.Types

Description

Shared types, configuration and ordering machinery for the decision-tree learner. Imported by every other DataFrame.DecisionTree.* module.

Synopsis

Documentation

data Tree a Source #

A fitted tree: a leaf value, or an internal node testing a boolean expression with True routing left.

Constructors

Leaf !a 
Branch !(Expr Bool) !(Tree a) !(Tree a) 

Instances

Instances details
Show a => Show (Tree a) Source # 
Instance details

Defined in DataFrame.DecisionTree.Types

Methods

showsPrec :: Int -> Tree a -> ShowS #

show :: Tree a -> String #

showList :: [Tree a] -> ShowS #

newtype ColumnOrdering Source #

Which column types support ordering for splits. Register a type with orderable and combine with <>.

Constructors

ColumnOrdering (Map SomeTypeRep OrdDict) 

orderable :: (Columnable a, Ord a) => ColumnOrdering Source #

Register a type as orderable for decision-tree splits.

defaultColumnOrdering :: ColumnOrdering Source #

All standard numeric, text, and primitive types.

withOrdFrom :: Columnable a => ColumnOrdering -> (Ord a => r) -> Maybe r Source #

Run k with the Ord a instance recovered from the ordering registry, or Nothing when a is not registered.

data CarePoint Source #

A row the parent node must route to a specific child for the subtrees to classify it correctly (the TAO objective is the count of misroutes).

Constructors

CarePoint 

Instances

Instances details
Show CarePoint Source # 
Instance details

Defined in DataFrame.DecisionTree.Types

Eq CarePoint Source # 
Instance details

Defined in DataFrame.DecisionTree.Types

data Direction Source #

Constructors

GoLeft 
GoRight 

Instances

Instances details
Show Direction Source # 
Instance details

Defined in DataFrame.DecisionTree.Types

Eq Direction Source # 
Instance details

Defined in DataFrame.DecisionTree.Types

ttrace :: String -> a -> a Source #

Emit a trace line when TAO_TRACE=1; a no-op otherwise.