moscot.base.problems.BirthDeathProblem.set_solution¶
- BirthDeathProblem.set_solution(solution, *, overwrite=False, **kwargs)¶
Set a
solution
to the OT problem.- Parameters:
solution (
Union
[ndarray
[Any
,dtype
[floating
]],Array
,DataFrame
,BaseDiscreteSolverOutput
]) – Solution for this problem. If aDataFrame
is passed, its index must be equal toadata_src.obs_names
and its columns toadata_tgt.obs_names
.overwrite (
bool
) – Whether to overwrite an existing solution.kwargs (
Any
) – Keyword arguments forMatrixSolverOutput
.
- Return type:
- Returns:
: Self and updates the following fields: