besskge.negative_sampler
Classes for sampling entities to use as corrupted heads/tails when constructing negative samples.
Classes
|
A placeholder sharded negative sampler, returns no negatives when called. |
|
Sample random negative entities for each triple in batch. |
Base class for sharded negative sampler. |
|
|
Return (possibly triple-specific) predetermined negative entities. |
Corrupt entities with entities of the same type. |