Exemplo n.º 1
0
        public override double[] Calculate(ref double[] LayerSum, double a = 0)
        {
            for (int i = 0; i < LayerSum.Length; i++)
            {
                LayerSum[i] = Activation.Sigmoid(LayerSum[i]);
            }

            //throw new NotImplementedException();
            return(LayerSum);
        }
Exemplo n.º 2
0
 public override double Differentiate(double x, double a = 0)
 {
     return(Activation.Sigmoid(x) * (1 - Activation.Sigmoid(x)));
     //throw new NotImplementedException();
 }