|
|
All Packages Class Hierarchy This Package Previous Next Index havBpNet:J Home Page
java.lang.Object
|
+----havNN.havBpNet.havBpNode
|
+----havNN.havBpNet.havBpLinearNode
public havBpLinearNode(int l_type)
public havBpLinearNode(StreamTokenizer in) throws IOException
public void Cycle()
y = SUM(W[i] * X[i]) ; i = 0, n
V = f(y) = 1.0(y)
... where y = total (raw) input to the node
n is the index of the last input of the node
V is the final activition value of the node
W[i] is the node's ith input weight
X[i] is the activation value of the node's ith input
public void CalculateError()
In an havOUTPUT layer, the node's error is simply the difference between the node's expected and activation values multiplied by the derivative of the Linear function. If the resulting value is below the node's error threshold, then the node's error is set to 0.0.
In an havHIDDEN layer, the node's error is calculated as the sum of the weighted errors in the node's output nodes multiplied by the derivative of the Linear function as follows...
E = SUM(W[i] * O[i]) * f'(f(y)) ; i = 0, n
... where E is the node's final calculated error
n is the index of the last output of the node
W[i] is the weight between the node and it's ith output
O[i] is the error of the node's ith output
y is the node's total input value (raw)
f(y) is the node's activation value
f'(f(y)) is the derivative of the node's activation value such that...
f'(f(y)) = 1.0
All Packages Class Hierarchy This Package Previous Next Index
Copyright © 1998 by hav.Software. All Rights Reserved.