java.io.Serializable, java.lang.Cloneable, ClassificationStatisticsCollectorpublic class EnsembleClassificationStatisticsFoldCollector extends java.lang.Object implements ClassificationStatisticsCollector, java.lang.Cloneable, java.io.Serializable
| Constructor | Description |
|---|---|
EnsembleClassificationStatisticsFoldCollector() |
|
EnsembleClassificationStatisticsFoldCollector(int numberOfFolds) |
| 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 |
addStatistics(ClassificationStatisticsCollector statisticsCollector) |
|
void |
addStatistics(EnsembleClassificationStatisticsFoldCollector statisticsCollector) |
|
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.
|
void |
clearFoldCounters() |
|
int |
getNumberOfClassifiers() |
Gets the classifiers counter.
|
int |
getNumberOfFolds() |
|
int |
getNumberOfObjects() |
Gets the objects counter.
|
ClassificationStatisticsCollector |
getStatistics(int fold) |
|
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.
|
void |
nextFold() |
|
void |
setFold(int fold) |
|
java.lang.String |
toString() |
public EnsembleClassificationStatisticsFoldCollector(int numberOfFolds)
public EnsembleClassificationStatisticsFoldCollector()
public void addClassifier()
ClassificationStatisticsCollectoraddClassifier in interface ClassificationStatisticsCollectorpublic void addNumberOfClassifiers(int number)
ClassificationStatisticsCollectoraddNumberOfClassifiers in interface ClassificationStatisticsCollectorpublic void addUnknownClassification()
ClassificationStatisticsCollectoraddUnknownClassification in interface ClassificationStatisticsCollectorpublic void addNumberOfUnknownClassifications(int number)
ClassificationStatisticsCollectoraddNumberOfUnknownClassifications in interface ClassificationStatisticsCollectorpublic void addObject()
ClassificationStatisticsCollectoraddObject in interface ClassificationStatisticsCollectorpublic void addNumberOfObjects(int number)
ClassificationStatisticsCollectoraddNumberOfObjects in interface ClassificationStatisticsCollectorpublic void addSuggestion(int value)
public void addSuggestion(double value)
public void addSuggestion(SimpleField value)
ClassificationStatisticsCollectoraddSuggestion in interface ClassificationStatisticsCollectorpublic void addNumberOfSuggestion(SimpleField value, int number)
public void addSuggestionAndStrength(int value,
double strength)
public void addSuggestionAndStrength(SimpleField value, double strength)
ClassificationStatisticsCollectoraddSuggestionAndStrength in interface ClassificationStatisticsCollectorvalue - suggestionstrength - strength of suggestionpublic void addStatistics(EnsembleClassificationStatisticsFoldCollector statisticsCollector)
public void addStatistics(ClassificationStatisticsCollector statisticsCollector)
public ClassificationStatisticsCollector getStatistics(int fold)
public void clearFoldCounters()
public void clearCounters()
ClassificationStatisticsCollectorclearCounters in interface ClassificationStatisticsCollectorpublic int getNumberOfClassifiers()
ClassificationStatisticsCollectorgetNumberOfClassifiers in interface ClassificationStatisticsCollectorpublic java.util.HashMap<SimpleField,java.lang.Integer> getSuggestions()
ClassificationStatisticsCollectorgetSuggestions in interface ClassificationStatisticsCollectorHashMap with suggestion and the number of counted votes for that suggestionpublic java.util.HashMap<SimpleField,java.lang.Double> getSuggestionsAndStrengths()
ClassificationStatisticsCollectorgetSuggestionsAndStrengths in interface ClassificationStatisticsCollectorHashMap with suggestion and a cumulated strength of votes for that suggestionpublic int getUnknownClassifications()
ClassificationStatisticsCollectorgetUnknownClassifications in interface ClassificationStatisticsCollectorpublic int getNumberOfObjects()
ClassificationStatisticsCollectorgetNumberOfObjects in interface ClassificationStatisticsCollectorpublic int getNumberOfFolds()
public void nextFold()
public void setFold(int fold)
public java.lang.String toString()
toString in class java.lang.Object