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