NeuralNet.add

Add a layer to the net, without wiring it.

  1. NeuralNet add(string name_, NeuralLayer layer, Optimizer opt)
  2. NeuralNet add(NeuralLayer layer, Optimizer opt)
    class NeuralNet

Parameters

layer NeuralLayer

which layer to add to the net.

opt Optimizer

optional optimizer to use for this layer.

Return Value

Type: NeuralNet

current neural network with the newly added layer.

Meta