cellflow.solvers.OTFlowMatching.predict¶
- OTFlowMatching.predict(x, condition, rng=None, **kwargs)[source]¶
Predict the translated source
xunder conditioncondition.This function solves the ODE learnt with the
ConditionalVelocityField.- Parameters:
x (
ndarray[tuple[Any,...],dtype[float64]] |dict[str,ndarray[tuple[Any,...],dtype[float64]]]) – A dictionary with keys indicating the name of the condition and values containing the input data as arrays.condition (
dict[str,ndarray[tuple[Any,...],dtype[float64]]] |dict[str,dict[str,ndarray[tuple[Any,...],dtype[float64]]]]) – A dictionary with keys indicating the name of the condition and values containing the condition of input data as arrays.rng (
Array|None) – Random number generator to sample from the latent distribution, only used ifcondition_mode='stochastic'. IfNone, the mean embedding is used.kwargs (
Any) – Keyword arguments fordiffrax.diffeqsolve(). May also includeguidance_scale(a float): a per-call classifier-free guidance scale that, when not1.0, appliesClassifierFreeGuidancefor this call (requirescfg_enabled), overriding the construction-timeguidance. Handy for sweepingwwithout rebuilding the solver.
- Return type:
ndarray[tuple[Any,...],dtype[float64]] |dict[str,ndarray[tuple[Any,...],dtype[float64]]]- Returns:
: The push-forward distribution of
xunder conditioncondition.