'How to pass groups in pointwise learning to rank

In pairwise or listwise learning to rank using xgboost.. i can pass a parameter called group during model training which basically means to fit the model for every query group. But how do i pass groups for pointwise learning to rank using say ordinal regression?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source