Class RankBoost


  • public class RankBoost
    extends Ranker
    Author:
    vdang This class implements RankBoost. Y. Freund, R. Iyer, R. Schapire, and Y. Singer. An efficient boosting algorithm for combining preferences. The Journal of Machine Learning Research, 4: 933-969, 2003.
    • Field Detail

      • nIteration

        public static int nIteration
      • nThreshold

        public static int nThreshold
      • sweight

        protected double[][][] sweight
      • potential

        protected double[][] potential
      • sortedSamples

        protected java.util.List<java.util.List<int[]>> sortedSamples
      • thresholds

        protected double[][] thresholds
      • tSortedIdx

        protected int[][] tSortedIdx
      • rWeight

        protected java.util.List<java.lang.Double> rWeight
      • bestModelRankers

        protected java.util.List<RBWeakRanker> bestModelRankers
      • bestModelWeights

        protected java.util.List<java.lang.Double> bestModelWeights
    • Constructor Detail

      • RankBoost

        public RankBoost()
      • RankBoost

        public RankBoost​(java.util.List<RankList> samples,
                         int[] features,
                         MetricScorer scorer)
    • Method Detail

      • init

        public void init()
        Description copied from class: Ranker
        HAVE TO BE OVER-RIDDEN IN SUB-CLASSES
        Specified by:
        init in class Ranker
      • learn

        public void learn()
        Specified by:
        learn in class Ranker
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Ranker
      • model

        public java.lang.String model()
        Specified by:
        model in class Ranker
      • loadFromString

        public void loadFromString​(java.lang.String fullText)
        Specified by:
        loadFromString in class Ranker
      • name

        public java.lang.String name()
        Specified by:
        name in class Ranker