java.io.Serializable
, java.lang.Cloneable
, ClassificationStatisticsCollector
public class EnsembleClassificationStatisticsCollector extends java.lang.Object implements ClassificationStatisticsCollector, java.lang.Cloneable, java.io.Serializable
Constructor | Description |
---|---|
EnsembleClassificationStatisticsCollector() |
Modifier and Type | Method | Description |
---|---|---|
void |
addClassifier() |
Adds to the classifiers counter.
|
void |
addNumberOfClassifiers(int number) |
Adds a given number to the classifiers counter
|
void |
addNumberOfObjects(int number) |
Adds a given number to the objects counter
|
void |
addNumberOfSuggestion(SimpleField value,
int number) |
|
void |
addNumberOfUnknownClassifications(int number) |
Adds number of results of classifier that have not assigned a given case to a class.
|
void |
addObject() |
Adds to the objects counter.
|
void |
addSuggestion(double value) |
|
void |
addSuggestion(int value) |
|
void |
addSuggestion(SimpleField value) |
Adds result of classifier that have assigned a given case to a class.
|
void |
addSuggestionAndStrength(int value,
double strength) |
|
void |
addSuggestionAndStrength(SimpleField value,
double strength) |
Adds a given strength to a given suggestion
|
void |
addUnknownClassification() |
Adds result of classifier that have not assigned a given case to a class.
|
void |
clearCounters() |
Clears internal counters of collector.
|
int |
getNumberOfClassifiers() |
Gets the classifiers counter.
|
int |
getNumberOfObjects() |
Gets the objects counter.
|
java.util.HashMap<SimpleField,java.lang.Integer> |
getSuggestions() |
Gets the numbers of counted suggestions
|
java.util.HashMap<SimpleField,java.lang.Double> |
getSuggestionsAndStrengths() |
Gets the numbers of counted suggestions and their cumulated strength
|
int |
getUnknownClassifications() |
Gets the number of unknown classification results.
|
java.lang.String |
toString() |
public EnsembleClassificationStatisticsCollector()
public void addClassifier()
ClassificationStatisticsCollector
addClassifier
in interface ClassificationStatisticsCollector
public void addNumberOfClassifiers(int number)
ClassificationStatisticsCollector
addNumberOfClassifiers
in interface ClassificationStatisticsCollector
public void addUnknownClassification()
ClassificationStatisticsCollector
addUnknownClassification
in interface ClassificationStatisticsCollector
public void addNumberOfUnknownClassifications(int number)
ClassificationStatisticsCollector
addNumberOfUnknownClassifications
in interface ClassificationStatisticsCollector
public void addObject()
ClassificationStatisticsCollector
addObject
in interface ClassificationStatisticsCollector
public void addNumberOfObjects(int number)
ClassificationStatisticsCollector
addNumberOfObjects
in interface ClassificationStatisticsCollector
public void addSuggestion(int value)
public void addSuggestion(double value)
public void addSuggestion(SimpleField value)
ClassificationStatisticsCollector
addSuggestion
in interface ClassificationStatisticsCollector
public void addNumberOfSuggestion(SimpleField value, int number)
public void addSuggestionAndStrength(int value, double strength)
public void addSuggestionAndStrength(SimpleField value, double strength)
ClassificationStatisticsCollector
addSuggestionAndStrength
in interface ClassificationStatisticsCollector
value
- suggestionstrength
- strength of suggestionpublic void clearCounters()
ClassificationStatisticsCollector
clearCounters
in interface ClassificationStatisticsCollector
public int getNumberOfClassifiers()
ClassificationStatisticsCollector
getNumberOfClassifiers
in interface ClassificationStatisticsCollector
public int getUnknownClassifications()
ClassificationStatisticsCollector
getUnknownClassifications
in interface ClassificationStatisticsCollector
public int getNumberOfObjects()
ClassificationStatisticsCollector
getNumberOfObjects
in interface ClassificationStatisticsCollector
public java.util.HashMap<SimpleField,java.lang.Integer> getSuggestions()
ClassificationStatisticsCollector
getSuggestions
in interface ClassificationStatisticsCollector
HashMap
with suggestion and the number of counted votes for that suggestionpublic java.util.HashMap<SimpleField,java.lang.Double> getSuggestionsAndStrengths()
ClassificationStatisticsCollector
getSuggestionsAndStrengths
in interface ClassificationStatisticsCollector
HashMap
with suggestion and a cumulated strength of votes for that suggestionpublic java.lang.String toString()
toString
in class java.lang.Object