public interface Kernel extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
It's preferable for kernels to override toString.
Modifier and Type | Method and Description |
---|---|
double |
similarity(SparseVector first,
SparseVector second)
Calculates the similarity between two
SparseVector s. |
double similarity(SparseVector first, SparseVector second)
SparseVector
s.first
- The first SparseVector.second
- The second SparseVector.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.