|
||||||||||
| 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.som.SOM
public class SOM
A self organizing map neural network.
| Field Summary | |
|---|---|
static double |
VERYSMALL
Do not allow patterns to go below this very small number. |
| Constructor Summary | |
|---|---|
SOM()
Default constructor. |
|
SOM(int inputCount,
int outputCount)
The constructor. |
|
| Method Summary | |
|---|---|
double |
calculateError(MLDataSet data)
Calculate the error of the ML method, given a dataset. |
int |
classify(MLData input)
Classify the input into a group. |
int |
getInputCount()
|
int |
getOutputCount()
|
Matrix |
getWeights()
|
void |
reset()
Reset the weights. |
void |
reset(int seed)
Reset the weights with a seed. |
void |
setWeights(Matrix weights)
|
void |
updateProperties()
Update any objeccts when a property changes. |
int |
winner(MLData input)
An alias for the classify method, kept for compatibility with earlier versions of Encog. |
| 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 |
| Field Detail |
|---|
public static final double VERYSMALL
| Constructor Detail |
|---|
public SOM()
public SOM(int inputCount,
int outputCount)
inputCount - Number of input neuronsoutputCount - Number of output neurons| Method Detail |
|---|
public final double calculateError(MLDataSet data)
calculateError in interface MLErrordata - The dataset.
public final int classify(MLData input)
classify in interface MLClassificationinput - The input data to classify.
public final int getInputCount()
getInputCount in interface MLInputpublic final int getOutputCount()
getOutputCount in interface MLOutputpublic final Matrix getWeights()
public final void reset()
reset in interface MLResettablepublic final void reset(int seed)
reset in interface MLResettableseed - The seed value.public final void setWeights(Matrix weights)
weights - the weights to setpublic final void updateProperties()
updateProperties in interface MLPropertiesupdateProperties in class BasicMLpublic final int winner(MLData input)
input - The input pattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||