The ML.TRAINING_INFO function

This document describes the ML.TRAINING_INFO function, which lets you see information about the training iterations of a model.

You can run ML.TRAINING_INFO while the CREATE MODEL statement for the target model is running, or you can wait until after the CREATE MODEL statement completes. If you run ML.TRAINING_INFO before the first training iteration of the CREATE MODEL statement completes, the query returns a Not found error.

Syntax

ML.TRAINING_INFO(MODEL `project_id.dataset.model`)

Arguments

ML.TRAINING_INFO takes the following arguments:

Output

ML.TRAINING_INFO returns the following columns:

Permissions

You must have the bigquery.models.create and bigquery.models.getData Identity and Access Management (IAM) permissions in order to run ML.TRAINING_INFO.

Limitations

ML.TRAINING_INFO is subject to the following limitations:

Example

The following example retrieves training information from the model mydataset.mymodel in your default project:

SELECT
  *
FROM
  ML.TRAINING_INFO(MODEL `mydataset.mymodel`)

What's next