public class TabulateV3 extends SchemaV3<Tabulate,TabulateV3>
SchemaV3.Meta
Modifier and Type | Field and Description |
---|---|
TwoDimTableV3 |
count_table |
KeyV3.FrameKeyV3 |
dataset |
int |
nbins_predictor |
int |
nbins_response |
FrameV3.ColSpecifierV3 |
predictor |
FrameV3.ColSpecifierV3 |
response |
TwoDimTableV3 |
response_table |
FrameV3.ColSpecifierV3 |
weight |
Constructor and Description |
---|
TabulateV3() |
TabulateV3(Tabulate impl) |
Modifier and Type | Method and Description |
---|---|
Tabulate |
createImpl()
Create an appropriate implementation object and any child objects but does not fill them.
|
TabulateV3 |
fillFromImpl(Tabulate impl)
Fill this Schema from the given implementation object.
|
createAndFillImpl, extractVersionFromSchemaName, fillFromImpl, fillFromImpl, fillFromParms, fillFromParms, fillImpl, fillImpl, getImplClass, getImplClass, getSchemaName, getSchemaType, getSchemaVersion, init_meta, markdown, markdown, newInstance, newInstance, setField, setSchemaType_doNotCall
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal
@API(help="Dataset", required=true) public KeyV3.FrameKeyV3 dataset
@API(help="Predictor", required=true, level=critical, is_member_of_frames="dataset", is_mutually_exclusive_with="col_y", direction=INOUT) public FrameV3.ColSpecifierV3 predictor
@API(help="Response", required=true, level=critical, is_member_of_frames="dataset", is_mutually_exclusive_with="col_x", direction=INOUT) public FrameV3.ColSpecifierV3 response
@API(help="Observation weights (optional)", required=false, level=critical, is_member_of_frames="dataset", is_mutually_exclusive_with="col_x", direction=INOUT) public FrameV3.ColSpecifierV3 weight
@API(help="Counts table", direction=OUTPUT) public TwoDimTableV3 count_table
@API(help="Response table", direction=OUTPUT) public TwoDimTableV3 response_table
public TabulateV3()
public TabulateV3(Tabulate impl)
public TabulateV3 fillFromImpl(Tabulate impl)
Schema
fillFromImpl
in class Schema<Tabulate,TabulateV3>
public Tabulate 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<Tabulate,TabulateV3>