public final class LinearActivationFunction extends AbstractActivationFunction
| Constructor and Description |
|---|
LinearActivationFunction() |
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double input)
Applies the activation function on the given element.
|
de.jungblut.math.DoubleMatrix |
apply(de.jungblut.math.DoubleMatrix matrix)
Applies the gradient of the activation function on each element in the
given matrix.
|
de.jungblut.math.DoubleVector |
apply(de.jungblut.math.DoubleVector vector)
Applies the activation function on each element in the given vector.
|
double |
gradient(double input)
Applies the gradient of the activation function on the given element.
|
de.jungblut.math.DoubleMatrix |
gradient(de.jungblut.math.DoubleMatrix matrix)
Applies the gradient of the activation function on each element in the
given matrix.
|
de.jungblut.math.DoubleVector |
gradient(de.jungblut.math.DoubleVector vector)
Applies the gradient of the activation function on each element in the
given vector.
|
newInstance, newInstance, toStringpublic double apply(double input)
ActivationFunctionpublic double gradient(double input)
ActivationFunctionpublic de.jungblut.math.DoubleVector apply(de.jungblut.math.DoubleVector vector)
ActivationFunctionapply in interface ActivationFunctionapply in class AbstractActivationFunctionvector - the vector to apply this function on.public de.jungblut.math.DoubleMatrix apply(de.jungblut.math.DoubleMatrix matrix)
ActivationFunctionapply in interface ActivationFunctionapply in class AbstractActivationFunctionmatrix - the matrix to apply this function on.public de.jungblut.math.DoubleVector gradient(de.jungblut.math.DoubleVector vector)
ActivationFunctiongradient in interface ActivationFunctiongradient in class AbstractActivationFunctionvector - the vector to apply this function on.public de.jungblut.math.DoubleMatrix gradient(de.jungblut.math.DoubleMatrix matrix)
ActivationFunctiongradient in interface ActivationFunctiongradient in class AbstractActivationFunctionmatrix - the matrix to apply this function on.Copyright © 2016. All rights reserved.