@Deprecated public class FixIndexKernelCache extends KernelCache implements Serializable
Constructor and Description |
---|
FixIndexKernelCache()
Deprecated.
|
FixIndexKernelCache(int examplesToStore)
Deprecated.
Initializes a FixIndexKernelCache that can contain all the possible pairwise kernel computations
between up to
examplesToStore examples |
Modifier and Type | Method and Description |
---|---|
void |
flushCache()
Deprecated.
Empties the cache
|
int |
getExamplesToStore()
Deprecated.
Returns the maximum number of examples whose pairwise kernel computations
can be simultaneously stored
|
protected Float |
getStoredKernelValue(Example exA,
Example exB)
Deprecated.
Retrieves in the cache the kernel operation between two examples
|
void |
setExamplesToStore(int examplesToStore)
Deprecated.
Sets the maximum number of examples whose pairwise kernel computations
can be simultaneously stored
|
void |
setKernelValue(Example exA,
Example exB,
float value)
Deprecated.
Stores a kernel computation in cache
|
getCacheHits, getCacheMisses, getKernelValue, resetCacheStats
public FixIndexKernelCache(int examplesToStore)
examplesToStore
examplesexamplesToStore
- the maximum number of examples whose pairwise kernel computations
can be simultaneously storedpublic FixIndexKernelCache()
public int getExamplesToStore()
public void setExamplesToStore(int examplesToStore)
examplesToStore
- the examplesToStore to set
NOTE: all the already stored kernel computations will be lost
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.