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
jsonl
output format, the output will have akey
field instead of theinstance
field. * Forcsv
/bigquery
output format, the output will have have akey
column instead of the instance feature columns. The input must be JSONL with objects at each line, CSV, BigQuery or TfRecord.
Implementation
core.String? keyField;