public class SubTreeKernel extends DirectKernel<TreeRepresentation>
representation
Constructor and Description |
---|
SubTreeKernel()
SubTree Kernel: default constructor.
|
SubTreeKernel(float lambda,
String representationIdentifier)
SubTree Kernel
|
SubTreeKernel(String representationIdentifier)
SubTree Kernel constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getLambda()
Get the decay factor
|
protected float |
kernelComputation(TreeRepresentation repA,
TreeRepresentation repB)
Computes the kernel similarity between two specific representations
|
void |
setLambda(float lambda)
Set the decay factor
|
getRepresentation, kernelComputation, setRepresentation
disableCache, getKernelComputations, getNumberOfHits, getNumberOfMisses, innerProduct, reset, setKernelCache, setNormCache, squaredNorm, squaredNormOfTheDifference
public SubTreeKernel(float lambda, String representationIdentifier)
lambda
- Decay FactorrepresentationIdentifier
- Identifier of the Tree representation on which the kernel
workspublic SubTreeKernel(String representationIdentifier)
representationIdentifier
- Identifier of the Tree representation on which the kernel
workspublic SubTreeKernel()
public float getLambda()
public void setLambda(float lambda)
lambda
- the decay factorprotected float kernelComputation(TreeRepresentation repA, TreeRepresentation repB)
DirectKernel
kernelComputation
in class DirectKernel<TreeRepresentation>
repA
- the first representation in the kernel similarityrepB
- the second representation in the kernel similarityCopyright © 2014 Semantic Analytics Group @ Uniroma2. All rights reserved.