Example #1
0
        public WeightedCombinerBank(WeightedCombiner combiner, int repetitions)
            : base(combiner)
        {
            if (repetitions < 1)
            {
                throw new ArgumentException("Attempt to create a LayerBank with < 1 banks.");
            }

            _repetitions   = repetitions;
            _inputs        = new NetworkVector(NumberOfInputs);
            _inputParts    = _inputs.Segment(_repetitions);
            _output        = new NetworkVector(NumberOfOutputs);
            _inputGradient = new NetworkVector(NumberOfInputs);
        }
Example #2
0
 public WeightedCombinerBank(WeightedCombiner combiner, int repetitions)
     : base(combiner, repetitions)
 {
 }
Example #3
0
 public WeightedCombiner(WeightedCombiner combiner)
     : base(combiner.NumberOfOutputs, combiner.NumberOfInputs)
 {
     this.Biases  = combiner.Biases.Copy();
     this.Weights = combiner.Weights.Copy();
 }