It takes care about collecting the sets, which are just tuples
(targets, predictions, values). While 'computing' the matrix, all
sets are considered together. Children of the class are
responsible for computation and display.
|
__init__(self,
targets=None,
predictions=None,
values=None,
sets=None)
Initialize SummaryStatistics |
source code
|
|
|
add(self,
targets,
predictions,
values=None)
Add new results to the set of known results |
source code
|
|
|
asstring(self,
short=False,
header=True,
summary=True,
description=False)
'Pretty print' the matrix |
source code
|
|
|
|
|
|
|
__add__(self,
other)
Add two `SummaryStatistics`s |
source code
|
|
|
compute(self)
Actually compute the confusion matrix based on all the sets |
source code
|
|
|
|
|
|
|
|
|
|
|
reset(self)
Cleans summary -- all data/sets are wiped out |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|