from arize.utils.types import Environments, ModelTypes, Schema, ObjectDetectionLabel
object_detection_prediction = ObjectDetectionLabel(
bounding_boxes_coordinates: [[147.5, 98.0, 169.67, 276.69], [114.19, 108.4...]]
categories: ['chair', 'chair', 'bed', 'dining table', 'chair']
scores: [0.90, 0.97, 0.98, 0.96, 0.96, 0.92, ...]
)
object_detection_actual = ObjectDetectionLabel(
bounding_boxes_coordinates: [[437.51, 366.37, 529.0, 480.97], [0.0, 302.24...]]
categories: ['dining table', 'bed', 'chair', 'chair']
)
response = arize.log(
model_id="demo-object-detection-single-log",
model_version="v1",
environment=Environments.PRODUCTION,
model_type=ModelTypes.OBJECT_DETECTION,
prediction_id="123",
prediction_label=object_detection_prediction,
actual_label=object_detection_actual
)