method

costs.Weighted.__call__

def __call__(self, cs: Tracklets, ds: Detections, ctx: FrameContext) -> CostExpression

Run :attr:`inner` and scale its cost matrix.

Parameters

NameTypeDescription
csTrackletsForwarded to :attr:`inner` unchanged.
dsTrackletsForwarded to :attr:`inner` unchanged.
ctxTrackletsForwarded to :attr:`inner` unchanged.

Returns

CostExpression — The inner expression with ``matrix`` multiplied by :attr:`weight`; attached gates and bias are preserved.

Source: unitrack/costs/combinators.py:34