class documentation
class SegmentationResults(BaseClassificationResults): (source)
Constructor: SegmentationResults(samples, config, eval_key, pixel_confusion_matrix, ...)
Class that stores the results of a segmentation evaluation.
Parameters | |
samples | the fiftyone.core.collections.SampleCollection used |
config | the SegmentationEvaluationConfig used |
eval | the evaluation key |
pixel | a pixel value confusion matrix |
classes | a list of class labels corresponding to the confusion matrix |
matches | a list of (gt_label, pred_label, pixel_count, gt_id, pred_id) matches |
missing | a missing (background) class |
custom | an optional dict of custom metrics |
backend | a SegmentationEvaluation backend |
Method | __init__ |
Undocumented |
Method | dice |
Computes the Dice score across all samples in the evaluation. |
Instance Variable | pixel |
Undocumented |
Class Method | _from |
Subclass implementation of from_dict . |
Static Method | _parse |
Undocumented |
Inherited from BaseClassificationResults
:
Method | confusion |
Generates a confusion matrix for the results via sklearn:sklearn.metrics.confusion_matrix . |
Method | metrics |
Computes classification metrics for the results, including accuracy, precision, recall, and F-beta score. |
Method | plot |
Plots a confusion matrix for the evaluation results. |
Method | print |
Prints the metrics computed via metrics . |
Method | print |
Prints a classification report for the results via sklearn:sklearn.metrics.classification_report . |
Method | report |
Generates a classification report for the results via sklearn:sklearn.metrics.classification_report . |
Instance Variable | classes |
Undocumented |
Instance Variable | confs |
Undocumented |
Instance Variable | weights |
Undocumented |
Instance Variable | ypred |
Undocumented |
Instance Variable | ypred |
Undocumented |
Instance Variable | ytrue |
Undocumented |
Instance Variable | ytrue |
Undocumented |
Method | _confusion |
Undocumented |
Method | _parse |
Undocumented |
Inherited from BaseEvaluationResults
(via BaseClassificationResults
):
Method | _get |
Undocumented |
Method | _print |
Undocumented |
Inherited from BaseRunResults
(via BaseClassificationResults
, BaseEvaluationResults
, EvaluationResults
):
Class Method | from |
Builds a BaseRunResults from a JSON dict representation of it. |
Static Method | base |
Returns the results class for the given run type. |
Method | attributes |
Returns the list of class attributes that will be serialized by serialize . |
Method | save |
Saves the results to the database. |
Method | save |
Saves these results config to the database. |
Property | cls |
The fully-qualified name of this BaseRunResults class. |
Property | config |
The BaseRunConfig for these results. |
Property | key |
The run key for these results. |
Property | samples |
The fiftyone.core.collections.SampleCollection associated with these results. |
Instance Variable | _backend |
Undocumented |
Instance Variable | _config |
Undocumented |
Instance Variable | _key |
Undocumented |
Instance Variable | _samples |
Undocumented |
def __init__(self, samples, config, eval_key, pixel_confusion_matrix, classes, matches=None, missing=None, custom_metrics=None, backend=None):
(source)
¶
Undocumented
Subclass implementation of from_dict
.
Parameters | |
d | a JSON dict |
samples | the fiftyone.core.collections.SampleCollection
for the run |
config | the BaseRunConfig for the run |
eval | Undocumented |
key | the run key |
**kwargs | Undocumented |
Returns | |
a BaseRunResults |