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