protected class GridSearch.PerformanceCache extends Object implements Serializable, RevisionHandler
Modifier and Type | Field and Description |
---|---|
protected Hashtable |
m_Cache
the cache for points in the grid that got calculated
|
Modifier | Constructor and Description |
---|---|
protected |
PerformanceCache() |
Modifier and Type | Method and Description |
---|---|
void |
add(int cv,
GridSearch.Performance p)
adds the performance to the cache
|
GridSearch.Performance |
get(int cv,
GridSearch.PointDouble values)
returns a cached performance object, null if not yet in the cache
|
protected String |
getID(int cv,
GridSearch.PointDouble values)
returns the ID string for a cache item
|
String |
getRevision()
Returns the revision string.
|
boolean |
isCached(int cv,
GridSearch.PointDouble values)
checks whether the point was already calculated ones
|
String |
toString()
returns a string representation of the cache
|
protected Hashtable m_Cache
protected String getID(int cv, GridSearch.PointDouble values)
cv
- the number of folds in the cross-validationvalues
- the point in the gridpublic boolean isCached(int cv, GridSearch.PointDouble values)
cv
- the number of folds in the cross-validationvalues
- the point in the gridpublic GridSearch.Performance get(int cv, GridSearch.PointDouble values)
cv
- the number of folds in the cross-validationvalues
- the point in the gridpublic void add(int cv, GridSearch.Performance p)
cv
- the number of folds in the cross-validationp
- the performance object to storepublic String toString()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.