public class CARTClassificationOptions extends Object implements ClassificationOptions<CARTClassificationTrainer>
Modifier and Type | Class and Description |
---|---|
static class |
CARTClassificationOptions.ImpurityType
The impurity algorithm.
|
static class |
CARTClassificationOptions.TreeType
Type of decision tree algorithm.
|
Modifier and Type | Field and Description |
---|---|
CARTClassificationOptions.ImpurityType |
cartImpurity |
int |
cartMaxDepth |
float |
cartMinChildWeight |
float |
cartMinImpurityDecrease |
boolean |
cartPrintTree |
boolean |
cartRandomSplit |
long |
cartSeed |
float |
cartSplitFraction |
CARTClassificationOptions.TreeType |
cartTreeAlgorithm |
Constructor and Description |
---|
CARTClassificationOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getOptionsDescription() |
CARTClassificationTrainer |
getTrainer()
Constructs the trainer based on the provided arguments.
|
@Option(longName="cart-max-depth", usage="Maximum depth in the decision tree.") public int cartMaxDepth
@Option(longName="cart-min-child-weight", usage="Minimum child weight.") public float cartMinChildWeight
@Option(longName="cart-min-impurity-decrease", usage="Minimum impurity decrease.") public float cartMinImpurityDecrease
@Option(longName="cart-split-fraction", usage="Fraction of features in split.") public float cartSplitFraction
@Option(longName="cart-random-split", usage="Whether to choose split points for features at random.") public boolean cartRandomSplit
@Option(longName="cart-impurity", usage="Impurity measure to use. Defaults to GINI.") public CARTClassificationOptions.ImpurityType cartImpurity
@Option(longName="cart-print-tree", usage="Prints the decision tree.") public boolean cartPrintTree
@Option(longName="cart-tree-algorithm", usage="Tree algorithm to use (options are CART).") public CARTClassificationOptions.TreeType cartTreeAlgorithm
@Option(longName="cart-seed", usage="RNG seed.") public long cartSeed
public String getOptionsDescription()
getOptionsDescription
in interface com.oracle.labs.mlrg.olcut.config.Options
public CARTClassificationTrainer getTrainer()
ClassificationOptions
getTrainer
in interface ClassificationOptions<CARTClassificationTrainer>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.