Perceptron Struct Reference

#include <kernel.h>

Inheritance diagram for Perceptron:

Inheritance graph
[legend]
Collaboration diagram for Perceptron:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual REAL operator() (const Input &a, const Input &b) const
 The inner-product of two input vectors.
virtual void set_data (const pDataSet &pd)
 Store a dataset in order to compute the kernel matrix.
virtual REAL matrix (UINT i, UINT j) const
 The inner-product of two stored inputs with index i and j.
virtual void set_params (SVM_detail *) const

Protected Attributes

std::vector< REALx_norm2
 cached inner-product of data input

Detailed Description

Definition at line 90 of file kernel.h.


Member Function Documentation

virtual REAL matrix UINT  i,
UINT  j
const [inline, virtual]
 

The inner-product of two stored inputs with index i and j.

Reimplemented from Kernel.

Reimplemented in RBF.

Definition at line 106 of file kernel.h.

References DOTPROD, and LearnModel::ptd.

virtual REAL operator() const Input a,
const Input b
const [inline, virtual]
 

The inner-product of two input vectors.

Implements Kernel.

Reimplemented in RBF.

Definition at line 95 of file kernel.h.

References lemga::kernel::norm_2().

virtual void set_data const pDataSet pd  )  [inline, virtual]
 

Store a dataset in order to compute the kernel matrix.

Reimplemented from Kernel.

Definition at line 99 of file kernel.h.

References DOTPROD, and LearnModel::ptd.

void set_params SVM_detail *   )  const [virtual]
 

In order to keep the SVM interface simple and avoid member functions specific to kernels (e.g., set_gamma()), we use Kernel to pass kernel parameters to SVM_detail.

Implements Kernel.

Reimplemented in RBF.

Definition at line 173 of file svm.cpp.


Member Data Documentation

std::vector<REAL> x_norm2 [protected]
 

cached inner-product of data input

Definition at line 92 of file kernel.h.


The documentation for this struct was generated from the following files:
Generated on Mon Jan 9 23:45:27 2006 for LEMGA by  doxygen 1.4.6