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, setCollectionStatisticspublic JforestsModelMatching(Index _index, Matching _parent) throws Exception
Exceptionpublic JforestsModelMatching(Matching _parent) throws Exception
Exceptionpublic JforestsModelMatching(Matching _parent, String modelFilename) throws Exception
Exceptionpublic JforestsModelMatching(Index _index, Matching _parent, String modelFilename) throws Exception
Exceptionprotected void loadModel(String model_filename, Class<? extends edu.uci.jforests.learning.trees.Tree> treeClass) throws Exception
Exceptionprotected 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)
LearnedModelMatchingapplyModel in class LearnedModelMatchingN - - number of documentsin_scores - - sample scoresfeatureCount - number of featuresdoubleFeatures - indexed by feature THEN documentout_scores - - final scoresTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow