|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.functions.neural.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. |
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London