public class LinearModelMatching extends LearnedModelMatching
FeaturedResultSet. 
 Learned model files take the format featureid:weightincrement, logger, parent, score_is_feature| Constructor and Description | 
|---|
| LinearModelMatching(Index _index,
                   Matching _parent) | 
| LinearModelMatching(Index _index,
                   Matching _parent,
                   double[] _weights) | 
| LinearModelMatching(Index _index,
                   Matching _parent,
                   String _modelFilename) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | applyModel(int N,
          double[] in_scores,
          int F,
          double[][] features,
          double[] out_scores)Apply the loaded learned model for identifying the top N documents. | 
| static double[] | loadFeatureWeights(String input) | 
getInfo, match, setCollectionStatisticspublic LinearModelMatching(Index _index, Matching _parent, double[] _weights) throws Exception
Exceptionpublic LinearModelMatching(Index _index, Matching _parent, String _modelFilename) throws Exception
Exceptionprotected void applyModel(int N,
              double[] in_scores,
              int F,
              double[][] features,
              double[] out_scores)
LearnedModelMatchingapplyModel in class LearnedModelMatchingN - - number of documentsin_scores - - sample scoresF - number of featuresfeatures - indexed by feature THEN documentout_scores - - final scorespublic static double[] loadFeatureWeights(String input) throws IOException
IOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow