public interface RNGModel
This is an interface for the result of a Relational Neural Gas algorithm. It encapsulates two fundamental properties of a RNG algorithm: 1.) It assigns data points to clusters. 2.) Each cluster has a prototype, which is represented as a convex combination. We represent data points here only in terms of indices, numbered from 0 to m-1, where m is the number of data points. Similarly, we represent clusters as indices, from 0 to K-1, where K is the number of clusters/prototypes.
As representation of prototypes, we choose the alpha-vector of convex coefficients. Each prototype in the RNG framework is given as a convex combination of the data points, where the coefficients are positive real numbers that sum up to 1. Note, that there are techniques which make the coefficient vectors sparse (e.g. median approaches, which select only one alphai = 1).
| Modifier and Type | Method and Description |
|---|---|
double[][] |
getConvexCoefficients()
Returns the convex coefficients representing all prototypes.
|
double[][] |
getDistancesToPrototypes()
Returns the matrix of distances from all training data points to all prototypes.
|
double[] |
getNormalizationTerms()
Returns a K x 1 vector containing the normalization terms for for relational distances to
each prototype.
|
int |
getNumberOfDatapoints()
Returns the number of datapoints N.
|
int |
getNumberOfPrototypes()
Returns the number of clusters/prototypes K.
|
int getNumberOfDatapoints()
int getNumberOfPrototypes()
double[][] getConvexCoefficients()
double[][] getDistancesToPrototypes()
double[] getNormalizationTerms()
Returns a K x 1 vector containing the normalization terms for for relational distances to each prototype. In particular, the distance of a data point x to prototype wk is given as
d(wk, x)² = Σi=1,...,m αk, i · d(x, xi)² - 0.5 · αk · D² · αkT
where x1, ..., xm are the training data points and D is the matrix of pairwise distances between all training data points. The k-th entry of the returned vector contains exactly the term
- 0.5 · αk · D² · αkT
Copyright (C) 2015-2017 Benjamin Paaßen, AG Machine Learning, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the GPL v. 3: https://gitlab.ub.uni-bielefeld.de/bpaassen/relational_neural_gas . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/