InputType - The input type of the object to evaluate the performance of.CategoryType - The category type (output type) to build the confusion matrix over,
which is the also the output type of the object to evaluate the
performance of.public class ConfusionMatrixPerformanceEvaluator<InputType,CategoryType> extends AbstractSupervisedPerformanceEvaluator<InputType,CategoryType,CategoryType,ConfusionMatrix<CategoryType>>
| Modifier and Type | Field and Description |
|---|---|
protected Factory<? extends ConfusionMatrix<CategoryType>> |
factory
The factory used to create the confusion matrix of the evaluator.
|
| Constructor and Description |
|---|
ConfusionMatrixPerformanceEvaluator()
Creates a new
ConfusionMatrixPerformanceEvaluator with a
default factory behind it. |
ConfusionMatrixPerformanceEvaluator(Factory<? extends ConfusionMatrix<CategoryType>> factory)
Creates a new
ConfusionMatrixPerformanceEvaluator using the given
factory. |
| Modifier and Type | Method and Description |
|---|---|
ConfusionMatrix<CategoryType> |
evaluatePerformance(java.util.Collection<? extends TargetEstimatePair<? extends CategoryType,? extends CategoryType>> data)
Evaluates the performance accuracy of the given estimates against the
given targets.
|
Factory<? extends ConfusionMatrix<CategoryType>> |
getFactory()
Gets the factory for the confusion matrix the evaluator creates.
|
void |
setFactory(Factory<? extends ConfusionMatrix<CategoryType>> factory)
Sets the factory for the confusion matrix the evaluator creates.
|
evaluatePerformance, summarizecloneprotected Factory<? extends ConfusionMatrix<CategoryType>> factory
public ConfusionMatrixPerformanceEvaluator()
ConfusionMatrixPerformanceEvaluator with a
default factory behind it.public ConfusionMatrixPerformanceEvaluator(Factory<? extends ConfusionMatrix<CategoryType>> factory)
ConfusionMatrixPerformanceEvaluator using the given
factory.factory - The factory used to create the matrix from the evaluator.public ConfusionMatrix<CategoryType> evaluatePerformance(java.util.Collection<? extends TargetEstimatePair<? extends CategoryType,? extends CategoryType>> data)
SupervisedPerformanceEvaluatorevaluatePerformance in interface SupervisedPerformanceEvaluator<InputType,CategoryType,CategoryType,ConfusionMatrix<CategoryType>>evaluatePerformance in class AbstractSupervisedPerformanceEvaluator<InputType,CategoryType,CategoryType,ConfusionMatrix<CategoryType>>data - The target-estimate pairs to use to evaluate performance.public Factory<? extends ConfusionMatrix<CategoryType>> getFactory()
public void setFactory(Factory<? extends ConfusionMatrix<CategoryType>> factory)
factory - The factory for the confusion matrix.