|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.functions.neural.SigmoidUnit
public class SigmoidUnit
This can be used by the neuralnode to perform all it's computations (as a sigmoid unit).
Constructor Summary | |
---|---|
SigmoidUnit()
|
Method Summary | |
---|---|
double |
errorValue(NeuralNode node)
This function calculates what the error value should be. |
java.lang.String |
getRevision()
Returns the revision string. |
double |
outputValue(NeuralNode node)
This function calculates what the output value should be. |
void |
updateWeights(NeuralNode node,
double learn,
double momentum)
This function will calculate what the change in weights should be and also update them. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SigmoidUnit()
Method Detail |
---|
public double outputValue(NeuralNode node)
outputValue
in interface NeuralMethod
node
- The node to calculate the value for.
public double errorValue(NeuralNode node)
errorValue
in interface NeuralMethod
node
- The node to calculate the error for.
public void updateWeights(NeuralNode node, double learn, double momentum)
updateWeights
in interface NeuralMethod
node
- The node to update the weights for.learn
- The learning rate to use.momentum
- The momentum to use.public java.lang.String getRevision()
getRevision
in interface RevisionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |