latest version v1.9 - last update 10 Apr 2010 |
LVQ-Net. More...
#include <ltiLvq.h>
Classes | |
class | layer |
lvq layer More... | |
class | lvq1TrainFunctor |
LVQ1. More... | |
class | lvq3TrainFunctor |
LVQ3. More... | |
class | lvq4TrainFunctor |
LVQ4. More... | |
class | maxDistInitFunctor |
maximum distance initialization More... | |
class | olvq1TrainFunctor |
OLVQ1. More... | |
class | olvq3TrainFunctor |
OLVQ3. More... | |
class | parameters |
the parameters for the class classifier More... | |
class | randInitFunctor |
random initialization More... | |
class | trainFunctor |
base class of training functors for the lvq networks More... | |
Public Member Functions | |
lvq () | |
lvq (const lvq &other) | |
~lvq () | |
bool | train (const dmatrix &input, const ivector &ids) |
bool | classify (const dvector &featurem, outputVector &result) const |
int | getDimOutputLayer () const |
void | setTestSet (const dmatrix &input, const ivector &ids) |
void | setTrainSet2 (const dmatrix &input, const ivector &ids) |
void | calcObjProbs (const ivector &ids, const dmatrix &feats, stdLayer::distancePropFunctor &distProp) |
lvq & | copy (const lvq &other) |
lvq & | operator= (const lvq &other) |
virtual classifier * | clone () const |
const parameters & | getParameters () const |
LVQ-Net.
lti::lvq::lvq | ( | ) |
Constructor.
lti::lvq::lvq | ( | const lvq & | other | ) |
Copy constructor.
lti::lvq::~lvq | ( | ) |
Destructor.
void lti::lvq::calcObjProbs | ( | const ivector & | ids, | |
const dmatrix & | feats, | |||
stdLayer::distancePropFunctor & | distProp | |||
) |
Calculate object probabilities with given features.
bool lti::lvq::classify | ( | const dvector & | featurem, | |
outputVector & | result | |||
) | const [virtual] |
Propagation.
Propagates feature vector through the net
Implements lti::supervisedInstanceClassifier.
virtual classifier* lti::lvq::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::classifier.
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::supervisedInstanceClassifier.
Referenced by operator=().
int lti::lvq::getDimOutputLayer | ( | ) | const [inline] |
dimension of the output layer
return the dimensions of the output layer
References getParameters(), and lti::lvq::parameters::nbNeuronsPerClass.
const parameters& lti::lvq::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::supervisedInstanceClassifier.
Referenced by getDimOutputLayer().
Alias for copy.
other | the functor to be copied |
Reimplemented from lti::supervisedInstanceClassifier.
References copy().
Gets the test-data for training statistics.
Gets the disjunct training data for object probabilities.
Supervised training.
(LVQ) The vectors in the input
sequence must be trained using as "known" classes the values given in ids
.
input | the sequence of input vectors | |
ids | the output classes ids for the input vectors. |
Implements lti::supervisedInstanceClassifier.