gr.demokritos.iit.jinsect.classification
Class Suggester

java.lang.Object
  extended by gr.demokritos.iit.jinsect.classification.Suggester

public class Suggester
extends java.lang.Object

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

Suggester

public Suggester()
Creates a new instance of Suggester, with a threshold of 0.8.


Suggester

public Suggester(double dLookupThreshold)
Creates a new instance of Suggester, given a threshold.

Parameters:
dLookupThreshold - The threshold to use for the decision process.
Method Detail

clear

public void clear()
Clear existing decisions cache.


train

public 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.

Parameters:
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.

suggest

public 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.

Parameters:
CategoryValues - A Map containing category-estimation pairs, indicating how close a given instance was to the possible categories.
Returns:
A Decision indicating updated estimations.