Public Member Functions

CKernelPerceptron Class Reference


Detailed Description

Class KernelPerceptron - currently unfinished implementation of a Kernel Perceptron.

Definition at line 24 of file KernelPerceptron.h.

Inheritance diagram for CKernelPerceptron:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CKernelPerceptron ()
virtual ~CKernelPerceptron ()
virtual bool train (CFeatures *data=NULL)
virtual float64_t classify_example (int32_t num)
virtual bool load (FILE *srcfile)
virtual bool save (FILE *dstfile)
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

Constructor & Destructor Documentation

constructor

Definition at line 17 of file KernelPerceptron.cpp.

~CKernelPerceptron (  )  [virtual]

Definition at line 23 of file KernelPerceptron.cpp.


Member Function Documentation

float64_t classify_example ( int32_t  num  )  [virtual]

classify one specific example

Parameters:
num which example to classify
Returns:
classified value

Reimplemented from CKernelMachine.

Definition at line 57 of file KernelPerceptron.cpp.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type KERNELPERCEPTRON

Reimplemented from CClassifier.

Definition at line 66 of file KernelPerceptron.h.

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

Reimplemented from CKernelMachine.

Definition at line 72 of file KernelPerceptron.h.

bool load ( FILE *  srcfile  )  [virtual]

load KernelPerceptron from file

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

Reimplemented from CClassifier.

Definition at line 42 of file KernelPerceptron.cpp.

bool save ( FILE *  dstfile  )  [virtual]

save KernelPerceptron to file

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

Reimplemented from CClassifier.

Definition at line 49 of file KernelPerceptron.cpp.

bool train ( CFeatures data = NULL  )  [virtual]

train kernel perceptron classifier

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

Reimplemented from CClassifier.

Definition at line 27 of file KernelPerceptron.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