Beispiel #1
0
 public Layer(LayerDefinition layerDefinition, Matrix <double> weights = null, Vector <double> biases = null)
 {
     NodeCount  = layerDefinition.NodeCount;
     Activation = layerDefinition.Activation;
     Weights    = weights;
     Biases     = biases;
 }
Beispiel #2
0
 public FeedForwardNN(Layer[] layers)
 {
     LayerDefinition[] layerDefinitions = new LayerDefinition[layers.Length];
     for (int i = 0; i < layers.Length; i++)
     {
         layerDefinitions[i] = new LayerDefinition(layers[i].NodeCount, layers[i].Activation);
     }
     Init(layerDefinitions);
 }