Skip to content
Quantoros

A CatBoost ranking dataset is reordered after explicit winner-loser pairs are built. What must be updated?

Classic MLLevel: IntermediateCatBoost · Pool data contract

A CatBoost ranking dataset is reordered after explicit winner-loser pairs are built. What must be updated?

Hints
  • Pair indices refer to row positions, not permanent document IDs.
  • Preserve orientation as well as identity.

Answer

Pair indices must be remapped to the reordered rows, preserving winner first and loser second. Align labels, weights and group metadata as well; valid integer indices can still silently refer to the wrong documents.

Source and licence: CatBoost · Pool data contract · Apache-2.0 · answer: Quantoros editorial

Related questions