Using metrics
|
Deploying custom models to the platform is in preview. This is currently only available to a limited set of partners. If you’re interested in joining this preview program, get in touch with the Timefold team to discuss access. |
Metrics aren’t just extra fields in the API response. Once your model is deployed to Timefold Platform, input and output metrics feed several platform features that would otherwise only show consumers a raw score and a solved dataset:
-
Solve graphs: output metrics can be plotted alongside the hard, medium, and soft score as the solver runs, so consumers see how a metric evolves over time, not just its final value. See Solve graphs for details.
-
Dataset comparison: input and output metrics are available as columns when comparing multiple datasets side by side, making it possible to spot how problem size or solution quality differs between them. See Comparing datasets for details.
-
Insights: both metric types can be tracked over time across many datasets, so consumers can tell whether operational planning is improving or degrading. See Insights for details.
Without input and output metrics, none of these views have anything model-specific to show beyond the score.
See Exposing metrics for how to define and implement input and output metrics on your model.
While you’re at it, give each metric a proper OpenAPI title, description, and format in its @Schema annotation.
These surface directly in the platform UI: in solve graphs, the comparison view, and Insights, consumers see the title as the metric’s label and the description as its explanation, not the raw field name.
A metric without a clear title and description is much harder for a consumer to interpret at a glance.
Redeploy your model, as described in Getting started: deploying to the platform, then submit a dataset and check that your metrics show up in the solve graphs, comparison view, and Insights.