public class GrowingNeuralGas extends java.lang.Object implements VectorQuantizer
Compared to Neural Gas, GNG has the following distinctions:
KMeans
,
NeuralGas
,
NeuralMap
,
Serialized FormOUTLIER
Constructor and Description |
---|
GrowingNeuralGas(int d)
Constructor.
|
GrowingNeuralGas(int d,
double epsBest,
double epsNeighbor,
int edgeLifetime,
int lambda,
double alpha,
double beta)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Neuron[] |
neurons()
Returns the neurons in the network.
|
double[] |
quantize(double[] x)
Quantize a new observation.
|
void |
update(double[] x)
Update the codebook with a new observation.
|
public GrowingNeuralGas(int d)
d
- the dimensionality of signals.public GrowingNeuralGas(int d, double epsBest, double epsNeighbor, int edgeLifetime, int lambda, double alpha, double beta)
d
- the dimensionality of signals.epsBest
- the learning rate to update best matching neuron.epsNeighbor
- the learning rate to update neighbors of best matching neuron.edgeLifetime
- the maximum age of edges.lambda
- if the number of input signals so far is an integer multiple
of lambda, insert a new neuron.alpha
- decrease error variables by multiplying them with alpha
during inserting a new neuron.beta
- decrease all error variables by multiply them with beta.public void update(double[] x)
VectorQuantizer
update
in interface VectorQuantizer
public Neuron[] neurons()
public double[] quantize(double[] x)
VectorQuantizer
quantize
in interface VectorQuantizer
x
- a new observation.