gfdl.weights.normal#
- normal(d, h, *, rng, **kwargs)[source]#
The weight function returning samples drawn from normal distribution.
- Parameters:
- dint
Number of features in a sample or number of neurons in the previous hidden layer.
- hint
Number of neurons in the current hidden layer.
- rngnp.random.Generator
A NumPy random number generator instance.
- Returns:
- ndarray or scalar
Draw samples from the normal distribution with mean
0and standard deviation1.
- Other Parameters:
- **kwargsdict
Other keyword arguments. Placeholder for exposing distribution parameters later on.