moscot.problems.time.TemporalProblem.compute_batch_distances¶
- TemporalProblem.compute_batch_distances(time, batch_key, posterior_marginals=True, backend='ott', **kwargs)¶
Compute the average Wasserstein distance between batches for a specific time point.
See also
TODO(MUCDK): create an example showing the usage.
- Parameters:
time (
TypeVar
(K
, bound=Hashable
)) – Time point for which to compute the distances.posterior_marginals (
bool
) – Whether to useposterior_growth_rates
orprior_growth_rates
. TODO(MUCDK): needs more explanationbackend (
Literal
['ott'
]) – Backend used for the distance computation.kwargs (
Any
) –Keyword arguments for the distance function, depending on the
backend
:'ott'
-sinkhorn_divergence()
.
self (TemporalMixinProtocol[K, B])
- Return type:
- Returns:
: The average distance between batches for a specific time point.