gfdl.weights.range#
- range(d, h, **kwargs)[source]#
The weight function setting weights to a normalized np.arange.
- 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.
- Returns:
- ndarray or scalar
Set the weights to normalized np.arange over the range
[0, d*h).
- Other Parameters:
- **kwargsdict
Needed for keyword arguments and compatibility with other weight function apis but not relevant for this function.