moscot.base.problems.BirthDeathProblem.set_y¶
- BirthDeathProblem.set_y(data, tag)¶
Set a cost/kernel matrix for the target quadratic term.
- Parameters:
data (
DataFrame
) – Cost or kernel matrix. Its index must be equal toadata_tgt.obs_names
and its columns toadata_tgt.obs_names
.tag (
Literal
['cost_matrix'
,'kernel'
]) – Whetherdata
is a cost or a kernel matrix.
- Return type:
- Returns:
: Nothing, just updates the following fields:
y
- the target quadratic term.stage
- set to'prepared'
.