public abstract class ModelSchema<M extends Model,P extends Model.Parameters,O extends Model.Output,S extends ModelSchema<M,P,O,S>> extends Schema<M,S>
| Modifier and Type | Field and Description |
|---|---|
protected Key |
key |
protected ModelOutputSchema |
output |
protected ModelParametersSchema |
parameters |
| Constructor and Description |
|---|
ModelSchema() |
ModelSchema(M m) |
| Modifier and Type | Method and Description |
|---|---|
M |
createImpl() |
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) |
AutoBuffer |
writeJSON_impl(AutoBuffer ab) |
acceptsFrame, fillFromParmsclone, frozenType, read_impl, read, readJSON_impl, readJSON, write_impl, write, writeHTML_impl, writeHTML, writeJSON@API(help="The build parameters for the model (e.g. K for KMeans).") protected ModelParametersSchema parameters
@API(help="The build output for the model (e.g. the clusters for KMeans).") protected ModelOutputSchema output
public ModelSchema()
public ModelSchema(M m)
public abstract ModelParametersSchema createParametersSchema()
public abstract ModelOutputSchema createOutputSchema()
public M createImpl()
createImpl in class Schema<M extends Model,S extends ModelSchema<M,P,O,S>>public S fillFromImpl(M m)
fillFromImpl in class Schema<M extends Model,S extends ModelSchema<M,P,O,S>>public AutoBuffer writeJSON_impl(AutoBuffer ab)
writeJSON_impl in interface FreezablewriteJSON_impl in class Iced