edu.uci.jforests.learning.trees
Class CandidateSplitsForLeaf
- java.lang.Object
-
- edu.uci.jforests.learning.trees.CandidateSplitsForLeaf
-
- Direct Known Subclasses:
- DecisionCandidateSplitsForLeaf, RegressionCandidateSplitsForLeaf
public abstract class CandidateSplitsForLeaf extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description CandidateSplitsForLeaf(int numFeatures, int numInstances)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description intgetBestFeature()intgetBestFeature(double splitFraction, java.util.Random rnd)TreeSplitgetFeatureSplit(int f)int[]getIndices()intgetLeafIndex()intgetNumInstancesInLeaf()double[]getTargets()doublegetTotalWeightedCount()double[]getWeights()voidinit(int curLeafIndex)abstract voidinit(int curLeafIndex, TreeLeafInstances treeLeafInstances, Sample trainSet)
-
-
-
Constructor Detail
-
CandidateSplitsForLeaf
public CandidateSplitsForLeaf(int numFeatures, int numInstances)
-
-
Method Detail
-
init
public abstract void init(int curLeafIndex, TreeLeafInstances treeLeafInstances, Sample trainSet)
-
getFeatureSplit
public TreeSplit getFeatureSplit(int f)
-
getBestFeature
public int getBestFeature()
-
getBestFeature
public int getBestFeature(double splitFraction, java.util.Random rnd)
-
getLeafIndex
public int getLeafIndex()
-
getNumInstancesInLeaf
public int getNumInstancesInLeaf()
-
getTotalWeightedCount
public double getTotalWeightedCount()
-
getIndices
public int[] getIndices()
-
getTargets
public double[] getTargets()
-
getWeights
public double[] getWeights()
-
init
public void init(int curLeafIndex)
-
-
DMelt 3.0 © DataMelt by jWork.ORG