MP
- type of model build parameterspublic class Grid<MP extends Model.Parameters> extends Lockable<Grid<MP>>
Keyed.BinarySerializer<X extends Keyed>
Modifier and Type | Field and Description |
---|---|
static Grid |
GRID_PROTO
Publicly available Grid prototype - used by REST API.
|
_key, EMPTY_KEY_LIST
Modifier | Constructor and Description |
---|---|
protected |
Grid(Key key,
MP params,
java.lang.String[] hyperNames,
java.lang.String modelName,
PojoUtils.FieldNaming fieldNaming)
Construct a new grid object to store results of grid search.
|
Modifier and Type | Method and Description |
---|---|
protected long |
checksum_impl()
High-quality 64-bit checksum of the content of the
object.
|
Model.Parameters[] |
getFailedParameters()
Returns an array of model parameters which caused model build failure.
|
java.lang.String[][] |
getFailedRawParameters()
Returns list of raw model parameters causing model building failure.
|
int |
getFailureCount()
Returns number of unsuccessful attempts to build a model.
|
java.lang.String[] |
getFailureDetails()
Returns detailed messages about model build failures.
|
java.lang.String[] |
getFailureStackTraces()
Returns string representation of model build failures'
stack traces.
|
java.lang.String[] |
getHyperNames()
Returns an array of used hyper parameters names.
|
java.lang.Object[] |
getHyperValues(MP parms)
Return value of hyper parameters used for this grid search.
|
Model |
getModel(MP params)
Returns model for given combination of model parameters or null if the model does not exist.
|
int |
getModelCount()
Returns number of models in this grid.
|
Key<Model> |
getModelKey(MP params) |
Key<Model>[] |
getModelKeys()
Returns keys of all models included in this object.
|
java.lang.String |
getModelName()
Returns name of model included in this object.
|
Model[] |
getModels()
Return all models included in this grid object.
|
Frame |
getTrainingFrame()
Returns the data frame used to train all these models.
|
protected Futures |
remove_impl(Futures fs)
Override to remove subparts, but not self, of composite Keyed objects.
|
delete_and_lock, delete, delete, delete, read_lock, read_lock, unlock_all, unlock, update, write_lock
checksum, getBinarySerializer, getPublishedKeys, remove, remove, remove, remove
clone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeJSON_impl, writeJSON
public static final Grid GRID_PROTO
GridSchemaV99
protected Grid(Key key, MP params, java.lang.String[] hyperNames, java.lang.String modelName, PojoUtils.FieldNaming fieldNaming)
key
- reference to this objectparams
- initial parameters used by grid searchhyperNames
- names of used hyper parametersmodelName
- name of model included in this object (e.g., "GBM")public java.lang.String getModelName()
public Frame getTrainingFrame()
All models are trained on the same data frame, but might be validated on multiple different frames.
public Model getModel(MP params)
params
- parameters of the modelpublic Key<Model>[] getModelKeys()
public Model[] getModels()
public int getModelCount()
public int getFailureCount()
public Model.Parameters[] getFailedParameters()
getFailedParameters()
to obtain "raw" model parameters.
Note: cannot return MP[]
because of PUBDEV-1863 See:
https://0xdata.atlassian.net/browse/PUBDEV-1863public java.lang.String[] getFailureDetails()
public java.lang.String[] getFailureStackTraces()
public java.lang.String[][] getFailedRawParameters()
public java.lang.Object[] getHyperValues(MP parms)
parms
- model parameterspublic java.lang.String[] getHyperNames()
protected Futures remove_impl(Futures fs)
Keyed
Vec
(removing associated Chunk
keys)
and Frame
(removing associated Vec
keys.)remove_impl
in class Keyed<Grid<MP extends Model.Parameters>>
protected long checksum_impl()
Keyed
checksum_impl
in class Keyed<Grid<MP extends Model.Parameters>>