public class CARTClassificationOptions extends Object implements ClassificationOptions<CARTClassificationTrainer>
Modifier and Type | Class and Description |
---|---|
static class |
CARTClassificationOptions.ImpurityType |
static class |
CARTClassificationOptions.TreeType |
Modifier and Type | Field and Description |
---|---|
CARTClassificationOptions.ImpurityType |
cartImpurity |
int |
cartMaxDepth |
float |
cartMinChildWeight |
boolean |
cartPrintTree |
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-split-fraction", usage="Fraction of features in split.") public float cartSplitFraction
@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.