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, setCollectionStatistics
public LinearModelMatching(Index _index, Matching _parent, double[] _weights) throws Exception
Exception
public LinearModelMatching(Index _index, Matching _parent, String _modelFilename) throws Exception
Exception
protected void applyModel(int N, double[] in_scores, int F, double[][] features, double[] out_scores)
LearnedModelMatching
applyModel
in class LearnedModelMatching
N
- - number of documentsin_scores
- - sample scoresF
- number of featuresfeatures
- indexed by feature THEN documentout_scores
- - final scorespublic static double[] loadFeatureWeights(String input) throws IOException
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow