Ejemplo n.º 1
0
 public FeedForwardLayer(FeedForwardLayer pInputLayer, int pNeurons, IActivationFunction pActivationFunction)
 {
     _input              = pInputLayer;
     _activation         = pActivationFunction;
     Weights             = Matrix.Random(pNeurons, pInputLayer.Weights.Rows);
     Bias                = new Matrix(pNeurons, 1);
     ActivationsMatrix   = new Matrix(Weights.Rows, 1);
     WeightedInputMatrix = new Matrix(Weights.Rows, 1);
 }
Ejemplo n.º 2
0
 public FeedForwardNetwork(int pInputNeurons)
 {
     inputLayer = new FeedForwardLayer(new Matrix(pInputNeurons, 1));
     _layers    = new List <FeedForwardLayer>();
 }