Package smile.deep.layer
Class LinearLayer
java.lang.Object
smile.deep.layer.LinearLayer
A fully connected linear layer.
-
Constructor Summary
ConstructorsConstructorDescriptionLinearLayer
(int in, int out) Constructor.LinearLayer
(int in, int out, boolean bias) Constructor. -
Method Summary
-
Constructor Details
-
LinearLayer
public LinearLayer(int in, int out) Constructor.- Parameters:
in
- the number of input features.out
- the number of output features.
-
LinearLayer
public LinearLayer(int in, int out, boolean bias) Constructor.- Parameters:
in
- the number of input features.out
- the number of output features.bias
- If false, the layer will not learn an additive bias.
-
-
Method Details