moscot.problems.cross_modality.TranslationProblem.prepare

TranslationProblem.prepare(src_attr, tgt_attr, joint_attr=None, batch_key=None, 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({}), marginal_kwargs=mappingproxy({}), subset=None, reference=None)[source]

Prepare the translation problem.

See also

Parameters:
Return type:

TranslationProblem[TypeVar(K, bound= Hashable)]

Returns:

: Returns self and updates the following fields: