MP
- type of model build parameterspublic class Grid<MP extends Model.Parameters> extends Lockable<Grid<MP>>
Modifier and Type | Field and Description |
---|---|
static Grid |
GRID_PROTO
Publicly available Grid prototype - used by REST API.
|
Modifier | Constructor and Description |
---|---|
protected |
Grid(Key key,
MP params,
java.lang.String[] hyperNames,
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.
|
TwoDimTable |
createScoringHistoryTable() |
TwoDimTable |
createSummaryTable(Key<Model>[] model_ids,
java.lang.String sort_by,
boolean decreasing) |
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.
|
ScoringInfo[] |
getScoringInfos() |
Frame |
getTrainingFrame()
Returns the data frame used to train all these models.
|
java.lang.Class<KeyV3.GridKeyV3> |
makeSchema() |
protected Keyed |
readAll_impl(AutoBuffer ab,
Futures fs) |
protected Futures |
remove_impl(Futures fs)
Override to remove subparts, but not self, of composite Keyed objects.
|
void |
setScoringInfos(ScoringInfo[] scoring_infos) |
protected AutoBuffer |
writeAll_impl(AutoBuffer ab)
Write out K/V pairs
|
delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock, write_lock, write_lock
checksum, readAll, remove, remove, remove, remove, writeAll
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public static final Grid GRID_PROTO
GridSchemaV99
protected Grid(Key key, MP params, java.lang.String[] hyperNames, PojoUtils.FieldNaming fieldNaming)
key
- reference to this objectparams
- initial parameters used by grid searchhyperNames
- names of used hyper parameterspublic java.lang.String getModelName()
public ScoringInfo[] getScoringInfos()
public void setScoringInfos(ScoringInfo[] scoring_infos)
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 AutoBuffer writeAll_impl(AutoBuffer ab)
writeAll_impl
in class Keyed<Grid<MP extends Model.Parameters>>
protected Keyed readAll_impl(AutoBuffer ab, Futures fs)
readAll_impl
in class Keyed<Grid<MP extends Model.Parameters>>
protected long checksum_impl()
Keyed
checksum_impl
in class Keyed<Grid<MP extends Model.Parameters>>
public java.lang.Class<KeyV3.GridKeyV3> makeSchema()
makeSchema
in class Keyed<Grid<MP extends Model.Parameters>>
public TwoDimTable createSummaryTable(Key<Model>[] model_ids, java.lang.String sort_by, boolean decreasing)
public TwoDimTable createScoringHistoryTable()