public class SimpleDynamicKernelCache extends KernelCache
| Constructor and Description |
|---|
SimpleDynamicKernelCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache()
Empties the cache
|
protected Float |
getStoredKernelValue(Example exA,
Example exB)
Retrieves in the cache the kernel operation between two examples
|
void |
setKernelValue(Example exA,
Example exB,
float value)
Stores a kernel computation in cache
|
getCacheHits, getCacheMisses, getKernelValue, resetCacheStatsprotected Float getStoredKernelValue(Example exA, Example exB)
KernelCachegetStoredKernelValue in class KernelCacheexA - the first exampleexB - the second examplenull if a cache miss occurspublic void setKernelValue(Example exA, Example exB, float value)
KernelCachesetKernelValue in class KernelCacheexA - the first exampleexB - the second examplevalue - the kernel value to be stored in cachepublic void flushCache()
KernelCacheflushCache in class KernelCacheCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.