public abstract class KernelOverPairs extends KernelComposition
baseKernel
Constructor and Description |
---|
KernelOverPairs() |
Modifier and Type | Method and Description |
---|---|
protected float |
kernelComputation(Example exA,
Example exB)
Returns the kernel similarity between the given examples.
|
abstract float |
kernelComputationOverPairs(Example exA1,
Example exA2,
Example exB1,
Example exB2)
Returns the kernel computation
|
getBaseKernel, setBaseKernel
disableCache, getKernelCache, getKernelComputations, getNumberOfHits, getNumberOfMisses, getSquaredNormCache, innerProduct, load, reset, save, setKernelCache, setSquaredNormCache, squaredNorm, squaredNormOfTheDifference
protected float kernelComputation(Example exA, Example exB)
Kernel
kernelComputation
in class Kernel
exA
- the first exampleexB
- the second exampleexA
and
exB
public abstract float kernelComputationOverPairs(Example exA1, Example exA2, Example exB1, Example exB2)
exA1
- the first element of the first pairexA2
- the second element of the first pairexB1
- the first element of the second pairexB2
- the second element of the second pairCopyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.