type

assignment.Associate

class Associate:

Materialise a :class:`~unitrack.data.CostExpression` and run an :class:`Assignment`.

Acts as the bridge between cost-construction (gates, fused costs) and hard matching. For :class:`~unitrack.assignment.SoftAssignment` backends the Sinkhorn log-plan is solved once and reused both for hard extraction and for downstream :class:`~unitrack.states.SoftReplace` blending.

Parameters

NameTypeDescription
assignmentAssignmentBackend that produces a hard match from a materialised cost matrix.

Members

method

  • __call__Materialise ``cost`` and produce a :class:`~unitrack.data.MatchOutcome`.
  • __init__

property

Source: unitrack/assignment/associate.py:22