public class LinearKernel extends DirectKernel<Vector>
Vector
s Vector
representationsrepresentation
Constructor and Description |
---|
LinearKernel() |
LinearKernel(String representationIdentifier) |
Modifier and Type | Method and Description |
---|---|
float |
kernelComputation(Vector repA,
Vector repB)
Computes the kernel similarity between two specific representations
|
getRepresentation, kernelComputation, setRepresentation
disableCache, getKernelCache, getKernelComputations, getNumberOfHits, getNumberOfMisses, getSquaredNormCache, innerProduct, load, reset, save, setKernelCache, setSquaredNormCache, squaredNorm, squaredNormOfTheDifference
public LinearKernel(String representationIdentifier)
public LinearKernel()
public float kernelComputation(Vector repA, Vector repB)
DirectKernel
kernelComputation
in class DirectKernel<Vector>
repA
- the first representation in the kernel similarityrepB
- the second representation in the kernel similarityCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.