gfdl.weights.glorot_uniform#
- glorot_uniform(d, h, *, rng, **kwargs)[source]#
The weight function returning samples drawn from Glorot uniform 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 Glorot uniform distribution between
[-sqrt(6/(d+h)), sqrt(6/(d+h))).
- Other Parameters:
- **kwargsdict
Needed for keyword arguments and compatibility with other weight function apis but not relevant for this function.
Notes
https://faroit.com/keras-docs/2.0.0/initializers/#glorot_uniform