Class FeatureHistogram


  • public class FeatureHistogram
    extends java.lang.Object
    Author:
    vdang
    • 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
    • Constructor Detail

      • FeatureHistogram

        public FeatureHistogram()
    • 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)
      • 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)