LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::rbf Class Reference

class which implements RBF networks. More...

#include <ltiRbf.h>

Inheritance diagram for lti::rbf:
Inheritance graph
[legend]
Collaboration diagram for lti::rbf:
Collaboration graph
[legend]

List of all members.

Classes

class  initFunctor1
 initialization functor for rbf More...
class  initFunctor2
 initialization functor for rbf networks More...
class  layer1
 layer 1 for rbf networks More...
class  layer2
 layer 2 for rbf networks More...
class  parameters
 parameters class for the RBF-Networks More...

Public Member Functions

 rbf ()
 rbf (const rbf &other)
 rbf (const parameters &param)
 ~rbf ()
const char * getTypeName () const
bool train (const dmatrix &input, const ivector &ids)
bool classify (const lti::dvector &feature, outputVector &result) const
int getDimOutputLayer () const
void setTestSet (const dmatrix &input, const ivector &ids)
void setTrainSet2 (const dmatrix &input, const ivector &ids)
const parametersgetParameters () const
rbfcopy (const rbf &other)
rbfoperator= (const rbf &other)
virtual classifierclone () const

Methods to access inner data.

Should not be used for anything but Axioms or others JNI interface to use this class.



layer1 rbf1
layer2 rbf2
int sizeIn
int sizeOut
ivector trainID
ivector internToReal
std::map< int, int > realToIntern
dmatrix features
dmatrix train2Features
ivector train2Ids
dvector sigmas
dmatrix testFeatures
ivector testIDs
ivector trainStatIDs
stdLayer::distancePropFunctordistProp
stdLayer::dotPropFunctordotProp
stdLayer::gaussActFunctorgaussAct
stdLayer::sigmoidActFunctorsigmoidAct
std::map< int, dvectortargetVec
const dmatrixgetWeights1 ()
const dvectorgetSigmas1 ()
const dmatrixgetWeights2 ()
const ivectorgetIds ()
void setSigmas (const dvector &s)
void setLayer1Data (const dmatrix &weights)
void setLayer2Data (const dmatrix &weights, const ivector &ids)
void initNet (const int &inSize, const int &outSize)
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)
bool calcObjProbs (ivector &ids, dmatrix &feats, stdLayer::distancePropFunctor &distProp)

Detailed Description

class which implements RBF networks.


Constructor & Destructor Documentation

lti::rbf::rbf (  ) 

Constructor.

lti::rbf::rbf ( const rbf other  ) 

Copy constructor.

lti::rbf::rbf ( const parameters param  ) 

Create with the given parameters.

lti::rbf::~rbf (  ) 

Destructor.


Member Function Documentation

bool lti::rbf::calcObjProbs ( ivector ids,
dmatrix feats,
stdLayer::distancePropFunctor distProp 
) [protected]

Calculate object probabilities with given features.

bool lti::rbf::classify ( const lti::dvector feature,
outputVector result 
) const [virtual]

Propagates a feature vector through the network.

The winner is set to the unit with the maximum value. If an error occurs, the outputVectors recect flag is set to true and false is returned.

Implements lti::supervisedInstanceClassifier.

virtual classifier* lti::rbf::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::classifier.

rbf& lti::rbf::copy ( const rbf other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::supervisedInstanceClassifier.

Referenced by operator=().

int lti::rbf::getDimOutputLayer (  )  const [inline]

Get dimensions of the output layer.

References sizeOut.

const ivector& lti::rbf::getIds (  ) 

Returns the IDs of each neuron of the network.

const parameters& lti::rbf::getParameters (  )  const

returns used parameters

Reimplemented from lti::supervisedInstanceClassifier.

const dvector& lti::rbf::getSigmas1 (  ) 

Returns the sigmas of layer1.

const char* lti::rbf::getTypeName (  )  const [virtual]

get type name

Reimplemented from lti::supervisedInstanceClassifier.

const dmatrix& lti::rbf::getWeights1 (  ) 

Returns the weights of layer1.

const dmatrix& lti::rbf::getWeights2 (  ) 

Returns the weights of layer2.

void lti::rbf::initNet ( const int &  inSize,
const int &  outSize 
)

Set the size and init functors after data is transmitted to layers and sigmas are set.

rbf& lti::rbf::operator= ( const rbf other  )  [inline]

Alias for copy.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::supervisedInstanceClassifier.

References copy().

virtual bool lti::rbf::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

read the rbf classifier from the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::classifier.

void lti::rbf::setLayer1Data ( const dmatrix weights  ) 

Set data of layer1.

void lti::rbf::setLayer2Data ( const dmatrix weights,
const ivector ids 
)

Set data of layer2.

void lti::rbf::setSigmas ( const dvector s  ) 

Set the sigmas for layer 1.

void lti::rbf::setTestSet ( const dmatrix input,
const ivector ids 
)

object probabilities are not used

Get the test-data for training statistics

void lti::rbf::setTrainSet2 ( const dmatrix input,
const ivector ids 
)

Gets the disjunct training data for object probabilities.

bool lti::rbf::train ( const dmatrix input,
const ivector ids 
) [virtual]

Training.

Mainly organization of data and training algorithms

Implements lti::supervisedInstanceClassifier.

virtual bool lti::rbf::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

write the rbf classifier in the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::classifier.


Member Data Documentation

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

layer1 lti::rbf::rbf1 [protected]

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

layer2 lti::rbf::rbf2 [protected]

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

std::map<int,int> lti::rbf::realToIntern [protected]

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

int lti::rbf::sizeIn [protected]

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

int lti::rbf::sizeOut [protected]

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Referenced by getDimOutputLayer().

std::map<int,dvector> lti::rbf::targetVec [protected]

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters

Load information about the network from a '.rbf' file.

Deprecated:
Use read() instead

Save information about the network in a '.rbf' file

Deprecated:
Use write() instead

Load information about the network from a binary '.rbf' file

Deprecated:
Use read() instead

Save information about the network in a binary '.rbf' file

Deprecated:
Use write() instead

returns used parameters


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:26:56 2010 for LTI-Lib by Doxygen 1.6.1