public class KohonenFeatureMap extends Object
It is probably the most useful neural net type, if the learning process of the human brain shall be simulated. The "heart" of this type is the feature map, a neuron layer where neurons are organizing themselves according to certain input values. The type of this neural net is both feedforward (input layer to feature map) and feedback (feature map).
| Number of neuron layers | 1 input layer, 1 feature map |
| Input dimension | minimum: 1, maximum: 3 |
| Number of neurons in feature map | minimum: 1*1, maximum: N*M |
| Number of input values | minimum: 1, maximum: N |
| Weight matrices | Automatically created and initialized. One matrix connects input layer and feature map. The other matrix is not of the WeightMatrix type and connects the neurons of the feature map among themselves. |
| Biases | Not used |
| One learning step includes | Selection of a random input value, finding the most activated map neuron, changing of the weights |
| Constructor and Description |
|---|
KohonenFeatureMap()
Declares the object kfm to be of type KohonenFeatureMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectLayers(InputMatrix inputmatrix)
Connects each input neuron (automatically created, depending on the
dimension of the input matrix im) with each neuron of the feature map.
|
void |
createMapLayer(int i)
Creates the net's feature map with xSize*ySize map neurons.
|
void |
createMapLayer(int i,
int j)
Creates the net's feature map with xSize*ySize map neurons.
|
void |
decreaseActivationArea() |
boolean |
displayNow() |
void |
error(int i) |
boolean |
finishedLearning() |
double |
getActivationArea() |
String |
getElapsedTime()
Returns the time that elapsed since the learning process started.
|
double |
getInitActivationArea()
Returns the initial activation area of the feature map.
|
double |
getInitLearningRate()
Returns the initial learning rate of the net.
|
InputValue[] |
getInputValues() |
int |
getLearningCycle()
Returns the current learning cycle of the net.
|
double |
getLearningRate()
Returns the current learning rate of the net.
|
MapNeuron[] |
getMapNeurons() |
int |
getMapSizeX()
Returns the size of the feature map in x-dimension.
|
int |
getMapSizeY()
Returns the size of the feature map in y-dimension.
|
int |
getMaxLearningCycles() |
int |
getNumberOfWeights()
Returns the number of weights in the weight matrix that connects the
input neurons with the neurons of the feature map.
|
double |
getStopArea()
Returns the final activation area of the feature map.
|
float[][] |
getWeightValues()
Returns all weight values of the weight matrix that connects the input
neurons with the neurons of the feature map.
|
void |
incLearningCycle() |
void |
learn()
Performs one learning cycle.
|
void |
resetTime() |
void |
setActivationArea(double d) |
void |
setDisplayStep(int i) |
void |
setInitActivationArea(double d)
Sets the net's initial activation area to x.
|
void |
setInitLearningRate(double d)
Set initial learning rate.
|
void |
setLearningRate(double d) |
void |
setMaxLearningCycles(int i)
Sets the maximum number of learning cycles to x.
|
void |
setStopArea(double d)
Sets the net's final activation area to x.
|
double |
square(double d) |
public KohonenFeatureMap()
public void createMapLayer(int i)
i - public void createMapLayer(int i,
int j)
i - j - public void connectLayers(InputMatrix inputmatrix)
inputmatrix - public void setInitLearningRate(double d)
d - public double getInitLearningRate()
public void setInitActivationArea(double d)
d - public double getInitActivationArea()
public void setActivationArea(double d)
public void setStopArea(double d)
d - public double getStopArea()
public double getActivationArea()
public int getMapSizeX()
public int getMapSizeY()
public int getNumberOfWeights()
public float[][] getWeightValues()
public MapNeuron[] getMapNeurons()
public InputValue[] getInputValues()
public void decreaseActivationArea()
public void learn()
public boolean finishedLearning()
public void error(int i)
public double square(double d)
public void setLearningRate(double d)
public double getLearningRate()
public void setDisplayStep(int i)
public boolean displayNow()
public void resetTime()
public String getElapsedTime()
public void setMaxLearningCycles(int i)
i - public int getMaxLearningCycles()
public void incLearningCycle()
public int getLearningCycle()
SCaVis 2.2 ©