Package org.biojava.stats.svm
Class PolynomialKernel
java.lang.Object
org.biojava.stats.svm.NestedKernel
org.biojava.stats.svm.PolynomialKernel
- All Implemented Interfaces:
Serializable,SVMKernel
This kernel computes all possible products of order features in feature
space. This is done by computing (a.k(i,j) + c)^order for some other kernel k
that defines a dot product in some feature space.
- Author:
- Thomas Down, Matthew Pocock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturn the dot product of two vectors in an arbitrary feature space.doubledoubledoublegetOrder()voidsetConstant(double c) voidsetMultiplier(double m) voidsetOrder(double o) toString()Methods inherited from class org.biojava.stats.svm.NestedKernel
getNestedKernel, setNestedKernel
-
Constructor Details
-
PolynomialKernel
public PolynomialKernel() -
PolynomialKernel
-
-
Method Details
-
evaluate
Description copied from interface:SVMKernelReturn the dot product of two vectors in an arbitrary feature space. In this implementation, the `vectors' can actually be arbitrary objects. -
getOrder
-
setOrder
-
getConstant
-
setConstant
-
getMultiplier
-
setMultiplier
-
toString
-