|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.functions.neural.LinearUnit
public class LinearUnit
This can be used by the neuralnode to perform all it's computations (as a Linear unit).
| Constructor Summary | |
|---|---|
LinearUnit()
|
|
| 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 LinearUnit()
| Method Detail |
|---|
public double outputValue(NeuralNode node)
outputValue in interface NeuralMethodnode - The node to calculate the value for.
public double errorValue(NeuralNode node)
errorValue in interface NeuralMethodnode - The node to calculate the error for.
public void updateWeights(NeuralNode node,
double learn,
double momentum)
updateWeights in interface NeuralMethodnode - 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 | |||||||||