Module: Numo::Libsvm::KernelType

Defined in:
ext/numo/libsvm/libsvmext.cpp,
ext/numo/libsvm/libsvmext.cpp

Overview

The module consisting of constants for kernel type that used for parameter of LIBSVM.

Constant Summary collapse

LINEAR =

Linear kernel; u’ * v

INT2NUM(LINEAR)
POLY =

Polynomial kernel; (gamma * u’ * v + coef0)^degree

INT2NUM(POLY)
RBF =

RBF kernel; exp(-gamma * ||u - v||^2)

INT2NUM(RBF)
SIGMOID =

Sigmoid kernel; tanh(gamma * u’ * v + coef0)

INT2NUM(SIGMOID)
PRECOMPUTED =

Precomputed kernel

INT2NUM(PRECOMPUTED)