# Rank or not to rank the predictions?

**URL:** <https://forum.numer.ai/t/rank-or-not-to-rank-the-predictions/5643>\
**Category:** Tournament\
**Created:** [August 12, 2022, 10:00pm UTC](https://forum.numer.ai/t/rank-or-not-to-rank-the-predictions/5643 "2022-08-12T22:00:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taori](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@taori](https://forum.numer.ai/u/taori)\
**Post date:** [August 12, 2022, 10:00pm UTC](https://forum.numer.ai/t/rank-or-not-to-rank-the-predictions/5643/1 "2022-08-12T22:00:49Z")

</div>

While the [example script](https://github.com/numerai/example-scripts/blob/838bfd1788feaf40362d6bedb3e4683832a9dbb1/example_model.py#L143) ranks the predictions and also states that it is a requirement , the [official numerai documentation](https://docs.numer.ai/tournament/learn#modeling) doesn’t rank the predictions but it doesn’t event document the format. So I now wonder what is the official submission format. Any idea?The ranking doesn’t affect the corr but I don’t know about TC.

---

<div class="post-metadata">

**Author:** ![restrading](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/restrading/32/2928_2.png) [@restrading](https://forum.numer.ai/u/restrading)\
**Post date:** [August 13, 2022, 12:03pm UTC](https://forum.numer.ai/t/rank-or-not-to-rank-the-predictions/5643/2 "2022-08-13T12:03:32Z")

</div>

They rank your predictions after submission, so it does not matter if you do it or not.

---

<div class="post-metadata">

**Author:** ![jrb](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/jrb/32/3472_2.png) [@jrb](https://forum.numer.ai/u/jrb)\
**Post date:** [August 13, 2022, 2:08pm UTC](https://forum.numer.ai/t/rank-or-not-to-rank-the-predictions/5643/3 "2022-08-13T14:08:38Z")

</div>

Ranking isn’t required. Also, if you do rank, do it on a per-era basis. The only requirement is that the predictions are in [0, 1). The [comment](https://github.com/numerai/example-scripts/blob/838bfd1788feaf40362d6bedb3e4683832a9dbb1/example_model.py#L142-L143) above the line you’d linked to, from the example script indirectly explains it. The intent of the line you cite in the example model, isn’t to rank, but to perform [MinMax scaling](https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html) in a one liner.

---

<div class="post-metadata">

**Author:** ![taori](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@taori](https://forum.numer.ai/u/taori)\
**Post date:** [August 16, 2022, 4:28pm UTC](https://forum.numer.ai/t/rank-or-not-to-rank-the-predictions/5643/4 "2022-08-16T16:28:26Z")

</div>

Thanks both @restrading and @jrb. I hope @restrading is right though, otherwise the official documentation would be providing a wrong example.
