Basic class to collect targets/predictions and report summary statistics
It takes care about collecting the sets, which are just tuples (targets, predictions, estimates). While ‘computing’ the matrix, all sets are considered together. Children of the class are responsible for computation and display.
Methods
| add(targets, predictions[, estimates]) | Add new results to the set of known results |
| as_string([short, header, summary, description]) | ‘Pretty print’ the matrix |
| compute() | Actually compute the confusion matrix based on all the sets |
| reset() | Cleans summary – all data/sets are wiped out |
Initialize SummaryStatistics
targets or predictions cannot be provided alone (ie targets without predictions)
| Parameters: | targets :
predictions :
estimates :
sets :
|
|---|
Methods
| add(targets, predictions[, estimates]) | Add new results to the set of known results |
| as_string([short, header, summary, description]) | ‘Pretty print’ the matrix |
| compute() | Actually compute the confusion matrix based on all the sets |
| reset() | Cleans summary – all data/sets are wiped out |
Add new results to the set of known results
‘Pretty print’ the matrix
| Parameters: | short : bool
header : bool
summary : bool
description : bool
|
|---|
Actually compute the confusion matrix based on all the sets
Cleans summary – all data/sets are wiped out
Return a list of separate summaries per each stored set