Skip to content

🧪 ForwardLayer

A fully connected forward layer.

Parent type: Layer

Parameters:

Name Type Description Default
neuronCount Int The number of neurons in this layer -
activationFunction literal<"sigmoid", "relu", "softmax", "none", "notset"> The activation function used in the forward layer, if not set the activation will be set automatically. "notset"
Stub code in ForwardLayer.sdsstub

@Experimental
@Category(DataScienceCategory.ModelingQNeuralNetwork)
class ForwardLayer(
    @PythonName("neuron_count") neuronCount: Int,
    @PythonName("overwrite_activation_function") activationFunction: literal<"sigmoid", "relu", "softmax", "none", "notset"> = "notset"
) sub Layer {
    /**
     * Get the input_size of this layer.
     */
    @PythonName("input_size") attr inputSize: Int
    /**
     * Get the output_size of this layer.
     */
    @PythonName("output_size") attr outputSize: Int
}

inputSize

Get the input_size of this layer.

Type: Int

outputSize

Get the output_size of this layer.

Type: Int