Domain Metrics¶
Formula¶
Domain metrics are requested with environment.domain_metrics in scenario YAML.
Current examples:
collision_rate = collision_count / frame_countroute_completion = route_completion_percenttask_completion = 1.0 if goal_reached else route_completion_percent / 100comfort_score = 100 - acceleration_penalty - deceleration_penalty - jerk_penalty - steering_penaltytrajectory_error_3d = mean distance from ego positions to the configured 3D route
Hand-Computable Example¶
Two frames, no collisions, final ego reaches the goal, and no acceleration or steering change.
Expected output:
collision_rate = 0.0route_completion = 100.0comfort_score = 100.0task_completion = 1.0
Edge Cases¶
- Missing
domain_metricsrecords no domain metrics. - Unsupported domain metric names are ignored by the computation path unless explicitly checked with registry helpers.
- Empty episodes return zero-rate values where applicable.
Limitations¶
Domain metrics are v0.1 development signals. They should be expanded with domain owners before being treated as benchmark-grade measures.
Test References¶
tests/golden/test_domain_metrics_golden.pytests/test_metrics.py