Example #1
0
        public TrainableComponentBank(TrainableComponent component, int repetitions)
            : base(component.NumberOfOutputs, component.NumberOfInputs)
        {
            if (repetitions < 1)
            {
                throw new ArgumentException("Attempt to create a LayerBank with <= 0 banks.");
            }

            _component   = component;
            _repetitions = repetitions;
            _input       = new NetworkVector(_repetitions * component.NumberOfInputs);
            _output      = new NetworkVector(_repetitions * component.NumberOfOutputs);
        }
Example #2
0
 public NetComponentChain(TrainableComponent component)
     : this()
 {
     AddTrainable(component);
 }
Example #3
0
 public void AddTrainable(TrainableComponent componentToAdd)
 {
     _addComponent(componentToAdd, istrainable: true);
 }