public abstract class ModelMetricsBase extends Schema<ModelMetrics,ModelMetricsBase>
| Modifier and Type | Field and Description |
|---|---|
AUCBase |
auc |
ConfusionMatrixBase |
cm |
long |
duration_in_ms |
water.api.FrameV2 |
frame |
long |
frame_checksum |
ModelSchema |
model |
Model.ModelCategory |
model_category |
long |
model_checksum |
water.api.FrameV2 |
predictions |
long |
scoring_time |
_version_pattern, schema_name, schema_type, schema_version| Constructor and Description |
|---|
ModelMetricsBase() |
| Modifier and Type | Method and Description |
|---|---|
ModelMetrics |
createImpl()
Create an implementation object and any child objects but DO NOT fill them.
|
ModelMetricsBase |
fillFromImpl(ModelMetrics modelMetrics)
Version and Schema-specific filling from the implementation object.
|
ModelMetrics |
fillImpl(ModelMetrics m)
Fill an impl object and any children from this schema and its children.
|
static ModelMetricsBase |
schema(int version) |
acceptsFrame, createAndFillImpl, extractVersion, fillFromParms, getImplClass, getImplClass, markdown, markdown, registerclone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON@API(help="The model used for this scoring run.", direction=INOUT) public ModelSchema model
@API(help="The checksum for the model used for this scoring run.", direction=INOUT) public long model_checksum
@API(help="The frame used for this scoring run.", direction=INOUT) public water.api.FrameV2 frame
@API(help="The checksum for the frame used for this scoring run.", direction=INOUT) public long frame_checksum
@API(help="The category (e.g., Clustering) for the model used for this scoring run.", direction=OUTPUT) public Model.ModelCategory model_category
@API(help="The duration in mS for this scoring run.", direction=OUTPUT) public long duration_in_ms
@API(help="The time in mS since the epoch for the start of this scoring run.", direction=OUTPUT) public long scoring_time
@API(help="The ConfusionMatrix object for this scoring run.", direction=OUTPUT) public ConfusionMatrixBase cm
public ModelMetrics createImpl()
SchemaFor objects without children this method does all the required work. For objects with children the subclass will need to override, e.g. by calling super.createImpl() and then calling createImpl() on its children.
Note that impl objects for schemas which override this method don't need to have a default constructor (e.g., a Keyed object constructor can still create and set the Key), but they must not fill any fields which can be filled later from the schema.
TODO: We *could* handle the common case of children with the same field names here by finding all of our fields that are themselves Schemas.
createImpl in class Schema<ModelMetrics,ModelMetricsBase>public ModelMetrics fillImpl(ModelMetrics m)
SchemafillImpl in class Schema<ModelMetrics,ModelMetricsBase>public ModelMetricsBase fillFromImpl(ModelMetrics modelMetrics)
SchemafillFromImpl in class Schema<ModelMetrics,ModelMetricsBase>public static ModelMetricsBase schema(int version)