public class PolynomialKernel extends KernelComposition
baseKernel
Constructor and Description |
---|
PolynomialKernel() |
PolynomialKernel(float degree,
float a,
float b,
Kernel inputSpace) |
PolynomialKernel(float degree,
Kernel inputSpace) |
Modifier and Type | Method and Description |
---|---|
float |
getA() |
float |
getB() |
float |
getDegree() |
protected float |
kernelComputation(Example exA,
Example exB)
Returns the kernel similarity between the given examples.
|
void |
setA(float a) |
void |
setB(float b) |
void |
setDegree(float degree) |
getBaseKernel, setBaseKernel
disableCache, getKernelCache, getKernelComputations, getNumberOfHits, getNumberOfMisses, getSquaredNormCache, innerProduct, load, reset, save, setKernelCache, setSquaredNormCache, squaredNorm, squaredNormOfTheDifference
public PolynomialKernel(float degree, float a, float b, Kernel inputSpace)
public PolynomialKernel(float degree, Kernel inputSpace)
public PolynomialKernel()
protected float kernelComputation(Example exA, Example exB)
Kernel
kernelComputation
in class Kernel
exA
- the first exampleexB
- the second exampleexA
and
exB
public float getDegree()
public void setDegree(float degree)
degree
- the degree to setpublic float getA()
public void setA(float a)
a
- the a to setpublic float getB()
public void setB(float b)
b
- the b to setCopyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.