<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/applications/vgg19.py#L246-L248) |

Decodes the prediction of an ImageNet model.

    tf.keras.applications.vgg19.decode_predictions(
        preds, top=5
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Neural style transfer](https://www.tensorflow.org/tutorials/generative/style_transfer) |

<br />

<br />

<br />

| ## Args ||
|---|---|
| `preds` | NumPy array encoding a batch of predictions. |
| `top` | Integer, how many top-guesses to return. Defaults to `5`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of lists of top class prediction tuples `(class_name, class_description, score)`. One list of tuples per sample in batch input. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | In case of invalid shape of the `pred` array (must be 2D). |

<br />