cc.mallet.fst
Class CRFCacheStaleIndicator
- java.lang.Object
-
- cc.mallet.fst.CRFCacheStaleIndicator
-
- All Implemented Interfaces:
- CacheStaleIndicator
public class CRFCacheStaleIndicator extends java.lang.Object implements CacheStaleIndicator
Indicates when the value/gradient becomes stale based on updates to CRF's parameters.
-
-
Constructor Summary
Constructors Constructor and Description CRFCacheStaleIndicator(CRF crf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisGradientStale()Returns true if the gradient is stale, also updates the cacheGradientStamp.booleanisValueStale()Returns true if the value is stale, also updates the cacheValueStamp.
-
-
-
Constructor Detail
-
CRFCacheStaleIndicator
public CRFCacheStaleIndicator(CRF crf)
-
-
Method Detail
-
isValueStale
public boolean isValueStale()
Returns true if the value is stale, also updates the cacheValueStamp.- Specified by:
isValueStalein interfaceCacheStaleIndicator
-
isGradientStale
public boolean isGradientStale()
Returns true if the gradient is stale, also updates the cacheGradientStamp.- Specified by:
isGradientStalein interfaceCacheStaleIndicator
-
-
DataMelt 3.0 © DataMelt by jWork.ORG