Objectives
gaussian_entropy
Calculates the element-wise entropy of a Gaussian predictive distribution at the given inputs.
Entropy of the univariate Gaussian
\[
x\sim\mathcal{N}(\mu, \sigma^{2})
\]
\[
H(x)=\frac{1}{2}\log(2\pi\sigma^2)+\frac{1}{2}
\]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x |
ndarray
|
Input array of shape (num_inputs, dim_inputs) to be evaluated. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: An array of entropy values corresponding to the inputs. |