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 TypeMethodDescriptiondouble
Return the dot product of two vectors in an arbitrary feature space.double
double
double
getOrder()
void
setConstant
(double c) void
setMultiplier
(double m) void
setOrder
(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:SVMKernel
Return 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
-