log_gradients#
- Uniform.log_gradients(X)[source]#
Calculates the gradients of the log-PDF w.r.t. 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 ofself.params_to_optimize.- Return type:
NDArray[np.float64]