Hugintrunk
0.1
|
Public Member Functions | |
Kernel (int l, svm_node *const *x, const svm_parameter ¶m) | |
virtual | ~Kernel () |
virtual Qfloat * | get_Q (int column, int len) const =0 |
virtual double * | get_QD () const =0 |
virtual void | swap_index (int i, int j) const |
Public Member Functions inherited from celeste::QMatrix | |
virtual | ~QMatrix () |
Static Public Member Functions | |
static double | k_function (const svm_node *x, const svm_node *y, const svm_parameter ¶m) |
Protected Attributes | |
double(Kernel::* | kernel_function )(int i, int j) const |
Private Member Functions | |
double | kernel_linear (int i, int j) const |
double | kernel_poly (int i, int j) const |
double | kernel_rbf (int i, int j) const |
double | kernel_sigmoid (int i, int j) const |
double | kernel_precomputed (int i, int j) const |
Static Private Member Functions | |
static double | dot (const svm_node *px, const svm_node *py) |
Private Attributes | |
const svm_node ** | x |
double * | x_square |
const int | kernel_type |
const int | degree |
const double | gamma |
const double | coef0 |
celeste::Kernel::Kernel | ( | int | l, |
svm_node *const * | x, | ||
const svm_parameter & | param | ||
) |
Definition at line 300 of file svm.cpp.
References celeste::clone(), dot(), kernel_function, kernel_linear(), kernel_poly(), kernel_precomputed(), kernel_rbf(), kernel_sigmoid(), kernel_type, celeste::LINEAR, celeste::POLY, celeste::PRECOMPUTED, celeste::RBF, celeste::SIGMOID, x, and x_square.
|
virtual |
Definition at line 341 of file svm.cpp.
References celeste::svm_node::index, and celeste::svm_node::value.
Referenced by k_function(), Kernel(), kernel_linear(), kernel_poly(), kernel_rbf(), and kernel_sigmoid().
|
pure virtual |
Implements celeste::QMatrix.
Implemented in celeste::SVR_Q, celeste::ONE_CLASS_Q, and celeste::SVC_Q.
|
pure virtual |
Implements celeste::QMatrix.
Implemented in celeste::SVR_Q, celeste::ONE_CLASS_Q, and celeste::SVC_Q.
|
static |
Definition at line 363 of file svm.cpp.
References celeste::svm_parameter::coef0, celeste::svm_parameter::degree, dot(), celeste::svm_parameter::gamma, celeste::svm_node::index, celeste::svm_parameter::kernel_type, celeste::LINEAR, celeste::POLY, celeste::powi(), celeste::PRECOMPUTED, celeste::RBF, celeste::SIGMOID, celeste::svm_node::value, and x.
Referenced by celeste::svm_predict_values().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 294 of file svm.cpp.
References celeste::svm_node::value.
Referenced by Kernel().
|
inlineprivate |
|
inlineprivate |
|
inlinevirtual |
Implements celeste::QMatrix.
Reimplemented in celeste::SVR_Q, celeste::ONE_CLASS_Q, and celeste::SVC_Q.
Definition at line 258 of file svm.cpp.
References celeste::swap(), and x_square.
Referenced by celeste::SVC_Q::swap_index(), and celeste::ONE_CLASS_Q::swap_index().
|
private |
Definition at line 275 of file svm.cpp.
Referenced by kernel_poly(), and kernel_sigmoid().
|
private |
Definition at line 273 of file svm.cpp.
Referenced by kernel_poly().
|
private |
Definition at line 274 of file svm.cpp.
Referenced by kernel_poly(), kernel_rbf(), and kernel_sigmoid().
|
protected |
Definition at line 265 of file svm.cpp.
Referenced by celeste::SVC_Q::get_Q(), celeste::ONE_CLASS_Q::get_Q(), celeste::SVR_Q::get_Q(), Kernel(), celeste::ONE_CLASS_Q::ONE_CLASS_Q(), celeste::SVC_Q::SVC_Q(), and celeste::SVR_Q::SVR_Q().
|
private |
|
private |
Definition at line 268 of file svm.cpp.
Referenced by k_function(), Kernel(), and ~Kernel().
|
private |
Definition at line 269 of file svm.cpp.
Referenced by Kernel(), kernel_rbf(), swap_index(), and ~Kernel().