Package smile.base.mlp
Class HiddenLayerBuilder
java.lang.Object
smile.base.mlp.LayerBuilder
smile.base.mlp.HiddenLayerBuilder
The builder of hidden layers.
-
Field Summary
Fields inherited from class smile.base.mlp.LayerBuilder
dropout, neurons
-
Constructor Summary
ConstructorDescriptionHiddenLayerBuilder
(int neurons, double dropout, ActivationFunction activation) Constructor. -
Method Summary
Methods inherited from class smile.base.mlp.LayerBuilder
neurons
-
Constructor Details
-
HiddenLayerBuilder
Constructor.- Parameters:
neurons
- the number of neurons.dropout
- the dropout rate.activation
- the activation function.
-
-
Method Details
-
toString
-
build
Description copied from class:LayerBuilder
Builds a layer.- Specified by:
build
in classLayerBuilder
- Parameters:
p
- the number of input variables (not including bias value).- Returns:
- a layer.
-