|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.fst.CRFCacheStaleIndicator
public class CRFCacheStaleIndicator
Indicates when the value/gradient becomes stale based on updates to CRF's parameters.
| Field Summary | |
|---|---|
protected int |
cachedGradientChangeStamp
|
protected int |
cachedValueChangeStamp
|
protected CRF |
crf
|
| Constructor Summary | |
|---|---|
CRFCacheStaleIndicator(CRF crf)
|
|
| Method Summary | |
|---|---|
boolean |
isGradientStale()
Returns true if the gradient is stale, also updates the cacheGradientStamp. |
boolean |
isValueStale()
Returns true if the value is stale, also updates the cacheValueStamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CRF crf
protected int cachedValueChangeStamp
protected int cachedGradientChangeStamp
| Constructor Detail |
|---|
public CRFCacheStaleIndicator(CRF crf)
| Method Detail |
|---|
public boolean isValueStale()
isValueStale in interface CacheStaleIndicatorpublic boolean isGradientStale()
isGradientStale in interface CacheStaleIndicator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||