Package ciir.umass.edu.learning.tree
Class FeatureHistogram
- java.lang.Object
-
- ciir.umass.edu.learning.tree.FeatureHistogram
-
public class FeatureHistogram extends java.lang.Object- Author:
- vdang
-
-
Field Summary
Fields Modifier and Type Field Description int[][]countint[]featuresint[][]sampleToThresholdMapstatic floatsamplingRatedoublesqSumResponsedouble[][]sumdoublesumResponsefloat[][]thresholds
-
Constructor Summary
Constructors Constructor Description FeatureHistogram()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconstruct(DataPoint[] samples, double[] labels, int[][] sampleSortedIdx, float[][] thresholds, int start, int end)voidconstruct(DataPoint[] samples, double[] labels, int[][] sampleSortedIdx, int[] features, float[][] thresholds)voidconstruct(FeatureHistogram parent, int[] soi, double[] labels)protected voidconstruct(FeatureHistogram parent, int[] soi, double[] labels, int start, int end)voidconstruct(FeatureHistogram parent, FeatureHistogram leftSibling, boolean reuseParent)protected voidconstruct(FeatureHistogram parent, FeatureHistogram leftSibling, int start, int end)protected ciir.umass.edu.learning.tree.FeatureHistogram.ConfigfindBestSplit(int[] usedFeatures, int minLeafSupport, int start, int end)booleanfindBestSplit(Split sp, double[] labels, int minLeafSupport)protected voidupdate(double[] labels)protected voidupdate(double[] labels, int start, int end)
-
-
-
Field Detail
-
samplingRate
public static float samplingRate
-
features
public int[] features
-
thresholds
public float[][] thresholds
-
sum
public double[][] sum
-
sumResponse
public double sumResponse
-
sqSumResponse
public double sqSumResponse
-
count
public int[][] count
-
sampleToThresholdMap
public int[][] sampleToThresholdMap
-
-
Method Detail
-
construct
public void construct(DataPoint[] samples, double[] labels, int[][] sampleSortedIdx, int[] features, float[][] thresholds)
-
construct
protected void construct(DataPoint[] samples, double[] labels, int[][] sampleSortedIdx, float[][] thresholds, int start, int end)
-
update
protected void update(double[] labels)
-
update
protected void update(double[] labels, int start, int end)
-
construct
public void construct(FeatureHistogram parent, int[] soi, double[] labels)
-
construct
protected void construct(FeatureHistogram parent, int[] soi, double[] labels, int start, int end)
-
construct
public void construct(FeatureHistogram parent, FeatureHistogram leftSibling, boolean reuseParent)
-
construct
protected void construct(FeatureHistogram parent, FeatureHistogram leftSibling, int start, int end)
-
findBestSplit
protected ciir.umass.edu.learning.tree.FeatureHistogram.Config findBestSplit(int[] usedFeatures, int minLeafSupport, int start, int end)
-
findBestSplit
public boolean findBestSplit(Split sp, double[] labels, int minLeafSupport)
-
-