|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.BasicML
org.encog.neural.cpn.CPN
public class CPN
Counterpropagation Neural Networks (CPN) were developed by Professor Robert Hecht-Nielsen in 1987. CPN neural networks are a hybrid neural network, employing characteristics of both a feedforward neural network and a self-organzing map (SOM). The CPN is composed of three layers, the input, the instar and the outstar. The connection from the input to the instar layer is competitive, with only one neuron being allowed to win. The connection between the instar and outstar is feedforward. The layers are trained separately, using instar training and outstar training. The CPN network is good at regression.
| Constructor Summary | |
|---|---|
CPN(int theInputCount,
int theInstarCount,
int theOutstarCount,
int theWinnerCount)
Construct the counterpropagation neural network. |
|
| Method Summary | |
|---|---|
double |
calculateError(MLDataSet data)
Calculate the error for this neural network. |
MLData |
compute(MLData input)
Compute regression. |
MLData |
computeInstar(MLData input)
Compute the instar layer. |
MLData |
computeOutstar(MLData input)
Compute the outstar layer. |
int |
getInputCount()
|
int |
getInstarCount()
|
int |
getOutputCount()
|
int |
getOutstarCount()
|
Matrix |
getWeightsInputToInstar()
|
Matrix |
getWeightsInstarToOutstar()
|
int |
getWinnerCount()
|
void |
reset()
Reset the weights. |
void |
reset(int seed)
Reset the weights with a seed. |
void |
updateProperties()
Update any objeccts when a property changes. |
| Methods inherited from class org.encog.ml.BasicML |
|---|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CPN(int theInputCount,
int theInstarCount,
int theOutstarCount,
int theWinnerCount)
theInputCount - The number of input neurons.theInstarCount - The number of instar neurons.theOutstarCount - The number of outstar neurons.theWinnerCount - The winner count.| Method Detail |
|---|
public final double calculateError(MLDataSet data)
calculateError in interface MLErrordata - The training set.
public final MLData compute(MLData input)
compute in interface MLRegressioninput - The input data.
public final MLData computeInstar(MLData input)
input - The input.
public final MLData computeOutstar(MLData input)
input - The input.
public final int getInputCount()
getInputCount in interface MLInputpublic final int getInstarCount()
public final int getOutputCount()
getOutputCount in interface MLOutputpublic final int getOutstarCount()
public final Matrix getWeightsInputToInstar()
public final Matrix getWeightsInstarToOutstar()
public final int getWinnerCount()
public final void reset()
reset in interface MLResettablepublic final void reset(int seed)
reset in interface MLResettableseed - The seed value.public void updateProperties()
updateProperties in interface MLPropertiesupdateProperties in class BasicML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||