AForge.Neuro.Network.Network C# (CSharp) Method

Network() protected method

Initializes a new instance of the Network class.
Protected constructor, which initializes inputsCount, layersCount and layers members.
protected Network ( int inputsCount, int layersCount ) : System
inputsCount int Network's inputs count.
layersCount int Network's layers count.
return System
		protected Network( int inputsCount, int layersCount )
		{
			this.inputsCount = Math.Max( 1, inputsCount );
			this.layersCount = Math.Max( 1, layersCount );
			// create collection of layers
			this.layers = new Layer[this.layersCount];
		}