dynamo.vf.IntGrad¶
-
dynamo.vf.
IntGrad
(points, Function, DiffusionMatrix, dt)[source]¶ Calculate the action of the path based on the (reconstructed) vector field function and diffusion matrix (Eq. 18)
- Parameters
points ('np.ndarray') – The sampled points in the state space used to calculate the action.
Function ('function') – The (learned) vector field function.
DiffusionMatrix ('function') – The function that returns diffusion matrix which can be dependent on the variables (for example, genes)
dt ('function') – The time interval used in calculating action
- Returns
integral – The action calculated based on the input path, the vector field function and the diffusion matrix.
- Return type
‘np.ndarray’