pipeline.default_soft_registry
def default_soft_registry(epsilon: float = 0.1, temperature: float = 1.0, sinkhorn_iters: int = 50) -> SoftRegistryBuild the default hard-to-soft registry for differentiable mode.
Parameters
| Name | Type | Description |
|---|---|---|
| epsilon = 0.1 | float | Entropy regularisation for the Sinkhorn-backed :class:`~unitrack.assignment.SoftAssignment` swap of :class:`~unitrack.assignment.Associate`. Smaller is sharper (closer to a hard assignment); larger is smoother. |
| temperature = 1.0 | float | Temperature for the :class:`~unitrack.gates.soft.SoftMotionGate` swap of :class:`~unitrack.gates.MotionGate`. The Mahalanobis :math:`\\chi^2` is divided by this before attachment as a soft cost bias. |
| sinkhorn_iters = 50 | int | Number of Sinkhorn iterations for the soft assignment. |
Returns
SoftRegistry — A registry that swaps :class:`~unitrack.assignment.Associate` → :class:`~unitrack.assignment.SoftAssignment`, :class:`~unitrack.gates.MotionGate` → :class:`~unitrack.gates.SoftMotionGate`, :class:`~unitrack.states.Replace` → :class:`~unitrack.states.SoftReplace`, and :class:`~unitrack.lifecycle.StandardLifecycle` → :class:`~unitrack.lifecycle.SoftLifecycle`.
Source: unitrack/pipeline/diff.py:79