LossWeighter
- class LossWeighter[source]
Bases:
ABCDetermine loss weights for triples.
Methods Summary
__call__(h, r, t)Calculate the sample weights for the given triples.
weight_triples(mapped_triples)Calculate the sample weights for the given batch of triples.
Methods Documentation