public class ClassifierTrainingNode extends AbstractTrainingNode<Label>
DEFAULT_SIZE, depth, greaterThan, lessThanOrEqual, numExamples, split, splitID, splitValue
Constructor and Description |
---|
ClassifierTrainingNode(LabelImpurity impurity,
Dataset<Label> examples)
Constructor which creates the inverted file.
|
Modifier and Type | Method and Description |
---|---|
List<AbstractTrainingNode<Label>> |
buildTree(int[] featureIDs)
Builds a tree according to CART (as it does not do multi-way splits on categorical values like C4.5).
|
Node<Label> |
convertTree()
|
double |
getImpurity()
The impurity score of this node.
|
copy, getDepth, getNextNode, getNumExamples, isLeaf
public ClassifierTrainingNode(LabelImpurity impurity, Dataset<Label> examples)
impurity
- The impurity function to use.examples
- The training data.public List<AbstractTrainingNode<Label>> buildTree(int[] featureIDs)
buildTree
in class AbstractTrainingNode<Label>
featureIDs
- Indices of the features available in this split.public Node<Label> convertTree()
convertTree
in class AbstractTrainingNode<Label>
public double getImpurity()
Node
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.