cellflow.solvers.GENOT.predict¶
- GENOT.predict(x, condition=None, rng=None, rng_genot=None, **kwargs)[source]¶
Generate the push-forward of
xunder conditioncondition.This function solves the ODE learnt with the
ConditionalVelocityField.- Parameters:
x (
ndarray[tuple[Any,...],dtype[float64]]) – Input data of shape [batch_size, …].condition (
dict[str,ndarray[tuple[Any,...],dtype[float64]]] |None) – Condition of the input data of shape [batch_size, …].rng (
ndarray[tuple[Any,...],dtype[float64]] |None) – Random number generator to sample from the latent distribution, only used ifcondition_mode='stochastic'. IfNone, the mean embedding is used.rng_genot (
ndarray[tuple[Any,...],dtype[float64]] |None) – Random generate used to sample from the latent distribution in cell space.kwargs (
Any) – Keyword arguments fordiffrax.diffeqsolve().
- Return type:
ndarray[tuple[Any,...],dtype[float64]] |tuple[ndarray[tuple[Any,...],dtype[float64]],Solution]- Returns:
: The push-forward distribution of
xunder conditioncondition.