Record Class DecisionTree.Options
java.lang.Object
java.lang.Record
smile.classification.DecisionTree.Options
- Record Components:
rule- the splitting rule.maxDepth- the maximum depth of the tree.maxNodes- the maximum number of leaf nodes in the tree.nodeSize- the minimum size of leaf nodes.
- Enclosing class:
DecisionTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxDepth()Returns the value of themaxDepthrecord component.intmaxNodes()Returns the value of themaxNodesrecord component.intnodeSize()Returns the value of thenodeSizerecord component.static DecisionTree.Optionsof(Properties props) Returns the options from properties.rule()Returns the value of therulerecord component.Returns the persistent set of hyperparameters includingsmile.cart.split_rulesmile.cart.max_depthsmile.cart.max_nodessmile.cart.node_sizefinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
Constructor. -
Options
public Options()Constructor.
-
-
Method Details
-
toProperties
Returns the persistent set of hyperparameters includingsmile.cart.split_rulesmile.cart.max_depthsmile.cart.max_nodessmile.cart.node_size
- Returns:
- the persistent set.
-
of
Returns the options from properties.- Parameters:
props- the hyperparameters.- Returns:
- the options.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rule
-
maxDepth
-
maxNodes
-
nodeSize
-