public abstract class Grid<G extends Grid<G>> extends Lockable<G>
double[], and a set of search parameters a double[][]. The subclasses of Grid will need to convert between
these two formats.
E.g. KMeansGrid will convert the initial center selection field "_init"
Enum to and from a simple double value internally.| Modifier and Type | Class and Description |
|---|---|
class |
Grid.GridSearch |
| Modifier | Constructor and Description |
|---|---|
protected |
Grid(Key key,
Frame fr) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ModelBuilder |
getBuilder(double[] hypers) |
abstract double[] |
getHypers(Model.Parameters parms) |
protected abstract double[] |
hyperDefaults() |
protected abstract java.lang.String[] |
hyperNames() |
protected static Key |
keyName(java.lang.String modelName,
Frame fr) |
Key<Model> |
model(double[] hypers) |
Key<Model> |
model(java.util.HashMap<java.lang.String,java.lang.Object> hypers) |
protected abstract java.lang.String |
modelName() |
protected Futures |
remove_impl(Futures fs)
Override to remove subparts, but not self, of composite Keyed objects.
|
Grid.GridSearch |
startGridSearch(java.util.HashMap<java.lang.String,java.lang.Object[]> hyperSearch) |
protected abstract double |
suggestedNextHyperValue(int h,
Model m,
double[] hyperLimits)
Ask the Grid for a suggested next hyperparameter value, given an existing
Model as a starting point and the complete set of hyperparameter limits.
|
Frame |
trainingFrame() |
delete_and_lock, delete, delete, delete, read_lock, read_lock, unlock_all, unlock, update, write_lockclone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSONprotected final Frame _fr
protected abstract java.lang.String modelName()
protected abstract java.lang.String[] hyperNames()
protected abstract double[] hyperDefaults()
protected abstract double suggestedNextHyperValue(int h,
Model m,
double[] hyperLimits)
h - The h-th hyperparameterm - A model to act as a starting pointhyperLimits - Upper bounds for this searchpublic Frame trainingFrame()
protected static Key keyName(java.lang.String modelName, Frame fr)
public Key<Model> model(double[] hypers)
hypers - A set of hyper parameter valuesprotected abstract ModelBuilder getBuilder(double[] hypers)
hypers - A set of hyper parameter valuespublic abstract double[] getHypers(Model.Parameters parms)
parms - Model parameterspublic Grid.GridSearch startGridSearch(java.util.HashMap<java.lang.String,java.lang.Object[]> hyperSearch)
hyperSearch - A set of arrays of hyper parameter values, used to
specify a simple fully-filled-in grid search.protected Futures remove_impl(Futures fs)
KeyedVec (removing associated Chunk keys)
and Frame (removing associated Vec keys.)remove_impl in class Keyed<G extends Grid<G>>