besskge.negative_sampler.PlaceholderNegativeSampler
- class besskge.negative_sampler.PlaceholderNegativeSampler(corruption_scheme, seed=0)[source]
A placeholder sharded negative sampler, returns no negatives when called. Used with
besskge.bess.TopKQueryBessKGE
to score queries against all entities in the knowledge graph.Initialize placeholder negative sampler.
- Parameters:
corruption_scheme (
str
) – seeShardedNegativeSampler
seed (
int
) – No effect.