pytorchltr icon indicating copy to clipboard operation
pytorchltr copied to clipboard

A better explanation about the n tensor

Open celsofranssa opened this issue 7 months ago • 0 comments

The input to an LTR loss function comprises three tensors:

scores: a tensor of size (batch_size, number of scores) relevance: a tensor of size (batch_size, number of relevance scores) n: a tensor of size (batch_size) ( the number of docs per learning instance)

Could you provide a better explanation of n?

celsofranssa avatar Dec 05 '23 01:12 celsofranssa