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

            Layer  = new PerceptronLayer(OutputsNumber, builder);
            Layers = new object[] { Layer };
        }
コード例 #2
0
ファイル: PerceptronLayer.cs プロジェクト: MDKIP/MarAI
 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);
     }
 }