Esempio n. 1
0
        public Layer(int perceptronsInLayer = 0)
        {
            Perceptrons = new List <Perceptron>();

            for (int i = 0; i < perceptronsInLayer; i++)
            {
                Perceptron perceptron = new Perceptron();
                Perceptrons.Add(perceptron);
            }
        }
Esempio n. 2
0
 public Perceptron(Perceptron other)
 {
     Weights    = new Dictionary <string, float>(other.Weights);
     BiasWeight = other.BiasWeight;
 }