Kernel class.
Inheritance:
Public Methods
-
Kernel(DataSet* data_)
-
virtual real eval(int i, int j) = 0
- Kernel between the example i and j of the dataset.
-
virtual real realEval(int i, List* y) = 0
- Kernel between the example i of the dataset and one example y.
-
virtual void reset()
- Reset the kernel (Default, do nothing)
Inherited from Object:
Public Methods
-
virtual void init()
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
Kernel class.
Note that all kernels are based on the dotProduct
of their associated DataSet.
Kernel(DataSet* data_)
virtual 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.
virtual 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.
virtual 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++.