List of all members.
Detailed Description
Holds multiple sets of predicted labels for the same samples and different sets of parameters.
Also holds associated sample IDs and true labels, and can compute performance metrics.
Constructor & Destructor Documentation
def MGT::PredProcessor::Predictions::__init__ |
( |
|
self, |
|
|
|
labPred, |
|
|
|
param, |
|
|
|
idPred |
|
) |
| |
Constructor.
@param labPred array[N_param,N_samp]
@param param recarray[N_param]
@param idPred recarray("id","label")[N_samp] where "label" is true label (arbitrary value if not known)
Member Function Documentation
def MGT::PredProcessor::Predictions::calcPerfMetrics |
( |
|
self, |
|
|
|
idLab, |
|
|
|
confMatrFileStem = None , |
|
|
|
keepConfMatr = False , |
|
|
|
balanceCounts = False |
|
) |
| |
Compute and return performance metrics.
@param idLab IdLabels (currently true label values are taken from self.idPred array rather than from idLab)
@param confMatrFileStem if not None, save confusion matrices for each prediction set in files with this stem name
@param keepConfMatr if True, keep the confusion matrix data inside the returned value, otherwise delete it
The documentation for this class was generated from the following file:
- mgtaxa/MGT/PredProcessor.py