Public Member Functions

CKRR Class Reference


Detailed Description

Definition at line 55 of file KRR.h.

Inheritance diagram for CKRR:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CKRR ()
 CKRR (float64_t tau, CKernel *k, CLabels *lab)
virtual ~CKRR ()
void set_tau (float64_t t)
virtual bool train (CFeatures *data=NULL)
virtual CLabelsclassify ()
virtual float64_t classify_example (int32_t num)
virtual CLabelsclassify (CFeatures *data)
virtual bool load (FILE *srcfile)
virtual bool save (FILE *dstfile)
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

Constructor & Destructor Documentation

CKRR (  ) 

default constructor

Definition at line 21 of file KRR.cpp.

CKRR ( float64_t  tau,
CKernel k,
CLabels lab 
)

constructor

Parameters:
tau regularization constant tau
k kernel
lab labels

Definition at line 28 of file KRR.cpp.

~CKRR (  )  [virtual]

Definition at line 38 of file KRR.cpp.


Member Function Documentation

CLabels * classify (  )  [virtual]

classify regression

Returns:
resulting labels

Reimplemented from CKernelMachine.

Definition at line 97 of file KRR.cpp.

virtual CLabels* classify ( CFeatures data  )  [virtual]

classify objects

Parameters:
data (test)data to be classified
Returns:
classified labels

Reimplemented from CKernelMachine.

Definition at line 104 of file KRR.h.

float64_t classify_example ( int32_t  num  )  [virtual]

classify one example

Parameters:
num which example to classify
Returns:
result

Reimplemented from CKernelMachine.

Definition at line 127 of file KRR.cpp.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type KRR

Reimplemented from CClassifier.

Definition at line 127 of file KRR.h.

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Reimplemented from CKernelMachine.

Definition at line 133 of file KRR.h.

bool load ( FILE *  srcfile  )  [virtual]

load regression from file

Parameters:
srcfile file to load from
Returns:
if loading was successful

Reimplemented from CClassifier.

Definition at line 83 of file KRR.cpp.

bool save ( FILE *  dstfile  )  [virtual]

save regression to file

Parameters:
dstfile file to save to
Returns:
if saving was successful

Reimplemented from CClassifier.

Definition at line 90 of file KRR.cpp.

void set_tau ( float64_t  t  ) 

set regularization constant

Parameters:
t new tau

Definition at line 74 of file KRR.h.

bool train ( CFeatures data = NULL  )  [virtual]

train regression

Parameters:
data training data (parameter can be avoided if distance or kernel-based regressors are used and distance/kernels are initialized with train data)
Returns:
whether training was successful

Reimplemented from CClassifier.

Definition at line 43 of file KRR.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation