public class JforestsModelMatching extends LearnedModelMatching
FeaturedResultSet
. Learned model files are generated by Jforests.
If you use this class, you are implicitly using the jforests library, and the applies.
Properties
increment, logger, parent, score_is_feature
Constructor and Description |
---|
JforestsModelMatching(Index _index,
Matching _parent) |
JforestsModelMatching(Index _index,
Matching _parent,
String modelFilename) |
JforestsModelMatching(Index _index,
Matching _parent,
String modelFilename,
Class<? extends edu.uci.jforests.learning.trees.Tree> treeClass) |
JforestsModelMatching(Matching _parent) |
JforestsModelMatching(Matching _parent,
String modelFilename) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyModel(int N,
double[] in_scores,
int featureCount,
double[][] doubleFeatures,
double[] out_scores)
Apply the loaded learned model for identifying the top N documents.
|
protected void |
loadModel(String model_filename) |
protected void |
loadModel(String model_filename,
Class<? extends edu.uci.jforests.learning.trees.Tree> treeClass) |
protected edu.uci.jforests.dataset.RankingDataset |
makeDataset(int N,
int featureCount,
double[][] doubleFeatures) |
getInfo, match, setCollectionStatistics
public JforestsModelMatching(Index _index, Matching _parent) throws Exception
Exception
public JforestsModelMatching(Matching _parent) throws Exception
Exception
public JforestsModelMatching(Matching _parent, String modelFilename) throws Exception
Exception
public JforestsModelMatching(Index _index, Matching _parent, String modelFilename) throws Exception
Exception
protected void loadModel(String model_filename, Class<? extends edu.uci.jforests.learning.trees.Tree> treeClass) throws Exception
Exception
protected edu.uci.jforests.dataset.RankingDataset makeDataset(int N, int featureCount, double[][] doubleFeatures)
protected void applyModel(int N, double[] in_scores, int featureCount, double[][] doubleFeatures, double[] out_scores)
LearnedModelMatching
applyModel
in class LearnedModelMatching
N
- - number of documentsin_scores
- - sample scoresfeatureCount
- number of featuresdoubleFeatures
- indexed by feature THEN documentout_scores
- - final scoresTerrier 4.0. Copyright © 2004-2014 University of Glasgow