Skip to content

[source]

Constant#

Initialize the parameter to a user-specified constant value.

Parameters#

# Name Default Type Description
1 value 0.0 float The value to initialize the parameter to.

Example#

use Rubix\ML\NeuralNet\Initializers\Constant;

$initializer = new Constant(1.0);

Last update: 2021-01-23