All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.classifiers.neural.LinearUnit
java.lang.Object
|
+----weka.classifiers.neural.LinearUnit
- public class LinearUnit
- extends java.lang.Object
- implements NeuralMethod
This can be used by the
neuralnode to perform all it's computations (as a Linear unit).
- Version:
- $Revision: 1.2 $
- Author:
- Malcolm Ware (mfw4@cs.waikato.ac.nz)
LinearUnit()
-
errorValue(NeuralNode)
- This function calculates what the error value should be.
outputValue(NeuralNode)
- This function calculates what the output value should be.
updateWeights(NeuralNode, double, double)
- This function will calculate what the change in weights should be
and also update them.
LinearUnit
public LinearUnit()
outputValue
public double outputValue(NeuralNode node)
This function calculates what the output value should be.
- Parameters:
node
- The node to calculate the value for.
- Returns:
- The value.
errorValue
public double errorValue(NeuralNode node)
This function calculates what the error value should be.
- Parameters:
node
- The node to calculate the error for.
- Returns:
- The error.
updateWeights
public void updateWeights(NeuralNode node,
double learn,
double momentum)
This function will calculate what the change in weights should be
and also update them.
- Parameters:
node
- The node to update the weights for.
learn
- The learning rate to use.
momentum
- The momentum to use.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home