|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.engine.network.activation.ActivationLOG
public class ActivationLOG
An activation function based on the logarithm function. This type of activation function can be useful to prevent saturation. A hidden node of a neural network is said to be saturated on a given set of inputs when its output is approximately 1 or -1 "most of the time". If this phenomena occurs during training then the learning of the network can be slowed significantly since the error surface is very at in this instance.
Constructor Summary | |
---|---|
ActivationLOG()
Construct the activation function. |
Method Summary | |
---|---|
void |
activationFunction(double[] x,
int start,
int size)
Implements the activation function. |
ActivationFunction |
clone()
|
double |
derivativeFunction(double b,
double a)
Calculate the derivative. |
String |
getFactoryCode()
|
String[] |
getParamNames()
|
double[] |
getParams()
|
boolean |
hasDerivative()
|
void |
setParam(int index,
double value)
Set one of the params for this activation function. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActivationLOG()
Method Detail |
---|
public final void activationFunction(double[] x, int start, int size)
activationFunction
in interface ActivationFunction
x
- The input array to the activation function.start
- The starting index.size
- The number of values to calculate.public final ActivationFunction clone()
clone
in interface ActivationFunction
clone
in class Object
public final double derivativeFunction(double b, double a)
derivativeFunction
in interface ActivationFunction
b
- The number to calculate the derivative of, the number "before" the
activation function was applied.a
- The number "after" an activation function has been applied.
public final String[] getParamNames()
getParamNames
in interface ActivationFunction
public final double[] getParams()
getParams
in interface ActivationFunction
public final boolean hasDerivative()
hasDerivative
in interface ActivationFunction
public final void setParam(int index, double value)
setParam
in interface ActivationFunction
index
- The index of the param to set.value
- The value to set.public String getFactoryCode()
getFactoryCode
in interface ActivationFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |