public class ThreadedUnweightedBackPropagationMethod extends UnweightedBackPropagationMethod implements BackPropagationMethod
The only instance in which this is worth using instead of an unthreaded backpropagation method is where many threads may run in parallel (such as a quad-core chip) and where each output neuron is likely to have many edges leading into it. The overheads involved in the creation of a thread per neuron are worthwhile only when many edges need to be processed per neuron.
learningRate| Constructor and Description |
|---|
ThreadedUnweightedBackPropagationMethod(double p_learningRate)
Creates a new ThreadedUnweightedBackPropagationMethod with the given learning rate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
backPropagateHidden(NeuronLayer downstream,
ReceptiveNeuron[] neurons)
Back propagates a hidden layer relative to the layer immediately following it.
|
double |
backPropagateOutputs(double[] desirable,
ReceptiveNeuron[] neurons)
This function back-propogates output nodes.
|
getLearningRate, setLearningRatepublic ThreadedUnweightedBackPropagationMethod(double p_learningRate)
p_learningRate - The learning rate to use.public void backPropagateHidden(NeuronLayer downstream, ReceptiveNeuron[] neurons)
backPropagateHidden in interface BackPropagationMethodbackPropagateHidden in class UnweightedBackPropagationMethoddownstream - The layer downstream from thisneurons - The neurons in the layer to backprop.public double backPropagateOutputs(double[] desirable,
ReceptiveNeuron[] neurons)
backPropagateOutputs in interface BackPropagationMethodbackPropagateOutputs in class UnweightedBackPropagationMethoddesirable - The desirable set of inputs to adapt toneurons - The neurons to backpropagateIndexOutOfBoundsException - in the event that the number of desirable outputs does not match that of the net.