|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.jinsect.classification.Suggester
public class Suggester
This class describes objects that can suggest a category, given previous decisions. This class is a meta-classifier, in that it decides based on previous decisions and corrections, in order to determine the final proposal. Suggester gives an answer if the similarity between the confidence of the current decision and previous ones is within a given threshold.
Constructor Summary | |
---|---|
Suggester()
Creates a new instance of Suggester, with a threshold of 0.8. |
|
Suggester(double dLookupThreshold)
Creates a new instance of Suggester, given a threshold. |
Method Summary | |
---|---|
void |
clear()
Clear existing decisions cache. |
Decision |
suggest(java.util.Map CategoryValues)
Decide upon an instance, given a decider's estimation of this instance's similarity to a set of categories. |
void |
train(java.util.Map CategoryValues,
java.lang.String sSuggestedCategory,
java.lang.String sFinalCategory)
Trains the suggester with a new instance, given the estimation values for each category, the original category decided and the actual category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Suggester()
public Suggester(double dLookupThreshold)
dLookupThreshold
- The threshold to use for the decision process.Method Detail |
---|
public void clear()
public void train(java.util.Map CategoryValues, java.lang.String sSuggestedCategory, java.lang.String sFinalCategory)
CategoryValues
- A Map
containing category-estimation pairs, indicating how close
a given instance was to the possible categories.sSuggestedCategory
- The category originally suggested (by some decider) for the instance.sFinalCategory
- The final (corrected) category for the given instance.public Decision suggest(java.util.Map CategoryValues)
CategoryValues
- A Map
containing category-estimation pairs, indicating how close
a given instance was to the possible categories.
Decision
indicating updated estimations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |