Class Relu
- java.lang.Object
-
- com.runemate.game.internal.input.mlp.activation.impl.Relu
-
- All Implemented Interfaces:
ActivationFunction
public class Relu extends java.lang.Object implements ActivationFunction
Rectified linear unit f(x) = max(0, x)
-
-
Constructor Summary
Constructors Constructor Description Relu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
activate(double x)
Applies the activation function onto x and returns yjava.lang.String
getIdentifier()
Future for resolving activations via functions
-
-
-
Method Detail
-
activate
public double activate(double x)
Applies the activation function onto x and returns y- Specified by:
activate
in interfaceActivationFunction
- Parameters:
x
- x- Returns:
- y
-
getIdentifier
public java.lang.String getIdentifier()
Future for resolving activations via functions- Specified by:
getIdentifier
in interfaceActivationFunction
- Returns:
- the activation identifier
-
-