public class LeakyReluFunction extends java.lang.Object implements IActivationFunction
| Constructor and Description |
|---|
LeakyReluFunction()
Initializes a new instance of the LeakyReluFunction class.
|
LeakyReluFunction(double alpha)
Initializes a new instance of the LeakyReluFunction class.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Compute(double x)
Compute the activation function.
|
double |
getAlpha()
Get alpha parameter.
|
void |
setAlpha(double alpha)
Set alpha parameter.
|
public LeakyReluFunction()
public LeakyReluFunction(double alpha)
alpha - Parameter alpha (1, +Inf).public double getAlpha()
public void setAlpha(double alpha)
alpha - Alpha parameter (1, +Inf).public double Compute(double x)
IActivationFunctionCompute in interface IActivationFunctionx - Value.