Package ciir.umass.edu.learning.boosting
Class RankBoost
- java.lang.Object
-
- ciir.umass.edu.learning.Ranker
-
- ciir.umass.edu.learning.boosting.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 Summary
Fields Modifier and Type Field Description protected java.util.List<RBWeakRanker>bestModelRankersprotected java.util.List<java.lang.Double>bestModelWeightsstatic intnIterationstatic intnThresholdprotected double[][]potentialprotected java.util.List<java.lang.Double>rWeightprotected java.util.List<java.util.List<int[]>>sortedSamplesprotected double[][][]sweightprotected double[][]thresholdsprotected int[][]tSortedIdxprotected java.util.List<RBWeakRanker>wRankers-
Fields inherited from class ciir.umass.edu.learning.Ranker
bestScoreOnValidationData, features, samples, scoreOnTrainingData, scorer, validationSamples, verbose
-
-
Constructor Summary
Constructors Constructor Description RankBoost()RankBoost(java.util.List<RankList> samples, int[] features, MetricScorer scorer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RankercreateNew()doubleeval(DataPoint p)voidinit()HAVE TO BE OVER-RIDDEN IN SUB-CLASSESvoidlearn()voidloadFromString(java.lang.String fullText)java.lang.Stringmodel()java.lang.Stringname()voidprintParameters()java.lang.StringtoString()-
Methods inherited from class ciir.umass.edu.learning.Ranker
copy, getFeatures, getScoreOnTrainingData, getScoreOnValidationData, PRINT, PRINT, PRINT_MEMORY_USAGE, PRINTLN, PRINTLN, PRINTTIME, rank, rank, save, setFeatures, setMetricScorer, setTrainingSet, setValidationSet
-
-
-
-
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
-
wRankers
protected java.util.List<RBWeakRanker> wRankers
-
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:RankerHAVE TO BE OVER-RIDDEN IN SUB-CLASSES
-
loadFromString
public void loadFromString(java.lang.String fullText)
- Specified by:
loadFromStringin classRanker
-
printParameters
public void printParameters()
- Specified by:
printParametersin classRanker
-
-