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, resetCacheStats
protected Float getStoredKernelValue(Example exA, Example exB)
KernelCache
getStoredKernelValue
in class KernelCache
exA
- the first exampleexB
- the second examplenull
if a cache miss occurspublic void setKernelValue(Example exA, Example exB, float value)
KernelCache
setKernelValue
in class KernelCache
exA
- the first exampleexB
- the second examplevalue
- the kernel value to be stored in cachepublic void flushCache()
KernelCache
flushCache
in class KernelCache
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.