Closed saransh-mehta closed 4 years ago
Here, it supports pair-wise ranking. Supports we have two samples, A (positive), B (negative), ruid is id of A/B which may be useful for model evaluation. For ranking, it maps A/B to a scale measuring relevance score, thus you need to set n_class to 1. The objective is to max of likelihood of A. Hope this helps. Xiaodong
I was trying to use custom data for passage ranking by creating a task with data_format 'PremiseAndMultiHypothesis'. While running train.py with RankCeCriterion, I'm getting the following error:
I tried by reshaping/commenting the reshaping of input and target in RankCeCriterion mentioned in loss.py,
But this is triggering cuda device-side assert error with following trace
I'm using the following command to run train.py
task_def.yml
My tsv data row before running prepo_std.py looks like following
That is "id"\t"ruids"\t"label"\t"premise"\t"hypothesis1"\t"hypothesis2"...
I also have couple of more concerns
Other tasks of Classification for PremiseOnly and PremiseAndOneHypothesis worked fine for me. This issue comes only during Ranking.
Please help me find a solution. I can provide any additional information required on the issue. Thanks in advance!!