|
Neural Network Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.practicalstudies.neural.BackpropagationWeightAdjustment
Encapsulates the function for adjusting connection weights for backpropagation training.
WeightAdjustmentFunction| Constructor Summary | |
BackpropagationWeightAdjustment()
Constructor using a default learning rate of 0.5 and a default momentum coefficient of 0.5. |
|
BackpropagationWeightAdjustment(double learningRate,
double momentumCoefficient)
Constructor using specified learning rate and momentum coefficient values. |
|
| Method Summary | |
void |
adjustConnectionWeight(WeightedConnection connection)
Adjusts the weight of a WeightedConnection
based on the backpropagation algorithm. |
double |
getLearningRate()
|
double |
getMomentumCoefficient()
|
void |
setLearningRate(double learningRate)
Specify the learning rate. |
void |
setMomentumCoefficient(double momentumCoefficient)
Specify the momentum coefficient, which is the fraction of the previous weight change to apply during the current adjustment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BackpropagationWeightAdjustment()
setLearningRate,
setMomentumCoefficient
public BackpropagationWeightAdjustment(double learningRate,
double momentumCoefficient)
setLearningRate,
setMomentumCoefficient| Method Detail |
public void adjustConnectionWeight(WeightedConnection connection)
WeightedConnection
based on the backpropagation algorithm.
adjustConnectionWeight in interface WeightAdjustmentFunctionpublic double getLearningRate()
public void setLearningRate(double learningRate)
Specify the learning rate.
A learning rate of one will apply a correction to the connection weight sufficient to offset all of
the error in the output of the particular WeightedConnection. However,
while large learning rates will lead to rapid network learning, they also exaggerate the influence
of local minima, leading to greater oscillations in network output.
public double getMomentumCoefficient()
public void setMomentumCoefficient(double momentumCoefficient)
Specify the momentum coefficient, which is the fraction of the previous weight change to apply during the current adjustment.
On steep gradients, a positive momentum coefficient will speed learning, but near a minimum it will only lead to oscillations.
|
PracticalStudies.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||