Ejemplo n.º 1
0
        protected override NetworkVector _run(NetworkVector inputvalues)
        {
            if (inputvalues.Dimension != NumberOfInputs)
            {
                throw new ArgumentException("Input dimension does not match this Layer.");
            }

            NetworkVector result = _combiner.Run(inputvalues);

            if (_neuralFunction != null)
            {
                result = _neuralFunction.Run(result);
            }

            return(result);
        }
Ejemplo n.º 2
0
 public override void Run(NetworkVector inputvalues)
 {
     if (inputvalues.Dimension != NumberOfInputs)
     {
         throw new ArgumentException("Input dimension does not match this Layer.");
     }
     _combiner.Run(inputvalues);
     if (_neuralFunction != null)
     {
         _neuralFunction.Run(_combiner.Output);
     }
 }