public class ModelParameterSchemaV2 extends Schema<Iced,ModelParameterSchemaV2>
Schema.Meta
Modifier and Type | Field and Description |
---|---|
Iced |
actual_value |
Iced |
default_value |
java.lang.String |
help |
java.lang.String[] |
is_member_of_frames |
java.lang.String[] |
is_mutually_exclusive_with |
java.lang.String |
label |
java.lang.String |
level |
java.lang.String |
name |
boolean |
required |
java.lang.String |
type |
java.lang.String[] |
values |
__meta, _impl_class, _version_pattern
Constructor and Description |
---|
ModelParameterSchemaV2() |
ModelParameterSchemaV2(ModelParametersSchema schema,
ModelParametersSchema default_schema,
java.lang.reflect.Field f)
TODO: refactor using SchemaMetadata.
|
Modifier and Type | Method and Description |
---|---|
Iced |
createImpl()
Create an implementation object and any child objects but DO NOT fill them.
|
ModelParameterSchemaV2 |
fillFromImpl(Iced iced)
Version and Schema-specific filling from the implementation object.
|
AutoBuffer |
writeJSON_impl(AutoBuffer ab)
ModelParameterSchema has its own serializer so that
|
acceptsFrame, createAndFillImpl, 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="help for the UI, e.g. \"regularization multiplier, typically used for foo bar baz etc.\"", direction=OUTPUT) public java.lang.String help
@API(help="actual value as set by the user and / or modified by the ModelBuilder, e.g., 10", direction=OUTPUT) public Iced actual_value
@API(help="the importance of the parameter, used by the UI, e.g. \"critical\", \"extended\" or \"expert\"", direction=OUTPUT) public java.lang.String level
@API(help="list of valid values for use by the front-end", direction=OUTPUT) public java.lang.String[] values
@API(help="For Vec-type fields this is the set of other Vec-type fields which must contain mutually exclusive values; for example, for a SupervisedModel the response_column must be mutually exclusive with the weights_column") public java.lang.String[] is_member_of_frames
@API(help="For Vec-type fields this is the set of Frame-type fields which must contain the named column; for example, for a SupervisedModel the response_column must be in both the training_frame and (if it\'s set) the validation_frame") public java.lang.String[] is_mutually_exclusive_with
public ModelParameterSchemaV2()
public ModelParameterSchemaV2(ModelParametersSchema schema, ModelParametersSchema default_schema, java.lang.reflect.Field f)
public ModelParameterSchemaV2 fillFromImpl(Iced iced)
Schema
fillFromImpl
in class Schema<Iced,ModelParameterSchemaV2>
public Iced createImpl()
Schema
For 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<Iced,ModelParameterSchemaV2>
public AutoBuffer writeJSON_impl(AutoBuffer ab)
writeJSON_impl
in interface Freezable
writeJSON_impl
in class Iced
ab
-