public abstract class DirectKernel<T extends Representation> extends Kernel
Modifier and Type | Field and Description |
---|---|
protected String |
representation |
Constructor and Description |
---|
DirectKernel() |
DirectKernel(String representationIdentifier)
Initializes a kernel operating directly on a specific representation
identified by
representationIdentifier |
Modifier and Type | Method and Description |
---|---|
String |
getRepresentation() |
protected float |
kernelComputation(Example exA,
Example exB)
Returns the kernel similarity between the given examples.
|
abstract float |
kernelComputation(T repA,
T repB)
Computes the kernel similarity between two specific representations
|
void |
setRepresentation(String representation) |
disableCache, getKernelCache, getKernelComputations, getNumberOfHits, getNumberOfMisses, getSquaredNormCache, innerProduct, load, reset, save, setKernelCache, setSquaredNormCache, squaredNorm, squaredNormOfTheDifference
protected String representation
public DirectKernel(String representationIdentifier)
representationIdentifier
representationIdentifier
- the identifier of the representation to be directly exploitedpublic DirectKernel()
public String getRepresentation()
public void setRepresentation(String representation)
representation
- the representation to setprotected float kernelComputation(Example exA, Example exB)
Kernel
kernelComputation
in class Kernel
exA
- the first exampleexB
- the second exampleexA
and
exB
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.