Exemple #1
0
        protected override double GetOutputValue()
        {
            if (InputAxons.Count == 0)
            {
                return(Math.Tanh(0));
            }

            return(Math.Tanh(InputAxons.Sum(x => x.Output)));
        }
Exemple #2
0
        protected override double GetOutputValue()
        {
            if (InputAxons.Count == 0)
            {
                return(Math.Tanh(0));
            }

            var value = Math.Tanh(InputAxons.Sum(x => x.Output));

            return(value > Bias ? value : Math.Tanh(0));
        }