[source]

Constant#

Initialize the parameter to a user-specified constant value.

Parameters#

# Param 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);