Beispiel #1
0
        public SingleLayerNeuralNetwork(long inputsNumber, long outputsNumber, FirstDimensionUnitBuilder <IPerceptron> builder)
        {
            InputsNumber  = inputsNumber;
            OutputsNumber = outputsNumber;

            Layer  = new PerceptronLayer(OutputsNumber, builder);
            Layers = new object[] { Layer };
        }
Beispiel #2
0
 public PerceptronLayer(long size, FirstDimensionUnitBuilder <IPerceptron> builder)
 {
     Size  = size;
     Units = new IPerceptron[Size];
     for (long y = 0; y < Size; y++)
     {
         Units[y] = builder.Invoke(y);
     }
 }