public class BoundingBoxError extends TrainingMetric
BoundingBoxError is a TrainingMetric that computes the error in the prediction of
bounding boxes in SingleShotDetection model.| Constructor and Description |
|---|
BoundingBoxError(java.lang.String name)
Creates an BoundingBoxError metric.
|
| Modifier and Type | Method and Description |
|---|---|
TrainingMetric |
duplicate()
Creates and returns a copy of this object.
|
float |
getValue()
Calculates metric values.
|
void |
reset()
Resets metric values.
|
void |
update(NDList labels,
NDList predictions)
Computes and updates the detection bounding box prediction error based on
NDList of
labels and predictions. |
checkLabelShapes, checkLabelShapes, getNamepublic BoundingBoxError(java.lang.String name)
name - the name of the metric.public void update(NDList labels, NDList predictions)
NDList of
labels and predictions.
First compute bounding box labels and bounding box masks using the MultiBoxTarget operator. Then compute bounding box error based on bounding box labels and predictions.
update in class TrainingMetriclabels - the NDList of labelspredictions - the NDList of predictionspublic TrainingMetric duplicate()
TrainingMetricduplicate in class TrainingMetricTrainingMetricpublic void reset()
reset in class TrainingMetricpublic float getValue()
getValue in class TrainingMetricPair of metric name and value