<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L300-L374) |

Constructs the Experiment config from Flags or equivalent object.

    tfm.core.train_utils.ExperimentParser(
        flags_obj
    )

Most of the cases, users only need to call the `parse()` function:

    builder = ExperimentParser(FLAGS)
    params = builder.parse()

The advanced users can modify the flow by calling the parse_\*() functions
separately.

## Methods

### `base_experiment`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L325-L329)

    base_experiment()

Get the base experiment config from --experiment field.

### `parse`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L316-L323)

    parse()

Overrall process of constructing Experiment config.

### `parse_config_file`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L331-L336)

    parse_config_file(
        params
    )

Override the configs of params from the config_file.

### `parse_data_service`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L348-L363)

    parse_data_service(
        params
    )

Override the data service configs of params from flags.

### `parse_params_override`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L365-L374)

    parse_params_override(
        params
    )

### `parse_runtime`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L338-L346)

    parse_runtime(
        params
    )

Override the runtime configs of params from flags.