public class AveragedStringDistanceLearner extends CombinedStringDistanceLearner
CombinedStringDistanceLearner.CombinedStringDistance, CombinedStringDistanceLearner.JthDistanceInstanceIterator, CombinedStringDistanceLearner.JthStringWrapperValueIterator, CombinedStringDistanceLearner.MyDistanceInstance, CombinedStringDistanceLearner.MyMultiDistanceInstancedelim, innerLearners| Constructor and Description |
|---|
AveragedStringDistanceLearner() |
AveragedStringDistanceLearner(StringDistanceLearner[] innerLearners,
String delim) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
comboAddExample(DistanceInstance di)
Pass a labeled example to the score-combination learner.
|
protected boolean |
comboHasNextQuery()
Poll the routine that learns to combine inner distance scores to see if it
wants to make more queries.
|
protected DistanceInstance |
comboNextQuery()
Get the next query from the score-combination learner.
|
protected void |
comboSetDistanceInstancePool(Iterator i)
Set up a pool of (possibly unlabeled) instance distances, for the learner
to make queries from.
|
protected void |
comboSetStringWrapperPool(Iterator it)
Pass an iterator over unlabeled string wrappers to the score-combination learner,
just in case that's useful.
|
StringDistance |
getDistance()
Get the final string distance, which will be based on the distances learned by the
inner learners, as well as the combination scheme learned by comboSetAnswer, comboTrain,
and etc.
|
addExample, asMultiDistanceInstance, asMultiDistanceInstanceList, asMultiStringWrapper, asMultiStringWrapperList, getInnerDistances, hasNextQuery, nextQuery, prepare, prepare, setDistanceInstancePool, setStringWrapperPoolpublic AveragedStringDistanceLearner()
public AveragedStringDistanceLearner(StringDistanceLearner[] innerLearners, String delim)
protected void comboSetStringWrapperPool(Iterator it)
CombinedStringDistanceLearnercomboSetStringWrapperPool in class CombinedStringDistanceLearnerprotected boolean comboHasNextQuery()
CombinedStringDistanceLearnercomboHasNextQuery in class CombinedStringDistanceLearnerprotected DistanceInstance comboNextQuery()
CombinedStringDistanceLearnercomboNextQuery in class CombinedStringDistanceLearnerprotected void comboAddExample(DistanceInstance di)
CombinedStringDistanceLearnercomboAddExample in class CombinedStringDistanceLearnerprotected void comboSetDistanceInstancePool(Iterator i)
CombinedStringDistanceLearnercomboSetDistanceInstancePool in class CombinedStringDistanceLearnerpublic StringDistance getDistance()
CombinedStringDistanceLearnergetDistance in interface StringDistanceLearnergetDistance in class CombinedStringDistanceLearnerCopyright © 2016. All rights reserved.