38 NeuralGas(
const std::string&
name =
"NeuralGas",
const std::string& revision =
"$Id$");
45 const std::string&
name=
"NeuralGas",
46 const std::string& revision =
"$Id$");
55 virtual void init(
unsigned int inputDim,
unsigned int outputDim,
56 double unit_map = 0.0,
RandGen* randGen = 0);
67 double learnRateFactor = 1);
69 virtual void damp(
double damping) {
return;}
71 virtual unsigned int getInputDim()
const {
return weights[0].getM();}
72 virtual unsigned int getOutputDim()
const {
return weights.size();}
75 virtual bool store(FILE* f)
const;
92 std::vector<matrix::Matrix> weights;
93 std::vector<matrix::Matrix> diffvectors;
Matrix type.
Definition: matrix.h:65
virtual const matrix::Matrix learn(const matrix::Matrix &input, const matrix::Matrix &nom_output, double learnRateFactor=1)
Definition: neuralgas.cpp:104
virtual void init(unsigned int inputDim, unsigned int outputDim, double unit_map=0.0, RandGen *randGen=0)
initialised som
Definition: neuralgas.cpp:50
virtual const matrix::Matrix process(const matrix::Matrix &input)
passive processing of the input (this function is not constant since a recurrent network for example ...
Definition: neuralgas.cpp:94
virtual void printWeights(FILE *f) const
Definition: neuralgas.cpp:80
double eps
initial learning rate for weight update
Definition: neuralgas.h:89
iparamkey name
Definition: inspectable.h:251
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
virtual unsigned int getOutputDim() const
returns the number of output neurons
Definition: neuralgas.h:72
virtual bool store(FILE *f) const
stores the object to the given file stream (ASCII preferred).
Definition: neuralgas.cpp:150
virtual void damp(double damping)
damps the weights and the biases by multiplying (1-damping)
Definition: neuralgas.h:69
void updateCellSizes()
updates the cell sizes
Definition: neuralgas.cpp:132
neural gas class.
Definition: neuralgas.h:36
virtual unsigned int getInputDim() const
returns the number of input neurons
Definition: neuralgas.h:71
virtual void printCellsizes(FILE *f) const
Definition: neuralgas.cpp:90
static double activationfunction(double rdfsize, double d)
activation function (rbf)
Definition: neuralgas.cpp:70
NeuralGas(const std::string &name="NeuralGas", const std::string &revision="$Id$")
Definition: neuralgas.cpp:33
abstract class (interface) for a model that can be used by a controller
Definition: abstractmodel.h:34
virtual bool restore(FILE *f)
loads the object from the given file stream (ASCII preferred).
Definition: neuralgas.cpp:165
virtual ~NeuralGas()
Definition: neuralgas.h:47