NeuralNet.stack

Stack a layer on top of the former leaf of the net.

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

Parameters

name_ string

name to give to the layer

layer NeuralLayer

which layer to add to the net. It will be wired to the previous leaf.

opt Optimizer

optional optimizer to use for this layer.

Return Value

Type: NeuralNet

current neural network with the newly added layer.

Meta