|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.meta.multisearch.PerformanceCache
public class PerformanceCache
Represents a simple cache for performance objects.
| Field Summary | |
|---|---|
protected Hashtable<String,Performance> |
m_Cache
the cache for points in the space that got calculated. |
| Constructor Summary | |
|---|---|
PerformanceCache()
|
|
| Method Summary | |
|---|---|
void |
add(int cv,
Performance p)
adds the performance to the cache. |
Performance |
get(int cv,
Point<Object> values)
returns a cached performance object, null if not yet in the cache. |
protected String |
getID(int cv,
Point<Object> values)
returns the ID string for a cache item. |
boolean |
isCached(int cv,
Point<Object> values)
checks whether the point was already calculated once. |
String |
toString()
returns a string representation of the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Hashtable<String,Performance> m_Cache
| Constructor Detail |
|---|
public PerformanceCache()
| Method Detail |
|---|
protected String getID(int cv,
Point<Object> values)
cv - the number of folds in the cross-validationvalues - the point in the space
public boolean isCached(int cv,
Point<Object> values)
cv - the number of folds in the cross-validationvalues - the point in the space
public Performance get(int cv,
Point<Object> values)
cv - the number of folds in the cross-validationvalues - the point in the space
public void add(int cv,
Performance p)
cv - the number of folds in the cross-validationp - the performance object to storepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||