# tfr.utils.shuffle_valid_indices

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/utils.py#L198-L200) |

Returns a shuffle of indices with valid ones on top.

    tfr.utils.shuffle_valid_indices(
        is_valid, seed=None
    )