# tf.keras.callbacks.ProgbarLogger

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/callbacks/ProgbarLogger) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/keras/callbacks.py#L713-L789) |

Callback that prints metrics to stdout.

Inherits From: [`Callback`](https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/keras/callbacks/Callback)

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.callbacks.ProgbarLogger`](https://www.tensorflow.org/api_docs/python/tf/keras/callbacks/ProgbarLogger)

<br />

    tf.keras.callbacks.ProgbarLogger(
        count_mode='samples', stateful_metrics=None
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `count_mode` | One of "steps" or "samples". Whether the progress bar should count samples seen or steps (batches) seen. |
| `stateful_metrics` | Iterable of string names of metrics that should *not* be averaged over an epoch. Metrics in this list will be logged as-is. All others will be averaged over time (e.g. loss, etc). |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | In case of invalid `count_mode`. |

<br />

## Methods

### `set_model`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/keras/callbacks.py#L465-L466)

    set_model(
        model
    )

### `set_params`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/keras/callbacks.py#L462-L463)

    set_params(
        params
    )