generateExplanation property
Generate explanation with the batch prediction results.
When set to true, the batch prediction output changes based on the
predictions_format field of the
BatchPredictionJob.output_config
object:
bigquery: output includes a column namedexplanation. The value is a struct that conforms to theExplanationobject.jsonl: The JSON objects on each line include an additional entry keyedexplanation. The value of the entry is a JSON object that conforms to theExplanationobject.csv: Generating explanations for CSV format is not supported.
If this field is set to true, either the
Model.explanation_spec
or
explanation_spec
must be populated.
Implementation
final bool generateExplanation;