public abstract class AbstractActivationFunction extends Object implements ActivationFunction
| Constructor and Description |
|---|
AbstractActivationFunction() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
protected de.jungblut.math.DoubleMatrix |
newInstance(de.jungblut.math.DoubleMatrix mat) |
protected de.jungblut.math.DoubleVector |
newInstance(de.jungblut.math.DoubleVector v) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, gradientpublic de.jungblut.math.DoubleVector apply(de.jungblut.math.DoubleVector vector)
ActivationFunctionapply in interface ActivationFunctionvector - the vector to apply this function on.public de.jungblut.math.DoubleMatrix apply(de.jungblut.math.DoubleMatrix matrix)
ActivationFunctionapply in interface ActivationFunctionmatrix - the matrix to apply this function on.public de.jungblut.math.DoubleVector gradient(de.jungblut.math.DoubleVector vector)
ActivationFunctiongradient in interface ActivationFunctionvector - the vector to apply this function on.public de.jungblut.math.DoubleMatrix gradient(de.jungblut.math.DoubleMatrix matrix)
ActivationFunctiongradient in interface ActivationFunctionmatrix - the matrix to apply this function on.protected de.jungblut.math.DoubleMatrix newInstance(de.jungblut.math.DoubleMatrix mat)
protected de.jungblut.math.DoubleVector newInstance(de.jungblut.math.DoubleVector v)
Copyright © 2016. All rights reserved.