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); }
public NetComponentChain(TrainableComponent component) : this() { AddTrainable(component); }
public void AddTrainable(TrainableComponent componentToAdd) { _addComponent(componentToAdd, istrainable: true); }