class documentation
class DetectionResults(BaseClassificationResults): (source)
Known subclasses: fiftyone.utils.eval.activitynet.ActivityNetDetectionResults
, fiftyone.utils.eval.coco.COCODetectionResults
, fiftyone.utils.eval.openimages.OpenImagesDetectionResults
Constructor: DetectionResults(samples, config, eval_key, matches, ...)
Class that stores the results of a detection evaluation.
Parameters | |
samples | the fiftyone.core.collections.SampleCollection used |
config | the DetectionEvaluationConfig used |
eval | the evaluation key |
matches | a list of (gt_label, pred_label, iou, pred_confidence, gt_id, pred_id) matches. Either label can be None to indicate an unmatched object |
classes | the list of possible classes. If not provided, the observed ground truth/predicted labels are used |
missing | a missing label string. Any unmatched objects are given this label for evaluation purposes |
custom | an optional dict of custom metrics |
backend | a DetectionEvaluation backend |
Method | __init__ |
Undocumented |
Instance Variable | ious |
Undocumented |
Class Method | _from |
Subclass implementation of from_dict . |
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 | 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 |
overridden in
fiftyone.utils.eval.activitynet.ActivityNetDetectionResults
, fiftyone.utils.eval.coco.COCODetectionResults
, fiftyone.utils.eval.openimages.OpenImagesDetectionResults
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 |