class COCODetectionResults(DetectionResults): (source)
Constructor: COCODetectionResults(samples, config, eval_key, matches, ...)
Class that stores the results of a COCO detection evaluation.
Parameters | |
samples | the fiftyone.core.collections.SampleCollection used |
config | the COCOEvaluationConfig 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 |
precision | an array of precision values of shape num_iou_threshs x num_classes x num_recall |
recall | an array of recall values |
iou | an array of IoU thresholds |
classes | the list of possible classes |
recall | an array of recall values of shape num_iou x num_classes |
thresholds | an optional array of decision thresholds of shape num_iou_threshs x num_classes x num_recall |
missing | a missing label string. Any unmatched objects are given this label for evaluation purposes |
custom | an optional dict of custom metrics |
backend | a COCOEvaluation backend |
Method | __init__ |
Undocumented |
Method | m |
Computes COCO-style mean average precision (mAP) for the specified classes. |
Method | m |
Computes COCO-style mean average recall (mAR) for the specified classes. |
Method | plot |
Plots precision-recall (PR) curves for the results. |
Instance Variable | iou |
Undocumented |
Instance Variable | precision |
Undocumented |
Instance Variable | recall |
Undocumented |
Instance Variable | recall |
Undocumented |
Instance Variable | thresholds |
Undocumented |
Class Method | _from |
Subclass implementation of from_dict . |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Instance Variable | _classwise_ |
Undocumented |
Instance Variable | _classwise_ |
Undocumented |
Inherited from DetectionResults
:
Instance Variable | ious |
Undocumented |
Inherited from BaseClassificationResults
(via DetectionResults
):
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 DetectionResults
, BaseClassificationResults
):
Method | _get |
Undocumented |
Method | _print |
Undocumented |
Inherited from BaseRunResults
(via DetectionResults
, 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 |
Undocumented
Plots precision-recall (PR) curves for the results.
Parameters | |
classes:None | a list of classes to generate curves for. By default, the top 3 AP classes will be plotted |
iouNone | an optional IoU threshold or list of IoU
thresholds for which to plot curves. If multiple thresholds are
provided, precision data is averaged across these thresholds.
By default, precision data is averaged over all IoU thresholds.
Refer to iou_threshs to see the available thresholds |
backend:"plotly" | the plotting backend to use. Supported values are ("plotly", "matplotlib") |
**kwargs | keyword arguments for the backend plotting method:
|
Returns | |
one of the following |
|
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 |