class Kernel

Kernel class.

Inheritance:


Public Methods

[more] Kernel(DataSet* data_)
[more]virtual real eval(int i, int j) = 0
Kernel between the example i and j of the dataset.
[more]virtual real realEval(int i, List* y) = 0
Kernel between the example i of the dataset and one example y.
[more]virtual void reset()
Reset the kernel (Default, do nothing)


Inherited from Object:

Public Methods

ovirtual void init()
ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

Kernel class. Note that all kernels are based on the dotProduct of their associated DataSet.

o Kernel(DataSet* data_)

ovirtual real eval(int i, int j) = 0
Kernel between the example i and j of the dataset. This function takes in account the selected_examples of the dataset.

ovirtual real realEval(int i, List* y) = 0
Kernel between the example i of the dataset and one example y. The structure of y must be the same as those generated in inputs by the dataset data. Note that this function don't care about the selected_examples of the dataset: i is a real index.

ovirtual void reset()
Reset the kernel (Default, do nothing)


Direct child classes:
SigmoidKernel
PolynomialKernel
GaussianKernel
DotKernel
Author:
Ronan Collobert (collober@iro.umontreal.ca)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.