public class ModelSchema<M extends Model<M,P,O>,S extends ModelSchema<M,S,P,PS,O,OS>,P extends Model.Parameters,PS extends ModelParametersSchema<P,PS>,O extends Model.Output,OS extends ModelOutputSchema<O,OS>> extends ModelSchemaBase<M,S>
Schema.Meta
Modifier and Type | Field and Description |
---|---|
protected long |
checksum |
OS |
output |
PS |
parameters |
algo, algo_full_name, model_id
__meta, _impl_class, _version_pattern, EXCLUDE_FIELDS, INCLUDE_FIELDS
Constructor and Description |
---|
ModelSchema() |
ModelSchema(M m) |
Modifier and Type | Method and Description |
---|---|
OS |
createOutputSchema()
Factory method to create the model-specific output schema.
|
PS |
createParametersSchema()
Factory method to create the model-specific parameters schema.
|
S |
fillFromImpl(M m)
Version and Schema-specific filling from the implementation object.
|
java.lang.String |
toJava() |
java.lang.String |
toJava(boolean preview) |
AutoBuffer |
writeJSON_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
acceptsFrame, createAndFillImpl, createImpl, extractVersion, fillFromParms, fillImpl, getExperimentalVersion, 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) public PS extends ModelParametersSchema<P,PS> parameters
@API(help="The build output for the model (e.g. the cluster centers for KMeans).", direction=OUTPUT) public OS extends ModelOutputSchema<O,OS> output
public ModelSchema()
public ModelSchema(M m)
public PS createParametersSchema()
public OS createOutputSchema()
public S fillFromImpl(M m)
Schema
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.public java.lang.String toJava()
public java.lang.String toJava(boolean preview)