Creation of kernel object The function
'symmetricPairKernel' creates a kernel object for the
symmetric pair kernel. This kernel is an example for
multiple instance learning and can be used for learning
based on pairs of sequences. The single instance kernel
passed to the symmetric pair kernel computes a similarity
between two individual sequences giving a similarity for
one pair of sequences. The symmetric pair kernel function
gets as input two pairs of sequences and computes a
similarity value between the two pairs. This similarity is
computed dependent on the value of the argument
kernelType
from the similarities delivered by the
single instance kernel in the following way:mean
(arithmetic mean): k(, ) = 1/4
* (k(a,c) + k(a,d) + k(b,c) + k(b,d))
TPKK
(tensor pairwise product kernel):
k(, ) = (k(a,c) * k(b,d) + k(a,d) * k(b,c))
Every sequence kernel available in KeBABS can be used as
single instance kernel for the symmetric pair kernel
allowing to create similarity measures between two pairs of
sequences based on different similarity measures between
individual sequences.
The row names and column names of a kernel matrix generated
from a symmetric pair kernel object describe the sequence
pair with the names of the individual sequences in the pair
separated by the underscore character.
For values different from 1 (=default value) parameter
r
leads to a transfomation of similarities by taking
each element of the similarity matrix to the power of r.
Only integer values larger than 1 should be used for r in
context with SVMs requiring positive definite kernels.
The symmetricPairKernel can be used in sequence based
learning like any single instance kernel. Label values are
defined against pairs of sequences in this case. Explicit
representation, feature weights and prediction profiles are
not available for the symmetric pair kernel. As kernels
computed through sums and products of postive definite
kernels all variants of this kernel are positive definite.