log_gradients#
- abstractmethod ContinuousDistribution.log_gradients(X)[source]#
Calculates the gradients of the log-PDF with respect to its parameters.
The gradients are computed for the parameters that are not fixed.
- 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
Xand each column corresponds to the gradient with respect to a specific optimizable parameter. The order of columns corresponds to the sorted order ofparams_to_optimize.- Return type:
NDArray[np.float64]