Class SoftShrink
java.lang.Object
smile.deep.activation.ActivationFunction
smile.deep.activation.SoftShrink
- All Implemented Interfaces:
Serializable, Function<Tensor,Tensor>, Layer
-
Constructor Details
-
SoftShrink
public SoftShrink()Constructor. -
SoftShrink
public SoftShrink(double lambda) Constructor.- Parameters:
lambda- The lambda value in the formulation.
-
-
Method Details
-
forward
-