public Layer(LayerDefinition layerDefinition, Matrix <double> weights = null, Vector <double> biases = null) { NodeCount = layerDefinition.NodeCount; Activation = layerDefinition.Activation; Weights = weights; Biases = biases; }
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); }