|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.siefkes.nlstego.predict.FetchStats
net.siefkes.nlstego.predict.PPMFetchStats
public final class PPMFetchStats
Implementation of the FetchStats class using a Prediction-by-Partial-Match strategy. This class collects statistics about the item access history that can be used for prediction.
Created (04.10.2001 11:16:19).
| Field Summary |
|---|
| Fields inherited from class net.siefkes.nlstego.predict.FetchStats |
|---|
END_OF_SESSION, START_OF_SESSION |
| Constructor Summary | |
|---|---|
PPMFetchStats(Configuration conf,
StatelessFilter filter)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(String key,
int sessionID,
boolean train)
Adds a request of an item. |
int |
getBlendingNum()
A standard get*(). |
double |
getDecFactor()
A standard get*(). |
int |
getInnerCacheSize()
A standard get*(). |
int |
getLargestOuterCacheSize()
A standard get*(). |
int |
getLengthOfHistory()
A standard get*(). |
int |
getMinAccesses()
A standard get*(). |
SortedMap |
predict(int number,
int sessionID)
Predicts the items that will probably be requested next. |
String |
printModelStats()
Prints statistical information about this model. |
void |
sessionEnded(int sessionID)
Marks a session as ended. |
String |
toString()
Returns a String that represents the value of this object. |
| Methods inherited from class net.siefkes.nlstego.predict.FetchStats |
|---|
add, getID, getIDInteger, getStatelessFilter, mapKey, shutdown, unmapKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PPMFetchStats(Configuration conf,
StatelessFilter filter)
Created (11.09.2001 16:35:54) by Christian Siefkes.
conf - the Configuration to usefilter - optional filter that decides which predictions should be stored
in the stateless (global) model; if null, all predictions are
stored| Method Detail |
|---|
public void add(String key,
int sessionID,
boolean train)
Created (27.09.2001 12:16:43) by Christian Siefkes.
add in class FetchStatskey - unique ID of the item currently requested
fetching the last document in this sessionsessionID - the ID of the current session (must be unique among all
sessions parallel in progress)train - true iff the model should be trained, i.e.
this request should be incorporated into the prediction model; otherwise
only the internal state will be changed so the next call to
predict(int, int) will find suitable predictions (this happens in
any case)public int getBlendingNum()
get*(). Created (01.10.2001 11:35:12) by Christian Siefkes.
public double getDecFactor()
get*(). Created (01.10.2001 11:16:32) by Christian Siefkes.
public int getInnerCacheSize()
get*(). Created (01.10.2001 11:16:23) by Christian Siefkes.
public int getLargestOuterCacheSize()
get*(). Created (01.10.2001 11:16:13) by Christian Siefkes.
public int getLengthOfHistory()
get*(). Created (26.09.2001 17:52:52) by Christian Siefkes.
public int getMinAccesses()
get*(). Created (01.10.2001 11:34:51) by Christian Siefkes.
public SortedMap predict(int number,
int sessionID)
Created (27.09.2001 12:16:43) by Christian Siefkes.
predict in class FetchStatsnumber - the number of results to return, >0sessionID - the ID of the current session (must be unique among all
sessions parallel in progress)
number, all matching
documents that had at least minAccesses)public String printModelStats()
printModelStats in class FetchStatspublic void sessionEnded(int sessionID)
Created (27.09.2001 12:16:43) by Christian Siefkes.
sessionEnded in class FetchStatssessionID - the ID of the current session (must be unique among all
sessions parallel in progress)public String toString()
Created (04.10.2001 17:42:12) by Christian Siefkes.
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||