public class ReluFunction extends java.lang.Object implements IActivationFunction
| Constructor and Description |
|---|
ReluFunction()
Initializes a new instance of the ReluFunction function.
|
ReluFunction(double alpha)
Initializes a new instance of the ReluFunction function.
|
| 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 ReluFunction()
public ReluFunction(double alpha)
alpha - Alpha.public double getAlpha()
public void setAlpha(double alpha)
alpha - Alpha parameter.public double Compute(double x)
IActivationFunctionCompute in interface IActivationFunctionx - Value.