mlnext.data.sample_normal#
- mlnext.data.sample_normal(*, mean: ndarray, std: ndarray) ndarray [source]#
Samples from a normal gaussian with mu=`mean` and sigma=`std`.
- Parameters:
mean (np.ndarray) – Mean of the normal distribution.
std (np.ndarray) – Standard deviation of the normal distribution.
- Returns:
Returns the drawn samples.
- Return type:
np.ndarray
Example
>>> # Sample from a normal distribution with mean and standard dev. >>> sample_normal(mean=[0.1], std=[1]) array([-0.77506174])