Package smile.base.mlp
Class OutputLayerBuilder
java.lang.Object
smile.base.mlp.LayerBuilder
smile.base.mlp.OutputLayerBuilder
The builder of output layers.
-
Field Summary
Fields inherited from class smile.base.mlp.LayerBuilder
dropout, neurons
-
Constructor Summary
ConstructorDescriptionOutputLayerBuilder
(int neurons, OutputFunction output, Cost cost) Constructor. -
Method Summary
Methods inherited from class smile.base.mlp.LayerBuilder
neurons
-
Constructor Details
-
OutputLayerBuilder
Constructor.- Parameters:
neurons
- the number of neurons.output
- the output function.cost
- the cost 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.
-