moscot.problems.space.AlignmentProblem.prepare

AlignmentProblem.prepare(batch_key, spatial_key='spatial', joint_attr=None, policy='sequential', reference=None, normalize_spatial=True, cost='sq_euclidean', cost_kwargs=mappingproxy({}), a=None, b=None, xy_callback=None, x_callback=None, y_callback=None, xy_callback_kwargs=mappingproxy({}), x_callback_kwargs=mappingproxy({}), y_callback_kwargs=mappingproxy({}), subset=None, marginal_kwargs=mappingproxy({}))[source]

Prepare the alignment problem problem.

See also

Parameters:
Return type:

AlignmentProblem[TypeVar(K, bound= Hashable), TypeVar(B, bound= OTProblem)]

Returns:

: Returns self and updates the following fields: