Class RBF
java.lang.Object
org.tribuo.math.kernel.RBF
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,Serializable,Kernel
-
Constructor Summary
ConstructorsConstructorDescriptionRBF(double gamma) A Radial Basis Function (RBF) kernel, exp(-gamma*|u-v|^2). -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenancedoubleCalculates the similarity between twoSparseVectors.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
RBF
A Radial Basis Function (RBF) kernel, exp(-gamma*|u-v|^2).- Parameters:
gamma- The length scale of the gaussian.
-
-
Method Details
-
similarity
Description copied from interface:KernelCalculates the similarity between twoSparseVectors.- Specified by:
similarityin interfaceKernel- Parameters:
a- The first SparseVector.b- The second SparseVector.- Returns:
- A value between 0 and 1, where 1 is most similar and 0 is least similar.
-
toString
-
getProvenance
- Specified by:
getProvenancein interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-