Skip to content

[source]

Uniform#

Generates a random uniform distribution centered at 0 and bounded at both ends by the parameter beta.

Parameters#

# Name Default Type Description
1 beta 0.5 float The upper and lower bound of the distribution.

Example#

use Rubix\ML\NeuralNet\Initializers\Uniform;

$initializer = new Uniform(beta: 1e-3);