kernel.h File Reference

Kernels for SVM etc. More...

#include <cmath>
#include <numeric>
#include "learnmodel.h"

Include dependency graph for kernel.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  lemga
namespace  lemga::kernel

Classes

class  Kernel
 The operator() gives the inner-product in the transformed space. More...
struct  Linear
 Linear kernel $\left<u,v\right>$. More...
struct  Polynomial
 Polynomial kernel $(\gamma*\left<u,v\right>+c_0)^d$. More...
struct  Stump
 Stump kernel $-\left|u-v\right|_1$. More...
struct  Perceptron
 Perceptron kernel $-\left|u-v\right|_2$. More...
struct  RBF
 RBF (Gausssian) kernel $e^{-\gamma\left|u-v\right|_2^2}$. More...
struct  Sigmoid
 Sigmoid kernel $\tanh(\gamma\left<u,v\right>+c_0)$. More...

Defines

#define DOTPROD(x, y)   std::inner_product(x.begin(), x.end(), y.begin(), .0)

Functions

REAL lemga::kernel::norm_1 (const Input &u, const Input &v)
REAL lemga::kernel::norm_2 (const Input &u, const Input &v)


Detailed Description

Kernels for SVM etc.

Id
kernel.h 2611 2006-02-02 21:53:30Z ling

Definition in file kernel.h.


Define Documentation

#define DOTPROD x,
 )     std::inner_product(x.begin(), x.end(), y.begin(), .0)
 

Definition at line 15 of file kernel.h.

Referenced by RBF::matrix(), Perceptron::matrix(), normalize(), Sigmoid::operator()(), Polynomial::operator()(), Linear::operator()(), randrot(), Perceptron::set_data(), and lemga::update_wgt().


Generated on Wed Nov 8 08:15:51 2006 for LEMGA by  doxygen 1.4.6