log_gradients#

Normal.log_gradients(X)[source]#

Calculates the gradients of the log-PDF w.r.t. its parameters.

Parameters:

X (ArrayLike) – The input data points at which to calculate the gradients.

Returns:

An array where each row corresponds to a data point in X and each column corresponds to the gradient with respect to a specific optimizable parameter. The order of columns corresponds to the sorted order of self.params_to_optimize.

Return type:

NDArray[np.float64]