public override double[] Calculate(ref double[] LayerSum, double a) { for (int i = 0; i < LayerSum.Length; i++) { LayerSum[i] = Activation.ELU(LayerSum[i], a); } return(LayerSum); }
public override double Differentiate(double x, double a) { return(x < 0 ? Activation.ELU(x, a) + a : 1); //throw new System.NotImplementedException(); }