Exemplo n.º 1
0
 public void InitWithConstBiases(double value)
 {
     foreach (AffineLayer layer in AffineLayers())
     {
         Initialiser.InitWithConstValue(layer.Biases.Primal, value);
     }
 }
Exemplo n.º 2
0
 public void InitWithRandomValues(Random rnd)
 {
     foreach (AffineLayer layer in AffineLayers())
     {
         Initialiser.InitRndUniform(layer.Weights.Primal, rnd);
         //Initialiser.InitRndUniform(layer.Biases, rnd);
     }
 }
Exemplo n.º 3
0
        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);
            }
        }