public void InitWithConstBiases(double value) { foreach (AffineLayer layer in AffineLayers()) { Initialiser.InitWithConstValue(layer.Biases.Primal, value); } }
public void InitWithRandomValues(Random rnd) { foreach (AffineLayer layer in AffineLayers()) { Initialiser.InitRndUniform(layer.Weights.Primal, rnd); //Initialiser.InitRndUniform(layer.Biases, rnd); } }
public void InitWithRandomWeights(Random rnd, double?minimum = null, double?maximum = null) { if (rnd == null) { rnd = new Random(); } foreach (AffineLayer layer in AffineLayers()) { Initialiser.InitRndUniform(layer.Weights.Primal, rnd, minimum, maximum); } }