Exemplo n.º 1
0
            public void InitWeights(INormalSampler rand, double factor)
            {
                int    dim     = Weight.GetLength(0);
                double std_dev = factor; // *System.Math.Sqrt((double)dim);

                for (int i = 0; i < dim; i++)
                {
                    Weight[i].Value = rand.SampleFromNormal(0, std_dev);
                }
            }
Exemplo n.º 2
0
 public void InitWeights(INormalSampler rand, double factor)
 {
     int dim = Weight.GetLength(0);
     double std_dev = factor;//*System.Math.Sqrt((double)dim);
     for (int i = 0; i < dim; i++)
         Weight[i].Value = rand.SampleFromNormal(0, std_dev);
 }