|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.CombinedStringDistanceLearner com.wcohen.ss.AveragedStringDistanceLearner
public class AveragedStringDistanceLearner
Abstract StringDistanceLearner class which averages results of a number of inner distance metrics, learned by a number of inner distance learners.
Nested Class Summary |
---|
Field Summary |
---|
Fields inherited from class com.wcohen.ss.CombinedStringDistanceLearner |
---|
delim, innerLearners |
Constructor Summary | |
---|---|
AveragedStringDistanceLearner()
|
|
AveragedStringDistanceLearner(StringDistanceLearner[] innerLearners,
java.lang.String delim)
|
Method Summary | |
---|---|
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(java.util.Iterator i)
Set up a pool of (possibly unlabeled) instance distances, for the learner to make queries from. |
protected void |
comboSetStringWrapperPool(java.util.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. |
Methods inherited from class com.wcohen.ss.CombinedStringDistanceLearner |
---|
addExample, asMultiDistanceInstance, asMultiDistanceInstanceList, asMultiStringWrapper, asMultiStringWrapperList, getInnerDistances, hasNextQuery, nextQuery, prepare, prepare, setDistanceInstancePool, setStringWrapperPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AveragedStringDistanceLearner()
public AveragedStringDistanceLearner(StringDistanceLearner[] innerLearners, java.lang.String delim)
Method Detail |
---|
protected void comboSetStringWrapperPool(java.util.Iterator it)
CombinedStringDistanceLearner
comboSetStringWrapperPool
in class CombinedStringDistanceLearner
protected boolean comboHasNextQuery()
CombinedStringDistanceLearner
comboHasNextQuery
in class CombinedStringDistanceLearner
protected DistanceInstance comboNextQuery()
CombinedStringDistanceLearner
comboNextQuery
in class CombinedStringDistanceLearner
protected void comboAddExample(DistanceInstance di)
CombinedStringDistanceLearner
comboAddExample
in class CombinedStringDistanceLearner
protected void comboSetDistanceInstancePool(java.util.Iterator i)
CombinedStringDistanceLearner
comboSetDistanceInstancePool
in class CombinedStringDistanceLearner
public StringDistance getDistance()
CombinedStringDistanceLearner
getDistance
in interface StringDistanceLearner
getDistance
in class CombinedStringDistanceLearner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |