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

Predictions for individual queries #1

Open
hlncrg opened this issue Dec 8, 2022 · 1 comment
Open

Predictions for individual queries #1

hlncrg opened this issue Dec 8, 2022 · 1 comment

Comments

@hlncrg
Copy link

hlncrg commented Dec 8, 2022

It seems that the code will output metrics. I wonder if there is a way to output the actual predictions per query?

@ArvinZhuang
Copy link
Owner

Hi @hlncrg,

You can simply change trainer.train() to trainer.predict(valid_dataset) for the DSI task in run.py
and you can write the ranking list into a file in def compute_metrics(eval_preds):.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants