public SingleLayerNeuralNetwork(long inputsNumber, long outputsNumber, FirstDimensionUnitBuilder <IPerceptron> builder) { InputsNumber = inputsNumber; OutputsNumber = outputsNumber; Layer = new PerceptronLayer(OutputsNumber, builder); Layers = new object[] { Layer }; }
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); } }