public HiddenLayer(Activation activation, TrainingInfo trainInfo, int size)
 {
     var neurons = new Neuron[size + 1];
     for (int i = 0; i < size; i++)
         neurons[i] = new HiddenNeuron(activation, trainInfo);
     neurons[size] = new BiasNeuron();
     this.neurons = neurons;
 }
        public Connection(Neuron from, Neuron to, double weight)
        {
            from.AddOutboundConnection(this);
            this.from = from;

            to.AddInboundConnection(this);
            this.to = to;

            this.weight = weight;
        }