stringdot
.rbfdot(sigma = 1)polydot(degree = 1, scale = 1, offset = 1)
tanhdot(scale = 1, offset = 1)
vanilladot()
laplacedot(sigma = 1)
besseldot(sigma = 1, order = 1, degree = 1)
anovadot(sigma = 1, degree = 1)
splinedot()
kernel
which extents the
function
class. The resulting function implements the given
kernel calculating the inner (dot) product between two vectors.kpar
function.kernel
argument on almost all
functions in ksvm
, kpca
etc).
Although using one of the existing kernel functions as a
kernel
argument in various functions in kernel
can also be used as a kernel
argument. This allows the user to use, test and develop special kernels
for a given data set or algorithm.
For details on the string kernels see stringdot
.stringdot
, kernelMatrix
, kernelMult
, kernelPol
rbfkernel <- rbfdot(sigma = 0.1)
rbfkernel
kpar(rbfkernel)
## create two vectors
x <- rnorm(10)
y <- rnorm(10)
## calculate dot product
rbfkernel(x,y)
Run the code above in your browser using DataLab