NeuralNet.add

Name and add a layer to the net, without wiring it.

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

Parameters

name_ string

name to give to the layer.

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