Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unclear how to prepare data for lambdarank_position_bias_regularization option #6506

Open
greyowl opened this issue Jun 25, 2024 · 3 comments

Comments

@greyowl
Copy link

greyowl commented Jun 25, 2024

documentation

I want to train a learning to rank model with position bias regularization option(lambdarank_position_bias_regularization) turned on. But the documentation is unclear on how the position data needs to be prepared for training.

image

Can I get a pointer on how to prepare training data with position information? I am planning to use python

@jameslamb
Copy link
Collaborator

And there are some Python examples in tests:

def test_ranking_with_position_information_with_file(tmp_path):

@shiyu1994
Copy link
Collaborator

shiyu1994 commented Jun 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment