public abstract class ModelSchema<M extends Model,S extends ModelSchema<M,S,P,O>,P extends Model.Parameters,O extends Model.Output> extends Schema<M,S>
Schema.Meta
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
algo |
protected long |
checksum |
protected KeyV1.ModelKeyV1 |
key |
protected ModelOutputSchema |
output |
protected ModelParametersSchema |
parameters |
__meta, _impl_class, _version_pattern
Constructor and Description |
---|
ModelSchema() |
ModelSchema(M m) |
Modifier and Type | Method and Description |
---|---|
abstract ModelOutputSchema |
createOutputSchema()
Factory method to create the model-specific output schema.
|
abstract ModelParametersSchema |
createParametersSchema()
Factory method to create the model-specific parameters schema.
|
S |
fillFromImpl(M m)
Version and Schema-specific filling from the implementation object.
|
AutoBuffer |
writeJSON_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
acceptsFrame, createAndFillImpl, createImpl, extractVersion, fillFromParms, fillImpl, getHighestSupportedVersion, getImplClass, getImplClass, getLatestVersion, getSchemaVersion, markdown, markdown, markdown, markdown, newInstance, register, registerAllSchemasIfNecessary, schema, schema, schema, schema, schema, schemaClass, schemaClass, schemaClass, schemaClass, schemas
clone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON
@API(help="The build parameters for the model (e.g. K for KMeans).", direction=OUTPUT) protected ModelParametersSchema parameters
@API(help="The build output for the model (e.g. the cluster centers for KMeans).", direction=OUTPUT) protected ModelOutputSchema output
public ModelSchema()
public ModelSchema(M m)
public abstract ModelParametersSchema createParametersSchema()
public abstract ModelOutputSchema createOutputSchema()
public S fillFromImpl(M m)
Schema
fillFromImpl
in class Schema<M extends Model,S extends ModelSchema<M,S,P,O>>
public AutoBuffer writeJSON_impl(AutoBuffer ab)
Iced
Iced
serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.writeJSON_impl
in interface Freezable
writeJSON_impl
in class Iced
ab
- AutoBuffer
to write this object to.AutoBuffer
for flow-coding.