|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.activation.BasicActivationFunction
org.encog.neural.activation.ActivationCompetitive
public class ActivationCompetitive
An activation function that only allows a specified number, usually one, of the out-bound connection to win. These connections will share in the sum of the output, whereas the other neurons will receive zero. This activation function can be useful for "winner take all" layers.
| Constructor Summary | |
|---|---|
ActivationCompetitive()
Create a competitive activation function with one winner allowed. |
|
ActivationCompetitive(int winners)
Create a competitive activation function with the specified maximum number of winners. |
|
| Method Summary | |
|---|---|
void |
activationFunction(double[] d)
Perform the activation function. |
java.lang.Object |
clone()
|
Persistor |
createPersistor()
Create a Persistor for this activation function. |
void |
derivativeFunction(double[] d)
Implements the activation function. |
int |
getMaxWinners()
|
boolean |
hasDerivative()
|
| Methods inherited from class org.encog.neural.activation.BasicActivationFunction |
|---|
getDescription, getName, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivationCompetitive()
public ActivationCompetitive(int winners)
winners - The maximum number of winners that this function supports.| Method Detail |
|---|
public void activationFunction(double[] d)
d - The data to be given to the activation function.public java.lang.Object clone()
clone in class BasicActivationFunctionpublic Persistor createPersistor()
BasicActivationFunction
createPersistor in interface EncogPersistedObjectcreatePersistor in class BasicActivationFunctionpublic void derivativeFunction(double[] d)
d - The input array to the activation function.public int getMaxWinners()
public boolean hasDerivative()
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||