What problem does it solve?
This Skill provides the authoritative framework for developers to implement, wrap, and register new reference-based (offline) evaluation metrics within the ek ecosystem, ensuring consistency and mathematical correctness.
Core Features & Use Cases
- Standardized Metric Protocol: Implements a strict typing.Protocol to ensure all metrics follow the required (pred, gold, *, grammar) signature.
- Registry Integration: Provides the necessary steps to register new metrics for both type-based dispatch and explicit name-based resolution.
- Use Case: When you need to add a specialized metric like a cost-weighted typed-graph edit distance or a custom table-structure metric, this Skill guides you through the contract, dependency gating, and canonicalization requirements.
Quick Start
Follow the implementation steps in the ek-dev-add-metric skill to wrap your custom metric library and register it for use in the ek score and evaluate facades.