Custom Metrics
Objective Functions
Confusion Matrices
Registering Custom Metrics
al_client.create_project(..., custom_metrics=[
al.CustomMetricsDefinition(name='my_score', metrics_type='objective'),
al.CustomMetricsDefinition(name='my_conf_matrix', metrics_type='confusion_matrix'),
])inferences_frame = al.InferencesFrame(frame_id=frame_id)
# ...
inferences_frame.add_custom_metric('my_score', 3.32)
inferences_frame.add_custom_metric('my_conf_matrix', [
[6,2],
[1,5]
])Last updated
Was this helpful?