示例#1
0
        private NeuronLayer CreateHiddenLayer(int countNeurons)
        {
            NeuronLayer layer = new NeuronLayer();
            List<Neuron> hiddenNeurons = new List<Neuron>();

            for (int i = 0; i < countNeurons; i++ )
            {
                hiddenNeurons.Add(new Neuron());
            }

            layer.AddNeurons(hiddenNeurons);

            return layer;
        }