public class SequenceKernel extends DirectKernel<SequenceRepresentation>
representation
Constructor and Description |
---|
SequenceKernel() |
SequenceKernel(String representationIdentifier,
int maxSubseqLeng,
float lambda) |
Modifier and Type | Method and Description |
---|---|
float |
getLambda() |
int |
getMaxSubseqLeng() |
float |
kernelComputation(SequenceRepresentation repA,
SequenceRepresentation repB)
Computes the kernel similarity between two specific representations
|
void |
setLambda(float lambda) |
void |
setMaxSubseqLeng(int maxSubseqLeng) |
getRepresentation, kernelComputation, setRepresentation
disableCache, getKernelCache, getKernelComputations, getNumberOfHits, getNumberOfMisses, getSquaredNormCache, innerProduct, load, reset, save, setKernelCache, setSquaredNormCache, squaredNorm, squaredNormOfTheDifference
public SequenceKernel()
public SequenceKernel(String representationIdentifier, int maxSubseqLeng, float lambda)
representationIdentifier
- Identifier of the Tree representation on which the kernel
worksmaxSubseqLeng
- Maximum length of common subsequenceslambda
- Gap penaltypublic float getLambda()
public int getMaxSubseqLeng()
public float kernelComputation(SequenceRepresentation repA, SequenceRepresentation repB)
DirectKernel
kernelComputation
in class DirectKernel<SequenceRepresentation>
repA
- the first representation in the kernel similarityrepB
- the second representation in the kernel similaritypublic void setLambda(float lambda)
lambda
- Gap penaltypublic void setMaxSubseqLeng(int maxSubseqLeng)
maxSubseqLeng
- Maximum length of common subsequencesCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.