keyField property
The name of the field that is considered as a key.
The values identified by the key field is not included in the transformed
instances that is sent to the Model. This is similar to
specifying this name of the field in
excluded_fields.
In addition, the batch prediction output will not include the instances.
Instead the output will only include the value of the key field, in a
field named key in the output:
- For
jsonloutput format, the output will have akeyfield instead of theinstancefield. - For
csv/bigqueryoutput format, the output will have have akeycolumn instead of the instance feature columns.
The input must be JSONL with objects at each line, CSV, BigQuery or TfRecord.
Implementation
final String keyField;