コード例 #1
0
ファイル: LayerBank.cs プロジェクト: pscrv/NeuralNet
        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);
        }
コード例 #2
0
ファイル: NetComponentBank.cs プロジェクト: pscrv/NeuralNet
 public WeightedCombinerBank(WeightedCombiner combiner, int repetitions)
     : base(combiner, repetitions)
 {
 }
コード例 #3
0
 public WeightedCombiner(WeightedCombiner combiner)
     : base(combiner.NumberOfOutputs, combiner.NumberOfInputs)
 {
     this.Biases  = combiner.Biases.Copy();
     this.Weights = combiner.Weights.Copy();
 }