org.encog.neural.networks.training.cpn
Class FindCPN

java.lang.Object
  extended by org.encog.neural.networks.training.cpn.FindCPN

public class FindCPN
extends Object

Find the parts of a CPN network.


Constructor Summary
FindCPN(BasicNetwork network)
          Construct the object and find the parts of the network.
 
Method Summary
 Layer getInputLayer()
           
 Layer getInstarLayer()
           
 Synapse getInstarSynapse()
           
 Layer getOutstarLayer()
           
 Synapse getOutstarSynapse()
           
 int winner(NeuralData data)
          Calculate the winning neuron from the data, this is the neuron that has the highest output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindCPN

public FindCPN(BasicNetwork network)
Construct the object and find the parts of the network.

Parameters:
network - The network to train.
Method Detail

getInputLayer

public Layer getInputLayer()
Returns:
The input layer.

getInstarLayer

public Layer getInstarLayer()
Returns:
The instar layer.

getInstarSynapse

public Synapse getInstarSynapse()
Returns:
The instar synapse.

getOutstarLayer

public Layer getOutstarLayer()
Returns:
The outstar layer.

getOutstarSynapse

public Synapse getOutstarSynapse()
Returns:
The outstar synapse.

winner

public int winner(NeuralData data)
Calculate the winning neuron from the data, this is the neuron that has the highest output.

Parameters:
data - The data to use to determine the winning neuron.
Returns:
The winning neuron index, or -1 if no winner.


Copyright © 2011. All Rights Reserved.