Class CoorAscent


  • public class CoorAscent
    extends Ranker
    Author:
    vdang This class implements the linear ranking model known as Coordinate Ascent. It was proposed in this paper: D. Metzler and W.B. Croft. Linear feature-based models for information retrieval. Information Retrieval, 10(3): 257-274, 2007.
    • Field Detail

      • nRestart

        public static int nRestart
      • nMaxIteration

        public static int nMaxIteration
      • stepBase

        public static double stepBase
      • stepScale

        public static double stepScale
      • tolerance

        public static double tolerance
      • regularized

        public static boolean regularized
      • slack

        public static double slack
      • weight

        public double[] weight
      • current_feature

        protected int current_feature
      • weight_change

        protected double weight_change
    • Constructor Detail

      • CoorAscent

        public CoorAscent()
      • CoorAscent

        public CoorAscent​(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
      • copyModel

        public void copyModel​(CoorAscent ranker)
      • distance

        public double distance​(CoorAscent ca)