|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wcohen.ss.CombinedStringDistanceLearner
com.wcohen.ss.AdaptiveStringDistanceLearner
public class AdaptiveStringDistanceLearner
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 | |
|---|---|
AdaptiveStringDistanceLearner()
|
|
AdaptiveStringDistanceLearner(com.wcohen.cls.BinaryClassifierLearner comboLearner)
|
|
AdaptiveStringDistanceLearner(StringDistanceLearner[] innerLearners,
java.lang.String delim,
com.wcohen.cls.BinaryClassifierLearner comboLearner)
|
|
| Method Summary | |
|---|---|
protected void |
comboAddExample(DistanceInstance distanceInstance)
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 it)
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 AdaptiveStringDistanceLearner()
public AdaptiveStringDistanceLearner(com.wcohen.cls.BinaryClassifierLearner comboLearner)
public AdaptiveStringDistanceLearner(StringDistanceLearner[] innerLearners,
java.lang.String delim,
com.wcohen.cls.BinaryClassifierLearner comboLearner)
| Method Detail |
|---|
protected void comboSetStringWrapperPool(java.util.Iterator it)
CombinedStringDistanceLearner
comboSetStringWrapperPool in class CombinedStringDistanceLearnerprotected void comboSetDistanceInstancePool(java.util.Iterator it)
CombinedStringDistanceLearner
comboSetDistanceInstancePool in class CombinedStringDistanceLearnerprotected boolean comboHasNextQuery()
CombinedStringDistanceLearner
comboHasNextQuery in class CombinedStringDistanceLearnerprotected DistanceInstance comboNextQuery()
CombinedStringDistanceLearner
comboNextQuery in class CombinedStringDistanceLearnerprotected void comboAddExample(DistanceInstance distanceInstance)
CombinedStringDistanceLearner
comboAddExample in class CombinedStringDistanceLearnerpublic StringDistance getDistance()
CombinedStringDistanceLearner
getDistance in interface StringDistanceLearnergetDistance in class CombinedStringDistanceLearner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||