public ActivationNetwork( IActivationFunction function, int inputsCount, params int[] neuronsCount ) : base( inputsCount, neuronsCount.Length ) { // create each layer for ( int i = 0; i < layers.Length; i++ ) { layers[i] = new ActivationLayer( // neurons count in the layer neuronsCount[i], // inputs count of the layer ( i == 0 ) ? inputsCount : neuronsCount[i - 1], // activation function of the layer function ); } }