|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.kernel.Kernel<B>
fr.lip6.bag.kernel.SimpleBagKernel<V,B>
V - type of vectors in input space.B - type of bag of vectors.public class SimpleBagKernel<V extends MLVector<?>,B extends BagOfVector<V>>
Simpleest kernel on bag of vectors : sum of all possible combinations between elements of the two bags.
| Constructor Summary | |
|---|---|
SimpleBagKernel(Kernel<V> minorKernel)
Constructor with minor kernel |
|
| Method Summary | |
|---|---|
double |
valueOf(B b1)
kernel similarity to zero |
double |
valueOf(B b1,
B b2)
compute the kernel similarity between two element of input space |
| Methods inherited from class fr.lip6.kernel.Kernel |
|---|
NormalizedValueOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBagKernel(Kernel<V> minorKernel)
minorKernel - the kernel to be used in similarities between
elements of the bags.| Method Detail |
|---|
public double valueOf(B b1,
B b2)
Kernel
valueOf in class Kernel<B extends BagOfVector<V>>b1 - first elementb2 - second element
public double valueOf(B b1)
Kernel
valueOf in class Kernel<B extends BagOfVector<V>>b1 - the element to compute the similarity to zero
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||