| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.DecisionTree
Description
Synopsis
- module DataFrame.DecisionTree.Model
- 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
- defaultTreeConfig :: TreeConfig
- data SynthConfig = SynthConfig {}
- 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 RegTreeConfig = RegTreeConfig {
- rtMaxDepth :: !Int
- rtMinSamplesSplit :: !Int
- rtMinLeafSize :: !Int
- rtMinImpurityDecrease :: !Double
- defaultRegTreeConfig :: RegTreeConfig
- data Tree a
- treeDepth :: Tree a -> Int
- data SolverConfig = SolverConfig {
- scL1Lambda :: !Double
- scL2Lambda :: !Double
- scMaxIter :: !Int
- scTol :: !Double
- scSampleWeights :: !(Maybe (Vector Double))
- defaultSolverConfig :: SolverConfig
Estimators
Fitted-model records with their Fit/Predict instances and the
estimator classes (via DataFrame.Model).
module DataFrame.DecisionTree.Model
Classifier configuration
data TreeConfig #
Constructors
| TreeConfig | |
Fields
| |
Instances
| (Columnable a, Ord a) => Fit TreeConfig (Expr a) Source # | |||||||||
Defined in DataFrame.DecisionTree.Model Associated Types
| |||||||||
| type FrameReq TreeConfig (Expr a) Source # | |||||||||
Defined in DataFrame.DecisionTree.Model | |||||||||
| type ModelOf TreeConfig (Expr a) Source # | |||||||||
Defined in DataFrame.DecisionTree.Model | |||||||||
data SynthConfig #
Constructors
| SynthConfig | |
Fields
| |
Instances
| Show SynthConfig | |
Defined in DataFrame.DecisionTree.Types Methods showsPrec :: Int -> SynthConfig -> ShowS # show :: SynthConfig -> String # showList :: [SynthConfig] -> ShowS # | |
| Eq SynthConfig | |
Defined in DataFrame.DecisionTree.Types | |
newtype ColumnOrdering #
Which column types support ordering for splits. Register a type with
orderable and combine with <>.
Constructors
| ColumnOrdering (Map SomeTypeRep OrdDict) |
Instances
| Monoid ColumnOrdering | |
Defined in DataFrame.DecisionTree.Types Methods mappend :: ColumnOrdering -> ColumnOrdering -> ColumnOrdering # mconcat :: [ColumnOrdering] -> ColumnOrdering # | |
| Semigroup ColumnOrdering | |
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 #
Register a type as orderable for decision-tree splits.
defaultColumnOrdering :: ColumnOrdering #
All standard numeric, text, and primitive types.
withOrdFrom :: Columnable a => ColumnOrdering -> (Ord a => r) -> Maybe r #
Run k with the Ord a instance recovered from the ordering registry,
or Nothing when a is not registered.
Regressor configuration
data RegTreeConfig Source #
Stopping criteria for the regression tree.
Constructors
| RegTreeConfig | |
Fields
| |
Instances
| Show RegTreeConfig Source # | |||||||||
Defined in DataFrame.DecisionTree.Regression Methods showsPrec :: Int -> RegTreeConfig -> ShowS # show :: RegTreeConfig -> String # showList :: [RegTreeConfig] -> ShowS # | |||||||||
| Eq RegTreeConfig Source # | |||||||||
Defined in DataFrame.DecisionTree.Regression Methods (==) :: RegTreeConfig -> RegTreeConfig -> Bool # (/=) :: RegTreeConfig -> RegTreeConfig -> Bool # | |||||||||
| Fit RegTreeConfig (Expr Double) Source # | |||||||||
Defined in DataFrame.DecisionTree.Model Associated Types
| |||||||||
| type FrameReq RegTreeConfig (Expr Double) Source # | |||||||||
Defined in DataFrame.DecisionTree.Model | |||||||||
| type ModelOf RegTreeConfig (Expr Double) Source # | |||||||||
Defined in DataFrame.DecisionTree.Model | |||||||||
Fitted tree structure
A fitted tree: a leaf value, or an internal node testing a boolean
expression with True routing left.
Solver configuration (fills TreeConfig.linearSolverConfig)
data SolverConfig #
Hyper-parameters for the FISTA solver.
Constructors
| SolverConfig | |
Fields
| |
Instances
| Show SolverConfig | |
Defined in DataFrame.LinearSolver Methods showsPrec :: Int -> SolverConfig -> ShowS # show :: SolverConfig -> String # showList :: [SolverConfig] -> ShowS # | |
| Eq SolverConfig | |
Defined in DataFrame.LinearSolver | |