Normal#
Generates a random weight matrix from a Gaussian distribution with user-specified standard deviation.
Parameters#
# | Name | Default | Type | Description |
---|---|---|---|---|
1 | stddev | 0.05 | float | The standard deviation of the distribution to sample from. |
Example#
use Rubix\ML\NeuralNet\Initializers\Normal;
$initializer = new Normal(0.1);
Last update:
2021-01-23