|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mancrd.ahah.classifier.ClassifierOutput
public final class ClassifierOutput
This DTO encapsulates an activation map from a classifier and has convenience methods to get at the relevant data
Constructor Summary | |
---|---|
ClassifierOutput()
Constructor |
Method Summary | |
---|---|
boolean |
execute(int label,
float weight)
|
LabelOutput |
getBestGuess()
Returns the highest ranked label or best-guess label |
String |
getBestGuessLabelAboveThreshold(double confidenceThreshold)
Returns the highest ranked label above the given confidence threshold |
LabelOutput |
getBestGuessLabelOuputAboveThreshold(double confidenceThreshold)
Returns the highest ranked label above the given confidence threshold |
LabelOutput |
getLabelOutput(String label)
|
LabelOutput[] |
getLabelOutputs()
|
Set<LabelOutput> |
getLabelOutputSet(double confidenceThreshold)
Gets the Activation objects sorted by activation above a given confidence threshold |
Set<String> |
getLabelSet(double confidenceThreshold)
Gets the Activation objects sorted by activation above a given confidence threshold |
List<LabelOutput> |
getSortedLabelOutputs(double confidenceThreshold)
Gets the Activation objects sorted by activation above a given confidence threshold |
List<String> |
getSortedLabels()
Gets the Activation objects sorted by activation above a given confidence threshold |
List<String> |
getSortedLabels(double confidenceThreshold)
Gets the Activation objects sorted by activation above a given confidence threshold |
float |
getTotalConfidence(double confidenceThreshold)
Returns the sum total activation for all labels in the output that exceed the given threshold. |
void |
translateLabels(gnu.trove.map.hash.TIntObjectHashMap<String> labelReverseMap)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassifierOutput()
activations
- Method Detail |
---|
public LabelOutput[] getLabelOutputs()
public void translateLabels(gnu.trove.map.hash.TIntObjectHashMap<String> labelReverseMap)
public float getTotalConfidence(double confidenceThreshold)
activationThreshold
-
public List<LabelOutput> getSortedLabelOutputs(double confidenceThreshold)
activationThreshold
-
public Set<LabelOutput> getLabelOutputSet(double confidenceThreshold)
activationThreshold
-
public List<String> getSortedLabels(double confidenceThreshold)
activationThreshold
-
public Set<String> getLabelSet(double confidenceThreshold)
activationThreshold
-
public List<String> getSortedLabels()
activationThreshold
-
public LabelOutput getBestGuess()
public LabelOutput getLabelOutput(String label)
public LabelOutput getBestGuessLabelOuputAboveThreshold(double confidenceThreshold)
public String getBestGuessLabelAboveThreshold(double confidenceThreshold)
public boolean execute(int label, float weight)
execute
in interface gnu.trove.procedure.TIntFloatProcedure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |