|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.matrix.DotProductKernel
public class DotProductKernel
The DotProductKernel is the trivial kernel function
computed by taking the dot product of the input vectors. The
dot-product kernel is, for instance, the kernel to use for the
ordinary (non-kernel) perceptron. Typically, this kernel is used
as a baseline, as polynomial and radial basis kernels tend to
perform better in practice for classification and clustering
problems.
| Constructor Summary | |
|---|---|
DotProductKernel()
Construct a dot-product kernel. |
|
| Method Summary | |
|---|---|
double |
proximity(Vector v1,
Vector v2)
Returns the dot product of the input vectors. |
String |
toString()
Returns a string-based representation of this kernel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DotProductKernel()
| Method Detail |
|---|
public String toString()
toString in class Object
public double proximity(Vector v1,
Vector v2)
proximity in interface KernelFunctionproximity in interface Proximity<Vector>v1 - First vector.v2 - Second vector.
IllegalArgumentException - If the vectors are not of the
same dimensionality.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||