Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

AI.NeuralNetworks
Class DistributedBackErrorPropagation  view DistributedBackErrorPropagation download DistributedBackErrorPropagation.java

java.lang.Object
  extended byAI.NeuralNetworks.FeedForwardNetwork
      extended byAI.NeuralNetworks.BackErrorPropagation
          extended byAI.NeuralNetworks.DistributedBackErrorPropagation
All Implemented Interfaces:
NeuralNetworkTeacher

public class DistributedBackErrorPropagation
extends BackErrorPropagation
implements NeuralNetworkTeacher

This Class is a nerual network with a multiple layer feed forward architecture where a distributed version of the back error propagation algorithm could be run


Field Summary
protected  java.io.BufferedWriter bw
           
protected  java.util.Set hosts
           
protected  java.net.Socket sock
           
 
Fields inherited from class AI.NeuralNetworks.BackErrorPropagation
COMMENT_TOKEN, DEFAULT_LEARNING_RATE, DEFAULT_MAXIMUM_EPOCH, DEFAULT_MOMENTUM_RATE, DEFAULT_STOP_ERROR, END_TOKEN, INPUT_TOKEN, learningRate, maximumEpoch, momentumRate, notifyError, OUTPUT_TOKEN, stopError, VECTOR_TOKEN
 
Fields inherited from class AI.NeuralNetworks.FeedForwardNetwork
HEXADECIMAL_VERSION, INPUT_LAYER_TOKEN, layers, NUMBER_OF_LAYERS_TOKEN, VERSION, VERSION_TOKEN, WEIGHTED_LAYER_TOKEN, WEIGHTS_TOKEN
 
Constructor Summary
DistributedBackErrorPropagation(FeedForwardNetwork network)
          Creates a new DistributedBackErrorPropagation instance
DistributedBackErrorPropagation(FeedForwardNetwork network, java.io.BufferedWriter bw)
          Creates a new DistributedBackErrorPropagation instance
 
Method Summary
 void addDeltaWeights()
          Adds the all deltaWeights to the weights
private static java.lang.String niceArray(float[] array)
           
private static java.lang.String niceArray(int[] array)
           
 void parseDeltaWeights(java.io.BufferedReader br)
          adds the delta weights form br to the local delta weights
 void sendDeltaWeights()
           
 void sendError(float error)
           
private static void showList(java.util.LinkedList pat)
           
 float trainNetwork(java.util.LinkedList trainingPatterns)
          Trains the network with the given patterns
 
Methods inherited from class AI.NeuralNetworks.BackErrorPropagation
adjustDeltaWeights, getVectors, getVectorsFormFile, parseStructure, resetDeltaWeights, setLearnningRate, setMaximumEpoch, setNotifyError, setStopError
 
Methods inherited from class AI.NeuralNetworks.FeedForwardNetwork
inputSize, netToIntArrey, outputSize, runVector, save, saveToFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hosts

protected java.util.Set hosts

sock

protected java.net.Socket sock

bw

protected java.io.BufferedWriter bw
Constructor Detail

DistributedBackErrorPropagation

public DistributedBackErrorPropagation(FeedForwardNetwork network,
                                       java.io.BufferedWriter bw)
Creates a new DistributedBackErrorPropagation instance


DistributedBackErrorPropagation

public DistributedBackErrorPropagation(FeedForwardNetwork network)
Creates a new DistributedBackErrorPropagation instance

Method Detail

trainNetwork

public float trainNetwork(java.util.LinkedList trainingPatterns)
                   throws UnexpectedInputArraySizeException
Trains the network with the given patterns

Specified by:
trainNetwork in interface NeuralNetworkTeacher
Overrides:
trainNetwork in class BackErrorPropagation

sendError

public void sendError(float error)

sendDeltaWeights

public void sendDeltaWeights()

addDeltaWeights

public void addDeltaWeights()
Adds the all deltaWeights to the weights

Overrides:
addDeltaWeights in class BackErrorPropagation

parseDeltaWeights

public void parseDeltaWeights(java.io.BufferedReader br)
adds the delta weights form br to the local delta weights


niceArray

private static java.lang.String niceArray(float[] array)

niceArray

private static java.lang.String niceArray(int[] array)

showList

private static void showList(java.util.LinkedList pat)