| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.DecisionTree.Types
Description
Shared types, configuration and ordering machinery for the decision-tree
learner. Imported by every other DataFrame.DecisionTree.* module.
Synopsis
- data Tree a
- treeDepth :: Tree a -> Int
- data TreeConfig = TreeConfig {
- maxTreeDepth :: Int
- minSamplesSplit :: Int
- minLeafSize :: Int
- percentiles :: [Int]
- expressionPairs :: Int
- synthConfig :: SynthConfig
- taoIterations :: Int
- taoConvergenceTol :: Double
- columnOrdering :: ColumnOrdering
- useLinearSolver :: Bool
- linearSolverConfig :: SolverConfig
- minCarePointsForLinear :: Int
- pureReplacementLinear :: Bool
- data SynthConfig = SynthConfig {}
- defaultTreeConfig :: TreeConfig
- defaultSynthConfig :: SynthConfig
- newtype ColumnOrdering = ColumnOrdering (Map SomeTypeRep OrdDict)
- orderable :: (Columnable a, Ord a) => ColumnOrdering
- defaultColumnOrdering :: ColumnOrdering
- withOrdFrom :: Columnable a => ColumnOrdering -> (Ord a => r) -> Maybe r
- data CarePoint = CarePoint {
- cpIndex :: !Int
- cpCorrectDir :: !Direction
- data Direction
- ttrace :: String -> a -> a
Documentation
A fitted tree: a leaf value, or an internal node testing a boolean
expression with True routing left.
data TreeConfig Source #
Constructors
| TreeConfig | |
Fields
| |
data SynthConfig Source #
Constructors
| SynthConfig | |
Fields
| |
Instances
| Show SynthConfig Source # | |
Defined in DataFrame.DecisionTree.Types Methods showsPrec :: Int -> SynthConfig -> ShowS # show :: SynthConfig -> String # showList :: [SynthConfig] -> ShowS # | |
| Eq SynthConfig Source # | |
Defined in DataFrame.DecisionTree.Types | |
newtype ColumnOrdering Source #
Which column types support ordering for splits. Register a type with
orderable and combine with <>.
Constructors
| ColumnOrdering (Map SomeTypeRep OrdDict) |
Instances
| Monoid ColumnOrdering Source # | |
Defined in DataFrame.DecisionTree.Types Methods mappend :: ColumnOrdering -> ColumnOrdering -> ColumnOrdering # mconcat :: [ColumnOrdering] -> ColumnOrdering # | |
| Semigroup ColumnOrdering Source # | |
Defined in DataFrame.DecisionTree.Types Methods (<>) :: ColumnOrdering -> ColumnOrdering -> ColumnOrdering # sconcat :: NonEmpty ColumnOrdering -> ColumnOrdering # stimes :: Integral b => b -> ColumnOrdering -> ColumnOrdering # | |
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.
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 | |
Fields
| |