From 105652bb8fe187b45399118c3e8b389d21015341 Mon Sep 17 00:00:00 2001 From: AlCatt91 <> Date: Fri, 27 Oct 2023 11:51:08 +0000 Subject: [PATCH] AlCatt91 published a site update --- API_reference.html | 28 +- _modules/besskge/bess.html | 153 ++++++- _modules/besskge/pipeline.html | 402 ++++++++++++++++++ _modules/besskge/utils.html | 36 ++ _modules/index.html | 1 + _sources/API_reference.rst.txt | 1 + .../besskge.bess.AllScoresBESS.rst.txt | 12 + _sources/generated/besskge.bess.rst.txt | 1 + ...besskge.pipeline.AllScoresPipeline.rst.txt | 12 + _sources/generated/besskge.pipeline.rst.txt | 31 ++ .../besskge.utils.get_entity_filter.rst.txt | 6 + _sources/generated/besskge.utils.rst.txt | 1 + dev_guide.html | 4 +- ...tch_sampler.RandomShardedBatchSampler.html | 1 + ...atch_sampler.RigidShardedBatchSampler.html | 1 + ...kge.batch_sampler.ShardedBatchSampler.html | 1 + generated/besskge.batch_sampler.html | 1 + generated/besskge.bess.AllScoresBESS.html | 196 +++++++++ generated/besskge.bess.BessKGE.html | 6 +- .../besskge.bess.EmbeddingMovingBessKGE.html | 2 + .../besskge.bess.ScoreMovingBessKGE.html | 2 + generated/besskge.bess.TopKQueryBessKGE.html | 14 +- generated/besskge.bess.html | 21 +- generated/besskge.dataset.KGDataset.html | 5 +- generated/besskge.dataset.html | 5 +- generated/besskge.embedding.html | 1 + .../besskge.embedding.init_KGE_normal.html | 1 + .../besskge.embedding.init_KGE_uniform.html | 1 + .../besskge.embedding.init_uniform_norm.html | 1 + ...embedding.initialize_entity_embedding.html | 1 + ...bedding.initialize_relation_embedding.html | 1 + ...embedding.refactor_embedding_sharding.html | 1 + generated/besskge.loss.BaseLossFunction.html | 1 + generated/besskge.loss.LogSigmoidLoss.html | 1 + .../besskge.loss.MarginBasedLossFunction.html | 1 + generated/besskge.loss.MarginRankingLoss.html | 1 + ...e.loss.SampledSoftmaxCrossEntropyLoss.html | 1 + generated/besskge.loss.html | 1 + generated/besskge.metric.BaseMetric.html | 1 + generated/besskge.metric.Evaluation.html | 1 + generated/besskge.metric.HitsAtK.html | 1 + generated/besskge.metric.METRICS_DICT.html | 1 + generated/besskge.metric.ReciprocalRank.html | 1 + generated/besskge.metric.html | 1 + ...ve_sampler.PlaceholderNegativeSampler.html | 1 + ..._sampler.RandomShardedNegativeSampler.html | 1 + ...gative_sampler.ShardedNegativeSampler.html | 1 + ...ler.TripleBasedShardedNegativeSampler.html | 1 + ...mpler.TypeBasedShardedNegativeSampler.html | 1 + generated/besskge.negative_sampler.html | 1 + .../besskge.pipeline.AllScoresPipeline.html | 192 +++++++++ generated/besskge.pipeline.html | 138 ++++++ .../besskge.scoring.BaseScoreFunction.html | 1 + generated/besskge.scoring.BoxE.html | 1 + generated/besskge.scoring.ComplEx.html | 1 + generated/besskge.scoring.DistMult.html | 1 + ...ge.scoring.DistanceBasedScoreFunction.html | 1 + generated/besskge.scoring.InterHT.html | 1 + ...ring.MatrixDecompositionScoreFunction.html | 1 + generated/besskge.scoring.PairRE.html | 1 + generated/besskge.scoring.RotatE.html | 1 + generated/besskge.scoring.TranS.html | 1 + generated/besskge.scoring.TransE.html | 1 + generated/besskge.scoring.TripleRE.html | 1 + generated/besskge.scoring.html | 1 + ...besskge.sharding.PartitionedTripleSet.html | 1 + generated/besskge.sharding.Sharding.html | 1 + generated/besskge.sharding.html | 1 + .../besskge.utils.complex_multiplication.html | 2 + generated/besskge.utils.complex_rotation.html | 2 + generated/besskge.utils.gather_indices.html | 6 +- .../besskge.utils.get_entity_filter.html | 165 +++++++ generated/besskge.utils.html | 5 + genindex.html | 36 +- index.html | 6 + objects.inv | Bin 4720 -> 4893 bytes py-modindex.html | 5 + searchindex.js | 2 +- 78 files changed, 1496 insertions(+), 47 deletions(-) create mode 100644 _modules/besskge/pipeline.html create mode 100644 _sources/generated/besskge.bess.AllScoresBESS.rst.txt create mode 100644 _sources/generated/besskge.pipeline.AllScoresPipeline.rst.txt create mode 100644 _sources/generated/besskge.pipeline.rst.txt create mode 100644 _sources/generated/besskge.utils.get_entity_filter.rst.txt create mode 100644 generated/besskge.bess.AllScoresBESS.html create mode 100644 generated/besskge.pipeline.AllScoresPipeline.html create mode 100644 generated/besskge.pipeline.html create mode 100644 generated/besskge.utils.get_entity_filter.html diff --git a/API_reference.html b/API_reference.html index ea8b513..9ad15b3 100644 --- a/API_reference.html +++ b/API_reference.html @@ -18,7 +18,7 @@ - + @@ -46,6 +46,7 @@
+ | |
+ | High-level APIs for training/inference with BESS. |
+
Utilities for building and storing knowledge graph datasets as collections of (h,r,t) triples. |
|
+ | |
Sharding of embedding tables and triple sets for distributed execution. |
|
+ | |
Classes for sampling batches of positive and negative triples for each processing device, according to the BESS distribution scheme. |
|
+ | |
Classes for sampling entities to use as corrupted heads/tails when constructing negative samples. |
|
+ | |
PyTorch modules implementing the BESS distribution scheme [CJM+22] for KGE training and inference on multiple IPUs. |
|
+ | |
Functions for scoring positive and negative triples, specific to each KGE model. |
|
+ | |
Functions for computing the batch loss based on the scores of positive and negative samples. |
|
+ | |
Utilities for computing metrics to evaluate the predictions of KGE models. |
|
+ | |
Utilities for initializing and managing entity/relation embedding tables. |
|
+ | |
General purpose utilities. |
+ | + |
B |
|
Python Module Index
| besskge.negative_sampler
| |
+ |
+ besskge.pipeline | + | ||
diff --git a/searchindex.js b/searchindex.js index 3b7b9af..8fc6ee6 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["API_reference", "bess", "bibliography", "contrib", "dev_guide", "generated/besskge.batch_sampler", "generated/besskge.batch_sampler.RandomShardedBatchSampler", "generated/besskge.batch_sampler.RigidShardedBatchSampler", "generated/besskge.batch_sampler.ShardedBatchSampler", "generated/besskge.bess", "generated/besskge.bess.BessKGE", "generated/besskge.bess.EmbeddingMovingBessKGE", "generated/besskge.bess.ScoreMovingBessKGE", "generated/besskge.bess.TopKQueryBessKGE", "generated/besskge.dataset", "generated/besskge.dataset.KGDataset", "generated/besskge.embedding", "generated/besskge.embedding.init_KGE_normal", "generated/besskge.embedding.init_KGE_uniform", "generated/besskge.embedding.init_uniform_norm", "generated/besskge.embedding.initialize_entity_embedding", "generated/besskge.embedding.initialize_relation_embedding", "generated/besskge.embedding.refactor_embedding_sharding", "generated/besskge.loss", "generated/besskge.loss.BaseLossFunction", "generated/besskge.loss.LogSigmoidLoss", "generated/besskge.loss.MarginBasedLossFunction", "generated/besskge.loss.MarginRankingLoss", "generated/besskge.loss.SampledSoftmaxCrossEntropyLoss", "generated/besskge.metric", "generated/besskge.metric.BaseMetric", "generated/besskge.metric.Evaluation", "generated/besskge.metric.HitsAtK", "generated/besskge.metric.METRICS_DICT", "generated/besskge.metric.ReciprocalRank", "generated/besskge.negative_sampler", "generated/besskge.negative_sampler.PlaceholderNegativeSampler", "generated/besskge.negative_sampler.RandomShardedNegativeSampler", "generated/besskge.negative_sampler.ShardedNegativeSampler", "generated/besskge.negative_sampler.TripleBasedShardedNegativeSampler", "generated/besskge.negative_sampler.TypeBasedShardedNegativeSampler", "generated/besskge.scoring", "generated/besskge.scoring.BaseScoreFunction", "generated/besskge.scoring.BoxE", "generated/besskge.scoring.ComplEx", "generated/besskge.scoring.DistMult", "generated/besskge.scoring.DistanceBasedScoreFunction", "generated/besskge.scoring.InterHT", "generated/besskge.scoring.MatrixDecompositionScoreFunction", "generated/besskge.scoring.PairRE", "generated/besskge.scoring.RotatE", "generated/besskge.scoring.TranS", "generated/besskge.scoring.TransE", "generated/besskge.scoring.TripleRE", "generated/besskge.sharding", "generated/besskge.sharding.PartitionedTripleSet", "generated/besskge.sharding.Sharding", "generated/besskge.utils", "generated/besskge.utils.complex_multiplication", "generated/besskge.utils.complex_rotation", "generated/besskge.utils.gather_indices", "index", "user_guide"], "filenames": ["API_reference.rst", "bess.rst", "bibliography.rst", "contrib.md", "dev_guide.rst", "generated/besskge.batch_sampler.rst", "generated/besskge.batch_sampler.RandomShardedBatchSampler.rst", "generated/besskge.batch_sampler.RigidShardedBatchSampler.rst", "generated/besskge.batch_sampler.ShardedBatchSampler.rst", "generated/besskge.bess.rst", "generated/besskge.bess.BessKGE.rst", "generated/besskge.bess.EmbeddingMovingBessKGE.rst", "generated/besskge.bess.ScoreMovingBessKGE.rst", "generated/besskge.bess.TopKQueryBessKGE.rst", "generated/besskge.dataset.rst", "generated/besskge.dataset.KGDataset.rst", "generated/besskge.embedding.rst", "generated/besskge.embedding.init_KGE_normal.rst", "generated/besskge.embedding.init_KGE_uniform.rst", "generated/besskge.embedding.init_uniform_norm.rst", "generated/besskge.embedding.initialize_entity_embedding.rst", "generated/besskge.embedding.initialize_relation_embedding.rst", "generated/besskge.embedding.refactor_embedding_sharding.rst", "generated/besskge.loss.rst", "generated/besskge.loss.BaseLossFunction.rst", "generated/besskge.loss.LogSigmoidLoss.rst", "generated/besskge.loss.MarginBasedLossFunction.rst", "generated/besskge.loss.MarginRankingLoss.rst", "generated/besskge.loss.SampledSoftmaxCrossEntropyLoss.rst", "generated/besskge.metric.rst", "generated/besskge.metric.BaseMetric.rst", "generated/besskge.metric.Evaluation.rst", "generated/besskge.metric.HitsAtK.rst", "generated/besskge.metric.METRICS_DICT.rst", "generated/besskge.metric.ReciprocalRank.rst", "generated/besskge.negative_sampler.rst", "generated/besskge.negative_sampler.PlaceholderNegativeSampler.rst", "generated/besskge.negative_sampler.RandomShardedNegativeSampler.rst", "generated/besskge.negative_sampler.ShardedNegativeSampler.rst", "generated/besskge.negative_sampler.TripleBasedShardedNegativeSampler.rst", "generated/besskge.negative_sampler.TypeBasedShardedNegativeSampler.rst", "generated/besskge.scoring.rst", "generated/besskge.scoring.BaseScoreFunction.rst", "generated/besskge.scoring.BoxE.rst", "generated/besskge.scoring.ComplEx.rst", "generated/besskge.scoring.DistMult.rst", "generated/besskge.scoring.DistanceBasedScoreFunction.rst", "generated/besskge.scoring.InterHT.rst", "generated/besskge.scoring.MatrixDecompositionScoreFunction.rst", "generated/besskge.scoring.PairRE.rst", "generated/besskge.scoring.RotatE.rst", "generated/besskge.scoring.TranS.rst", "generated/besskge.scoring.TransE.rst", "generated/besskge.scoring.TripleRE.rst", "generated/besskge.sharding.rst", "generated/besskge.sharding.PartitionedTripleSet.rst", "generated/besskge.sharding.Sharding.rst", "generated/besskge.utils.rst", "generated/besskge.utils.complex_multiplication.rst", "generated/besskge.utils.complex_rotation.rst", "generated/besskge.utils.gather_indices.rst", "index.rst", "user_guide.rst"], "titles": ["BESS-KGE API Reference", "BESS overview", "Bibliography", "How to contribute to the BESS-KGE project", "How to contribute to the BESS-KGE project", "besskge.batch_sampler", "besskge.batch_sampler.RandomShardedBatchSampler", "besskge.batch_sampler.RigidShardedBatchSampler", "besskge.batch_sampler.ShardedBatchSampler", "besskge.bess", "besskge.bess.BessKGE", "besskge.bess.EmbeddingMovingBessKGE", "besskge.bess.ScoreMovingBessKGE", "besskge.bess.TopKQueryBessKGE", "besskge.dataset", "besskge.dataset.KGDataset", "besskge.embedding", "besskge.embedding.init_KGE_normal", "besskge.embedding.init_KGE_uniform", "besskge.embedding.init_uniform_norm", "besskge.embedding.initialize_entity_embedding", "besskge.embedding.initialize_relation_embedding", "besskge.embedding.refactor_embedding_sharding", "besskge.loss", "besskge.loss.BaseLossFunction", "besskge.loss.LogSigmoidLoss", "besskge.loss.MarginBasedLossFunction", "besskge.loss.MarginRankingLoss", "besskge.loss.SampledSoftmaxCrossEntropyLoss", "besskge.metric", "besskge.metric.BaseMetric", "besskge.metric.Evaluation", "besskge.metric.HitsAtK", "besskge.metric.METRICS_DICT", "besskge.metric.ReciprocalRank", "besskge.negative_sampler", "besskge.negative_sampler.PlaceholderNegativeSampler", "besskge.negative_sampler.RandomShardedNegativeSampler", "besskge.negative_sampler.ShardedNegativeSampler", "besskge.negative_sampler.TripleBasedShardedNegativeSampler", "besskge.negative_sampler.TypeBasedShardedNegativeSampler", "besskge.scoring", "besskge.scoring.BaseScoreFunction", "besskge.scoring.BoxE", "besskge.scoring.ComplEx", "besskge.scoring.DistMult", "besskge.scoring.DistanceBasedScoreFunction", "besskge.scoring.InterHT", "besskge.scoring.MatrixDecompositionScoreFunction", "besskge.scoring.PairRE", "besskge.scoring.RotatE", "besskge.scoring.TranS", "besskge.scoring.TransE", "besskge.scoring.TripleRE", "besskge.sharding", "besskge.sharding.PartitionedTripleSet", "besskge.sharding.Sharding", "besskge.utils", "besskge.utils.complex_multiplication", "besskge.utils.complex_rotation", "besskge.utils.gather_indices", "BESS-KGE", "User guide"], "terms": {"when": [1, 3, 4, 10, 11, 12, 13, 21, 24, 25, 26, 27, 28, 35, 36, 39], "distribut": [1, 5, 9, 10, 13, 17, 18, 19, 54, 61, 62], "workload": 1, "over": [1, 6, 7, 8, 13, 61], "n": [1, 39, 55], "worker": [1, 6, 7, 8, 61], "ipu": [1, 3, 4, 6, 7, 8, 9, 60, 61, 62], "randomli": [1, 15], "split": [1, 15, 39], "entiti": [1, 2, 6, 7, 8, 10, 11, 12, 13, 15, 16, 20, 22, 28, 31, 32, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 61, 62], "embed": [1, 2, 10, 11, 12, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 61, 62], "tabl": [1, 10, 11, 12, 16, 20, 21, 22, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 62], "shard": [1, 6, 7, 8, 11, 12, 13, 20, 22, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 61], "equal": [1, 11], "size": [1, 6, 7, 8, 12, 13, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53, 62], "each": [1, 5, 6, 7, 8, 10, 11, 12, 13, 15, 19, 20, 21, 31, 37, 39, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56], "which": [1, 11, 15, 36, 37, 38, 39, 40], "i": [1, 3, 4, 6, 7, 8, 11, 12, 13, 15, 20, 21, 32, 37, 39, 43, 55, 59, 60, 61], "store": [1, 12, 14, 15, 55, 61, 62], "": [1, 2, 3, 4], "memori": [1, 6, 7, 8, 10, 11, 12, 61], "The": [1, 3, 4, 6, 7, 8, 10, 11, 12, 15, 22, 24, 25, 26, 27, 28, 31, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 61, 62], "relat": [1, 2, 10, 11, 12, 13, 15, 16, 21, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 61], "type": [1, 6, 7, 8, 10, 11, 12, 13, 15, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 31, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60, 61], "other": [1, 6, 7, 8, 10, 11, 12], "hand": 1, "replic": [1, 12], "across": [1, 3, 4], "usual": 1, "much": 1, "smaller": 1, "figur": 1, "1": [1, 2, 10, 11, 12, 13, 15, 17, 18, 19, 25, 26, 27, 28, 31, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 60, 62], "3": [1, 3, 4, 15, 62], "induc": 1, "partit": [1, 6, 7, 8, 10, 13, 36, 37, 38, 39, 40, 55], "tripl": [1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 21, 24, 25, 26, 27, 28, 31, 32, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 61], "dataset": [1, 2, 21, 55, 61, 62], "accord": [1, 5, 10, 11, 12, 17, 18, 19, 22, 31], "pair": [1, 2, 37, 55], "head": [1, 2, 10, 11, 12, 13, 15, 35, 37, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55], "tail": [1, 2, 10, 11, 12, 13, 15, 35, 37, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55], "At": [1, 7, 13], "execut": [1, 54], "time": [1, 6, 7, 8, 61], "both": [1, 3, 4, 24, 42, 61], "train": [1, 9, 10, 11, 12, 15, 61, 62], "infer": [1, 2, 6, 7, 8, 9, 10, 13, 61, 62], "batch": [1, 5, 6, 7, 8, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 31, 37, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 58, 59, 61, 62], "ar": [1, 3, 4, 11, 12, 13, 15, 21, 24, 31, 39, 43, 55, 60, 61, 62], "construct": [1, 24, 25, 26, 27, 28, 35, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56], "sampl": [1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 61, 62], "uniformli": 1, "from": [1, 2, 3, 4, 6, 7, 8, 10, 11, 12, 15, 22, 31, 36, 37, 38, 39, 40, 55, 60], "2": [1, 10, 11, 12, 40, 43, 55, 58, 59, 60, 62], "neg": [1, 5, 6, 7, 8, 10, 11, 12, 13, 15, 23, 24, 25, 26, 27, 28, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 62], "us": [1, 2, 3, 4, 6, 7, 8, 10, 12, 13, 15, 24, 25, 26, 27, 28, 31, 35, 36, 37, 39, 46, 55, 61, 62], "corrupt": [1, 6, 7, 8, 10, 11, 12, 31, 35, 36, 37, 38, 39, 40], "order": [1, 13, 31, 39, 55, 62], "also": [1, 3, 4, 56, 62], "balanc": [1, 2, 56, 61], "wai": [1, 15], "ensur": 1, "varieti": 1, "benefici": 1, "final": [1, 3, 4, 13, 43], "qualiti": [1, 15], "left": [1, 3, 4], "A": [1, 2, 31, 36, 55, 56], "made": 1, "up": [1, 3, 4, 62], "9": [1, 62], "block": 1, "contain": [1, 3, 4, 15, 55], "same": [1, 7, 13, 15, 20, 21, 39, 40, 55, 56, 60], "number": [1, 6, 7, 8, 10, 11, 12, 13, 15, 20, 21, 28, 37, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55, 56, 62], "j": 1, "0": [1, 3, 4, 6, 7, 8, 15, 17, 18, 25, 26, 27, 28, 31, 36, 43, 47, 51, 53, 55, 60, 62], "right": 1, "all": [1, 3, 4, 6, 7, 12, 13, 15, 31, 36, 39, 40, 55, 60], "possibli": [1, 15, 39, 55], "pad": [1, 6, 7, 10, 11, 12, 13, 39, 56], "In": [1, 2, 3, 4], "thi": [1, 3, 4, 6, 7, 8, 11, 12, 13, 15, 20, 21, 55, 61], "exampl": [1, 12, 13, 34], "scheme": [1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 61], "allow": [1, 3, 4, 61], "u": [1, 53], "commun": [1, 61], "first": [1, 3, 4, 15, 37], "need": [1, 15, 20, 21, 24, 25, 26, 27, 28, 43, 61], "gather": [1, 10, 11, 12, 13, 39, 60, 61], "its": [1, 21], "chip": [1, 61], "posit": [1, 5, 6, 7, 8, 10, 11, 12, 18, 23, 24, 25, 26, 27, 28, 31, 41], "These": 1, "includ": 1, "itself": 1, "peer": 1, "requir": [1, 3, 4, 10, 11, 12, 13, 31, 37, 60], "sram": [1, 62], "retriev": [1, 61], "triangl": 1, "colour": 1, "addit": [1, 3, 4, 21], "portion": 1, "can": [1, 3, 4, 11, 12, 13, 20, 21, 31, 55, 61], "reconstruct": 1, "share": [1, 2, 6, 7, 8, 10, 11, 12, 24, 37, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 56, 61], "between": [1, 2, 11, 12, 43, 61], "through": [1, 3, 4, 10, 11, 12], "alltoal": [1, 11, 12, 13], "collect": [1, 6, 7, 8, 10, 11, 12, 13, 14, 55, 61], "oper": [1, 3, 4, 10, 11, 12, 61], "remain": [1, 56], "place": 1, "score": [1, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 31, 36, 39, 55, 61], "where": [1, 3, 4, 11, 12, 13, 15, 31, 32, 37, 39, 55], "4": [1, 2, 3, 4, 62], "exchang": 1, "an": [1, 3, 4, 12, 13, 15, 20, 21, 61, 62], "red": 1, "arrow": 1, "effect": [1, 36], "transpos": 1, "row": [1, 19, 31, 39, 58, 59, 60], "column": [1, 15], "pictur": 1, "after": [1, 56], "ha": [1, 6, 7, 8, 19, 62], "correct": [1, 12, 13], "comput": [1, 2, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 29, 31, 34, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 61, 62], "present": [1, 15], "abov": [1, 3, 4], "implement": [1, 9], "besskg": [1, 3, 4, 61, 62], "embeddingmovingbesskg": [1, 12, 61], "while": [1, 13], "alwai": [1, 24], "turn": 1, "out": 1, "expens": 1, "mani": 1, "per": [1, 6, 7, 8, 36, 37, 38, 39, 40], "dimens": [1, 31, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "larg": [1, 2, 12, 13], "case": 1, "scoremovingbesskg": [1, 13, 61], "increas": 1, "overal": 1, "throughput": [1, 61], "altern": 1, "work": [1, 3, 4], "well": [1, 3, 4, 47, 51], "differ": [1, 13, 20, 21, 22, 31, 61], "li": [1, 2], "how": 1, "instead": [1, 36, 37, 38, 39, 40, 43], "send": [1, 12], "queri": [1, 12, 13, 31, 36, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55], "devic": [1, 5, 10, 11, 12, 13, 36, 37, 38, 39, 40], "allgath": [1, 12], "against": [1, 11, 12, 13, 36, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55], "partial": 1, "set": [1, 3, 4, 10, 13, 15, 21, 31, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 62], "sent": 1, "via": [1, 2, 13], "new": [1, 3, 4, 6, 7, 8, 22, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 61], "cheaper": 1, "although": 1, "5": 1, "correspond": [1, 12, 20, 21, 39, 60], "6": [1, 2, 3, 4, 43], "put": 1, "back": [1, 12, 56], "came": 1, "complet": [1, 2, 13, 15, 55], "respons": [1, 13], "acls20": [2, 43], "ralph": 2, "abboud": 2, "i\u0307smail": 2, "i\u0307lkan": 2, "ceylan": 2, "thoma": 2, "lukasiewicz": 2, "tommaso": 2, "salvatori": 2, "box": [2, 61], "model": [2, 6, 7, 8, 10, 29, 41, 43, 44, 45, 47, 49, 50, 51, 52, 53, 61], "knowledg": [2, 12, 13, 14, 15, 28, 36, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55, 56, 61, 62], "base": [2, 6, 7, 8, 10, 13, 15, 23, 24, 25, 26, 27, 28, 38, 39, 40, 42, 43, 46, 48, 55], "advanc": 2, "neural": 2, "inform": 2, "process": [2, 5, 6, 7, 8, 36, 37, 38, 39, 40], "system": [2, 3, 4, 62], "33": 2, "annual": 2, "confer": 2, "2020": 2, "neurip": 2, "13": [2, 52], "asam20": [2, 15], "breit": 2, "anna": 2, "ott": 2, "simon": 2, "agibetov": 2, "asan": 2, "samwald": 2, "matthia": 2, "openbiolink": [2, 15], "benchmark": [2, 15], "framework": [2, 10, 61], "scale": [2, 24, 25, 26, 27, 28], "biomed": 2, "link": [2, 3, 4, 31, 61, 62], "predict": [2, 13, 29, 31, 32, 34, 62], "bioinformat": 2, "36": 2, "4097": 2, "4098": 2, "bugd": [2, 52], "antoin": 2, "bord": 2, "nicola": 2, "usuni": 2, "alberto": 2, "garc\u00eda": 2, "dur\u00e1n": 2, "jason": 2, "weston": 2, "oksana": 2, "yakhnenko": 2, "translat": 2, "multi": 2, "data": [2, 6, 7, 8, 15], "26": 2, "27th": 2, "2013": 2, "2787": 2, "2795": 2, "cjm": [2, 9, 10, 13, 28], "22": [2, 9, 10, 13, 28, 47, 53], "cattaneo": 2, "daniel": 2, "justu": 2, "harri": 2, "mellor": 2, "dougla": 2, "orr": 2, "jerom": 2, "maloberti": 2, "zheni": 2, "liu": 2, "thorin": 2, "farnsworth": 2, "andrew": 2, "fitzgibbon": 2, "blazej": 2, "banaszewski": 2, "carlo": 2, "luschi": 2, "bess": [2, 5, 36, 39, 62], "graph": [2, 12, 13, 14, 15, 28, 36, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55, 56, 61, 62], "arxiv": 2, "preprint": 2, "2211": 2, "12281": 2, "2022": 2, "chwc21": [2, 49], "linlin": 2, "chao": 2, "jianshan": 2, "he": 2, "taifeng": 2, "wang": 2, "wei": 2, "chu": 2, "pairr": [2, 61], "vector": 2, "proceed": 2, "59th": 2, "meet": 2, "associ": [2, 15], "linguist": 2, "11th": 2, "intern": [2, 24, 42], "joint": 2, "natur": 2, "languag": 2, "acl": 2, "ijcnlp": 2, "2021": 2, "volum": 2, "long": 2, "paper": 2, "virtual": 2, "event": 2, "august": 2, "4360": 2, "4369": 2, "dppr18": [2, 15], "tim": 2, "dettmer": 2, "minervini": 2, "pasqual": 2, "stenetorp": 2, "pontu": 2, "sebastian": 2, "riedel": 2, "convolut": 2, "2d": 2, "32th": 2, "aaai": 2, "artifici": 2, "intellig": 2, "1811": 2, "1818": 2, "2018": 2, "hfz": [2, 15], "20": [2, 3, 4, 15, 62], "weihua": 2, "hu": 2, "fei": 2, "marinka": 2, "zitnik": 2, "yuxiao": 2, "dong": 2, "hongyu": 2, "ren": 2, "bowen": 2, "michel": 2, "catasta": 2, "jure": 2, "leskovec": 2, "open": [2, 3, 4, 61], "machin": [2, 61], "learn": [2, 21, 43, 44, 45, 47, 49, 50, 51, 52, 53], "jcmb15": [2, 28], "\u00e9": 2, "bastien": 2, "jean": 2, "kyunghyun": 2, "cho": 2, "roland": 2, "memisev": 2, "yoshua": 2, "bengio": 2, "On": 2, "veri": [2, 12], "target": 2, "vocabulari": 2, "53rd": 2, "7th": 2, "10": [2, 15, 62], "2015": 2, "mbs15": [2, 15], "farzaneh": 2, "mahdisoltani": 2, "joanna": 2, "biega": 2, "fabian": 2, "m": [2, 3, 4, 62], "suchanek": 2, "yago3": [2, 15, 62], "multilingu": 2, "wikipedia": 2, "seventh": 2, "biennial": 2, "innov": 2, "research": [2, 3, 4, 62], "cidr": 2, "asilomar": 2, "ca": 2, "usa": 2, "januari": 2, "7": [2, 15, 62], "onlin": 2, "sdnt19": [2, 25, 50], "zhiqe": 2, "sun": 2, "zhi": 2, "hong": 2, "deng": 2, "jian": 2, "yun": 2, "nie": 2, "tang": 2, "rotat": [2, 59, 61], "complex": [2, 50, 58, 59, 61], "space": [2, 43], "represent": [2, 43], "iclr": 2, "2019": 2, "twr": [2, 44], "16": [2, 6, 7, 8, 44, 62], "th": 2, "o": [2, 6, 7, 8], "trouillon": 2, "johann": 2, "welbl": 2, "ric": 2, "gaussier": 2, "guillaum": 2, "bouchard": 2, "simpl": 2, "33rd": 2, "icml": 2, "2016": 2, "48": 2, "jmlr": 2, "workshop": 2, "2071": 2, "2080": 2, "wmw": [2, 47], "baoxin": 2, "qingy": 2, "meng": 2, "ziyu": 2, "honghong": 2, "zhao": 2, "dayong": 2, "wu": 2, "wanxiang": 2, "che": 2, "shijin": 2, "zhigang": 2, "chen": 2, "cong": 2, "interht": [2, 61], "interact": 2, "2202": 2, "04897": 2, "yyh": [2, 45], "15": [2, 15, 45], "bishan": 2, "yang": 2, "wen": 2, "tau": 2, "yih": 2, "xiaodong": 2, "jianfeng": 2, "gao": 2, "3rd": 2, "yll": [2, 53], "yu": 2, "zhicong": 2, "luo": 2, "huanyong": 2, "lin": 2, "hongzhu": 2, "yafeng": 2, "tripler": [2, 61], "2209": 2, "08271": 2, "zyx22": [2, 51], "xuanyu": 2, "zhang": 2, "qing": 2, "dongliang": 2, "xu": 2, "tran": [2, 61], "transit": 2, "synthet": 2, "find": 2, "emnlp": 2, "1202": 2, "1208": 2, "you": [3, 4, 62], "even": [3, 4], "don": [3, 4], "t": [3, 4, 11, 13, 14, 15, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 61], "have": [3, 4, 15, 61], "access": [3, 4, 61], "ipumodel": [3, 4], "emul": [3, 4], "most": [3, 4, 13, 32], "function": [3, 4, 6, 7, 8, 10, 11, 12, 13, 16, 20, 21, 23, 24, 25, 26, 27, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 57, 60, 62], "physic": [3, 4, 62], "hardwar": [3, 4], "tunnel": [3, 4], "web": [3, 4], "editor": [3, 4], "desktop": [3, 4], "app": [3, 4], "minimum": [3, 4], "effort": [3, 4], "excel": [3, 4], "solut": [3, 4], "test": [3, 4, 15, 62], "directli": [3, 4], "here": [3, 4, 15], "do": [3, 4], "fork": [3, 4], "repositori": [3, 4], "launch": [3, 4], "hour": [3, 4], "session": [3, 4], "free": [3, 4, 61, 62], "form": [3, 4], "http": [3, 4, 15, 62], "consol": [3, 4], "com": [3, 4, 15, 62], "github": [3, 4, 15, 61, 62], "userid": [3, 4], "reponam": [3, 4], "graphcor": [3, 4, 62], "2fpytorch": [3, 4], "3a3": [3, 4], "ubuntu": [3, 4, 62], "04": [3, 4, 62], "20230703": [3, 4], "pod4": [3, 4, 62], "repopnam": [3, 4], "address": [3, 4], "e": [3, 4, 15, 58, 59, 60], "g": [3, 4], "origin": [3, 4], "repo": [3, 4, 61], "start": [3, 4, 31, 61], "clone": [3, 4], "termin": [3, 4], "pane": [3, 4], "run": [3, 4, 6, 7, 8, 62], "command": [3, 4], "bash": [3, 4], "gradient": [3, 4, 62], "launch_vscode_serv": [3, 4], "sh": [3, 4, 62], "name": [3, 4, 11, 13, 15, 55], "option": [3, 4, 6, 7, 8, 10, 11, 12, 13, 15, 20, 21, 31, 39, 55, 56, 62], "argument": [3, 4], "defin": [3, 4, 15, 43], "remot": [3, 4], "default": [3, 4, 6, 7, 8, 10, 11, 12, 13, 17, 18, 27, 31, 37, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55, 56], "script": [3, 4], "download": [3, 4, 15], "instal": [3, 4, 61], "depend": [3, 4, 62], "ask": [3, 4], "author": [3, 4], "account": [3, 4], "write": [3, 4], "privileg": [3, 4], "provid": [3, 4, 13, 20, 21, 31], "pleas": [3, 4], "refer": [3, 4, 61], "notebook": [3, 4, 62], "detail": [3, 4, 62], "step": [3, 4, 10, 11, 12, 13], "connect": [3, 4], "onc": [3, 4, 20, 21, 61], "dev": [3, 4], "build": [3, 4, 14, 15], "custom": [3, 4], "op": [3, 4], "now": [3, 4], "readi": [3, 4], "close": [3, 4], "stop": [3, 4], "rememb": [3, 4], "unregist": [3, 4], "explain": [3, 4], "common": [3, 4], "issu": [3, 4, 61], "paragraph": [3, 4], "To": [3, 4, 10, 13], "resum": [3, 4], "your": [3, 4, 62], "just": [3, 4], "section": [3, 4], "profil": [3, 4], "repeat": [3, 4, 7], "chang": [3, 4, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "extens": [3, 4], "persist": [3, 4], "poplar": [3, 4, 62], "sdk": [3, 4, 62], "follow": [3, 4, 62], "instruct": [3, 4, 62], "get": [3, 4, 61], "guid": [3, 4, 61], "Then": [3, 4], "enabl": [3, 4, 62], "creat": [3, 4, 55, 56, 62], "activ": [3, 4, 27, 61, 62], "python": [3, 4, 61, 62], "virtualenv": [3, 4, 62], "poptorch": [3, 4, 6, 7, 8, 61, 62], "wheel": [3, 4, 62], "necessari": [3, 4], "python3": [3, 4, 62], "8": [3, 4, 62], "venv": [3, 4, 62], "add": [3, 4], "bin": [3, 4, 62], "sourc": [3, 4, 6, 7, 8, 10, 11, 12, 13, 15, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60, 62], "path_to_poplar_sdk": [3, 4], "pip": [3, 4, 62], "poplar_sdk_en": [3, 4, 62], "whl": [3, 4, 62], "r": [3, 4, 13, 14, 15, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 59, 61], "txt": [3, 4], "sever": [3, 4], "util": [3, 4, 6, 7, 8, 14, 16, 29, 61], "dure": [3, 4, 62], "check": [3, 4], "help": [3, 4], "list": [3, 4, 6, 7, 8, 15, 20, 21, 31, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53], "befor": [3, 4, 10, 11, 12, 13, 43, 47, 49, 51, 53], "submit": [3, 4], "pr": [3, 4], "upstream": [3, 4], "ci": [3, 4], "particular": [3, 4], "mind": [3, 4], "our": [3, 4, 62], "format": [3, 4], "error": [3, 4, 13, 62], "lint": [3, 4], "automat": [3, 4, 15], "insid": [3, 4, 43, 62], "unit": [3, 4], "folder": [3, 4], "individu": [3, 4], "pattern": [3, 4], "match": [3, 4], "filter": [3, 4, 10, 11, 12, 13], "k": [3, 4, 13, 31, 32, 33, 59, 60], "cpp": [3, 4], "custom_op": [3, 4], "updat": [3, 4], "makefil": [3, 4], "ad": [3, 4, 21, 55, 61], "class": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "partitioned_triple_set": [6, 7, 8], "negative_sampl": [6, 7, 8, 10, 11, 12, 13, 61], "shard_b": [6, 7, 8, 13], "batches_per_step": [6, 7, 8], "seed": [6, 7, 8, 15, 36, 37, 39, 40, 56], "hrt_freq_weight": [6, 7, 8], "fals": [6, 7, 8, 10, 11, 12, 13, 31, 37, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55], "weight_smooth": [6, 7, 8], "duplicate_batch": [6, 7, 8], "return_triple_idx": [6, 7, 8], "random": [6, 15, 37, 56], "indic": [6, 7, 8, 10, 11, 12, 13, 31, 39, 55, 60], "replac": 6, "No": [6, 36, 62], "appli": [6, 39, 47, 51, 56], "initi": [6, 7, 8, 10, 11, 12, 13, 16, 17, 18, 19, 20, 21, 24, 25, 26, 27, 28, 31, 36, 37, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "sampler": [6, 7, 8, 10, 11, 12, 13, 36, 37, 38, 39, 40], "paramet": [6, 7, 8, 10, 11, 12, 13, 15, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 31, 32, 34, 36, 37, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60, 62], "partitionedtripleset": [6, 7, 8, 61], "pre": [6, 7, 8, 15], "shardednegativesampl": [6, 7, 8, 10, 11, 12, 36, 61], "int": [6, 7, 8, 10, 11, 12, 13, 15, 20, 21, 28, 32, 36, 37, 39, 40, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 56], "micro": [6, 7, 8, 10, 11, 12, 13], "call": [6, 7, 8, 36], "rng": [6, 7, 8, 36, 37, 38, 39, 40], "bool": [6, 7, 8, 10, 11, 12, 13, 17, 18, 21, 24, 25, 26, 27, 28, 31, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55], "If": [6, 7, 8, 10, 11, 12, 13, 15, 20, 21, 31, 37, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55, 60, 62], "true": [6, 7, 8, 10, 11, 12, 13, 17, 18, 21, 31, 37, 39, 43, 44, 45, 47, 49, 50, 51, 52, 53, 56], "frequenc": [6, 7, 8], "weight": [6, 7, 8, 10, 11, 12, 24, 25, 26, 27, 28, 62], "float": [6, 7, 8, 15, 17, 18, 25, 26, 27, 28, 43, 47, 51, 53], "smooth": [6, 7, 8], "two": [6, 7, 8, 43], "ident": [6, 7, 8], "halv": [6, 7, 8], "ht": [6, 7, 8, 11, 36, 37, 38, 39, 40], "return": [6, 7, 8, 10, 11, 12, 13, 15, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 31, 32, 34, 36, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60], "wrt": [6, 7, 8], "get_dataload": [6, 7, 8], "shuffl": [6, 7, 8], "num_work": [6, 7, 8], "persistent_work": [6, 7, 8], "buffer_s": [6, 7, 8], "dataload": [6, 7, 8], "instanti": [6, 7, 8, 15], "appropri": [6, 7, 8], "iter": [6, 7, 8, 13], "It": [6, 7, 8, 13], "asynchron": [6, 7, 8], "load": [6, 7, 8, 13, 15, 56], "minim": [6, 7, 8, 61], "cpu": [6, 7, 8], "compil": [6, 7, 8, 62], "epoch": [6, 7, 8], "see": [6, 7, 8, 10, 11, 12, 13, 25, 26, 27, 28, 31, 34, 36, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 61, 62], "torch": [6, 7, 8, 60], "__init__": [6, 7, 8, 27, 39, 40, 43, 44, 45, 47, 49, 50, 51, 52, 53], "ring": [6, 7, 8], "buffer": [6, 7, 8], "preload": [6, 7, 8], "get_dataloader_sampl": [6, 7, 8], "sample_tripl": [6, 7, 8], "idx": [6, 7, 8], "index": [6, 7, 8, 39, 60], "dict": [6, 7, 8, 10, 11, 12, 13, 15, 31], "str": [6, 7, 8, 10, 11, 12, 13, 15, 27, 31, 33, 36, 37, 38, 39, 40, 55], "union": [6, 7, 8, 13, 15, 20, 21, 43, 44, 45, 47, 49, 50, 51, 52, 53], "ndarrai": [6, 7, 8, 15, 39, 40, 55, 56], "ani": [6, 7, 8, 10, 11, 12, 13, 15, 39, 40, 55, 56, 61], "dtype": [6, 7, 8, 15, 39, 40, 55, 56, 62], "int64": [6, 7, 8, 39, 55, 56], "bool_": [6, 7, 8, 39], "relev": [6, 7, 8, 10, 11, 12], "static": [6, 7, 8], "worker_init_fn": [6, 7, 8], "worker_id": [6, 7, 8], "pass": [6, 7, 8, 13, 20, 21, 22, 43], "id": [6, 7, 8, 15, 21, 31, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56], "none": [6, 7, 8, 10, 11, 12, 13, 15, 20, 21, 31, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56], "specifi": [7, 15, 60], "shorter": 7, "ones": [7, 21], "length": [7, 20, 21, 39], "mask": [7, 10, 11, 12, 13, 31, 39], "identifi": [7, 10, 11, 12], "abstract": [8, 10, 24, 26, 42, 46, 48], "pytorch": [9, 62], "modul": [9, 10, 11, 12, 13, 24, 29, 31, 42], "kge": [9, 10, 11, 12, 13, 29, 41, 62], "multipl": [9, 58], "score_fn": [10, 11, 12, 13], "loss_fn": [10, 11, 12], "evalu": [10, 11, 12, 13, 29, 61], "return_scor": [10, 11, 12, 13], "augment_neg": [10, 11, 12], "combin": [10, 13], "ht_shardpair": [10, 55], "basescorefunct": [10, 11, 12, 13, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 61], "baselossfunct": [10, 11, 12, 25, 26, 27, 28, 61], "loss": [10, 11, 12, 61], "metric": [10, 11, 12, 13, 61], "host": [10, 11, 12], "augment": [10, 11, 12], "forward": [10, 11, 12, 13, 24, 25, 26, 27, 28, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "triple_mask": [10, 11, 12, 13, 31], "triple_weight": [10, 11, 12, 24, 25, 26, 27, 28], "negative_mask": [10, 11, 12, 13], "compris": [10, 11, 12], "four": [10, 11, 12], "phase": [10, 11, 12], "local": [10, 11, 12, 15, 55, 56, 61], "n_shard": [10, 11, 12, 13, 20, 39, 55, 56], "positive_per_partit": [10, 11, 12], "tensor": [10, 11, 12, 13, 17, 18, 19, 20, 21, 24, 25, 26, 27, 28, 31, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 58, 59, 60], "shape": [10, 11, 12, 13, 15, 20, 22, 24, 25, 26, 27, 28, 31, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60], "b": [10, 11, 12, 13, 18, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 60], "padded_neg": [10, 11, 12, 13, 39], "discard": [10, 11, 12, 13], "properti": [10, 11, 12, 15, 56], "n_embedding_paramet": [10, 11, 12], "trainabl": [10, 11, 12], "score_batch": [10, 11, 12], "tupl": [10, 11, 12, 15, 39], "n_neg": [10, 11, 12, 24, 25, 26, 27, 28, 31, 37, 39, 40, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55], "move": [11, 12], "done": 11, "singl": [11, 31], "total": [11, 28], "disabl": 11, "otherwis": [11, 60], "h": [11, 13, 14, 15, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 61], "avoid": [12, 13], "conveni": 12, "so": [12, 19], "thei": [12, 13, 39], "For": [12, 13, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 60, 61, 62], "valu": 12, "document": 12, "multipli": [12, 47, 51], "doe": 12, "support": [12, 18, 31, 62], "candidate_sampl": 13, "window_s": 13, "100": [13, 62], "specif": [13, 15, 39, 41, 55], "top": [13, 31], "like": [13, 31, 32, 60], "h_shard": [13, 55], "t_shard": [13, 55], "known": [13, 55], "input": 13, "recommend": [13, 62], "one": [13, 21, 22, 39, 55], "want": [13, 15], "slide": 13, "window": 13, "loop": 13, "onli": [13, 15, 36, 37, 38, 39, 40, 55], "topk": 13, "triplebasedshardednegativesampl": [13, 61], "placeholdernegativesampl": [13, 61], "candid": [13, 31, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "unnecessari": 13, "best": 13, "should": [13, 15], "decreas": [13, 31], "oom": 13, "similarli": [13, 55], "togeth": 13, "respect": 13, "kept": 13, "next": 13, "rest": 13, "mask_on_gath": [13, 39], "n_entiti": [15, 20, 28, 56], "n_relation_typ": [15, 21, 43, 44, 45, 47, 49, 50, 51, 52, 53], "entity_dict": 15, "relation_dict": 15, "type_offset": [15, 56], "neg_head": [15, 55], "neg_tail": [15, 55], "repres": 15, "int32": [15, 39, 40, 55, 56], "classmethod": [15, 55, 56], "build_ogbl_biokg": 15, "root": 15, "ogbl": [15, 62], "biokg": [15, 62], "ogb": 15, "stanford": 15, "edu": 15, "doc": 15, "linkprop": 15, "path": [15, 56, 62], "locat": 15, "build_ogbl_wikikg2": 15, "wikikg2": [15, 62], "build_openbiolink": 15, "high": [15, 61], "version": 15, "openbiolink2020": 15, "hq": 15, "build_yago310": 15, "subgraph": 15, "least": 15, "them": [15, 39, 61, 62], "yago": 15, "org": 15, "label": 15, "from_datafram": 15, "df": 15, "head_column": 15, "relation_column": 15, "tail_column": 15, "entity_typ": 15, "1234": 15, "panda": 15, "datafram": 15, "assign": [15, 31, 55], "contigu": 15, "dictionari": [15, 31], "part": [15, 55, 58, 59], "seri": 15, "map": [15, 56], "string": 15, "valid": 15, "instanc": 15, "from_tripl": 15, "arrai": 15, "alreadi": [15, 39], "been": [15, 61, 62], "note": 15, "manual": 15, "numpi": 15, "head_id": 15, "relation_id": [15, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "tail_id": 15, "num_tripl": 15, "offset": [15, 47, 51, 53, 56], "ht_type": 15, "n_tripl": [15, 39, 40, 55], "h_type": [15, 55], "t_type": [15, 55], "object": [15, 56], "save": [15, 56, 62], "node": 15, "edg": 15, "n_neg_head": [15, 55], "n_neg_tail": [15, 55], "out_fil": [15, 56], "pkl": 15, "output": [15, 31, 56], "file": [15, 56, 62], "h_id": 15, "r_id": 15, "t_id": 15, "assum": [15, 31, 62], "cluster": [15, 39, 56], "manag": 16, "embedding_t": [17, 18, 19], "std": 17, "divide_by_embedding_s": [17, 18], "normal": [17, 19, 43, 47, 49, 51, 53], "mean": 17, "standard": 17, "deviat": 17, "rescal": [17, 18], "row_siz": [17, 18, 20, 21, 22], "symmetr": 18, "uniform": [18, 19], "boundari": 18, "norm": [19, 43, 46, 47, 49, 50, 51, 52, 53], "callabl": [20, 21, 33, 43, 44, 45, 47, 49, 50, 51, 52, 53], "either": 20, "max_entity_per_shard": [20, 56], "unshard": 20, "alloc": [20, 21], "entri": [20, 21], "omit": [20, 21], "max_ent_per_shard": 20, "inverse_rel": [21, 43, 44, 45, 47, 49, 50, 51, 52, 53], "invers": [21, 43, 44, 45, 47, 49, 50, 51, 52, 53, 55], "direct": 21, "given": [21, 62], "entity_embed": [22, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "old_shard": 22, "new_shard": [22, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "refactor": 22, "n_shard_old": 22, "max_ent_per_shard_old": 22, "current": [22, 31], "n_shard_new": 22, "max_ent_per_shard_new": 22, "arg": [24, 42], "kwarg": [24, 42], "fp32": [24, 62], "state": [24, 42], "nn": [24, 42], "scriptmodul": [24, 42], "positive_scor": [24, 25, 26, 27, 28], "negative_scor": [24, 25, 26, 27, 28], "batch_siz": [24, 25, 26, 27, 28, 31, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "get_negative_weight": [24, 25, 26, 27, 28], "negative_adversarial_sampl": [24, 25, 26, 27, 28], "els": [24, 25, 26, 27, 28, 31, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "loss_scal": [24, 25, 26, 27, 28], "factor": [24, 25, 26, 27, 28, 53], "might": [24, 25, 26, 27, 28], "fp16": [24, 25, 26, 27, 28, 62], "self": [24, 25, 26, 27, 28], "adversari": [24, 25, 26, 27, 28], "negative_adversarial_scal": [24, 25, 26, 27, 28], "reciproc": [24, 25, 26, 27, 28, 34], "temperatur": [24, 25, 26, 27, 28], "margin": [25, 26, 27], "log": 25, "sigmoid": 25, "activation_funct": 27, "relu": 27, "rank": [27, 31, 32, 34], "pairwis": 27, "hing": 27, "marginbasedlossfunct": [27, 61], "softmax": 28, "cross": 28, "entropi": 28, "attribut": 29, "metric_list": 31, "mode": [31, 55], "averag": 31, "worst_rank_infti": 31, "reduct": [31, 34, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "return_rank": 31, "mrr": [31, 33, 34], "hit": [31, 32, 33], "optimist": 31, "pessimist": 31, "infin": 31, "worst": 31, "possibl": 31, "method": 31, "reduc": [31, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "along": [31, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 60], "sum": [31, 43, 44, 45, 48], "alongsid": 31, "dict_metrics_from_rank": 31, "batch_rank": 31, "element": [31, 60], "boolean": 31, "ranks_from_indic": 31, "ground_truth": [31, 55], "candidate_indic": 31, "ground": [31, 32, 34, 55], "truth": [31, 32, 34, 55], "n_candid": 31, "likelihood": 31, "distinct": 31, "among": [31, 32, 34], "ranks_from_scor": 31, "pos_scor": 31, "candidate_scor": 31, "stacked_metrics_from_rank": 31, "stack": 31, "n_metric": 31, "count": [32, 62], "maximum": [32, 62], "accept": 32, "hitsatk": [33, 61], "reciprocalrank": [33, 61], "basemetr": [34, 61], "corruption_schem": [36, 37, 38, 39, 40], "placehold": 36, "topkquerybesskg": [36, 39, 61], "flat_negative_format": [36, 37, 38, 39, 40], "local_sampl": [36, 37, 38, 39, 40], "gener": [36, 37, 38, 39, 40, 57], "half": 37, "second": [37, 62], "negative_head": 39, "negative_tail": 39, "return_sort_idx": 39, "predetermin": 39, "global": [39, 55, 56], "randomshardednegativesampl": [39, 40, 61], "sort": [39, 55], "recov": 39, "pad_neg": 39, "shard_count": [39, 56], "padded_shard_length": 39, "divid": 39, "view": 39, "shard_neg": 39, "shard_neg_count": 39, "sort_neg_idx": 39, "triple_typ": 40, "head_emb": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "tail_emb": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "score_tripl": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "negative_sample_shar": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "relation_embed": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "score_head": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "fix": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "n_head": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "embedding_s": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "broadcast": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "score_tail": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "n_tail": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "update_shard": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "scoring_norm": [43, 46, 47, 49, 50, 51, 52, 53], "entity_initi": [43, 44, 45, 47, 49, 50, 51, 52, 53], "uniform_": 43, "relation_initi": [43, 44, 45, 47, 49, 50, 51, 52, 53], "init_uniform_norm": [43, 61], "apply_tanh": 43, "dist_func_per_dim": 43, "ep": 43, "1e": 43, "06": 43, "distancebasedscorefunct": [43, 44, 45, 47, 49, 50, 51, 52, 53, 61], "center": 43, "scalar": 43, "bound": [43, 61], "bump": 43, "tanh": 43, "select": 43, "distanc": [43, 46, 47, 49, 50, 51, 52, 53], "whether": [43, 55], "outsid": 43, "make": [43, 55], "choic": 43, "separ": 43, "soften": 43, "geometr": 43, "width": 43, "boxe_scor": 43, "bumped_ht": 43, "center_ht": 43, "width_ht": 43, "box_siz": 43, "optim": [43, 62], "emb_siz": 43, "control": 43, "broadcasted_dist": [43, 46, 47, 49, 50, 51, 52, 53], "v1": [43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 58], "v2": [43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 58], "p": [43, 46, 47, 49, 50, 51, 52, 53], "reduce_embed": [43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "v": [43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 59, 61], "init_kge_norm": [44, 61], "broadcasted_dot_product": [44, 45, 48], "dot": [44, 45, 48], "product": [44, 45, 48], "init_kge_uniform": [45, 47, 49, 50, 51, 52, 53, 61], "normalize_ent": [47, 49, 51, 53], "l2": [47, 49, 51, 53], "auxiliari": 47, "matrix": 48, "decomposit": 48, "project": [49, 53], "real": [50, 58, 59], "tild": 51, "triplerev2": 53, "inverse_tripl": 55, "partition_mod": 55, "dummi": 55, "triple_count": 55, "triple_offset": 55, "triple_sort_idx": 55, "shard_h": 55, "shard_t": 55, "create_from_dataset": 55, "add_inverse_tripl": 55, "kgdataset": [55, 61], "create_from_queri": 55, "query_mod": 55, "negative_typ": 55, "n_queri": 55, "hr": 55, "rt": 55, "resp": 55, "r_inv": 55, "regular": 55, "criterion": 55, "delimit": 55, "entity_to_shard": 56, "entity_to_idx": 56, "shard_and_idx_to_ent": 56, "entity_type_count": 56, "entity_type_offset": 56, "again": 56, "n_type": 56, "npz": 56, "local_id": 56, "exclud": 56, "purpos": 57, "imaginari": [58, 59], "wise": [58, 59], "unitari": 59, "pi": 59, "x": 60, "friendli": 60, "take_along_dim": 60, "dimension": 60, "dim": 60, "take": 60, "packag": 61, "shallow": 61, "typic": 61, "littl": 61, "perform": 61, "design": 61, "maxim": 61, "bandwidth": 61, "fast": 61, "leverag": 61, "achiev": 61, "introduct": 61, "overview": 61, "librari": [61, 62], "still": 61, "develop": 61, "featur": 61, "expect": 61, "overtim": 61, "occasion": 61, "bug": 61, "mai": 61, "occur": 61, "feel": 61, "report": 61, "problem": 61, "user": 61, "usag": 61, "limit": 61, "api": [61, 62], "batch_sampl": 61, "randomshardedbatchsampl": 61, "rigidshardedbatchsampl": 61, "shardedbatchsampl": 61, "typebasedshardednegativesampl": 61, "distmult": 61, "matrixdecompositionscorefunct": 61, "trans": 61, "logsigmoidloss": 61, "marginrankingloss": 61, "sampledsoftmaxcrossentropyloss": 61, "metrics_dict": 61, "initialize_entity_embed": 61, "initialize_relation_embed": 61, "refactor_embedding_shard": 61, "complex_multipl": 61, "complex_rot": 61, "gather_indic": 61, "code": 61, "server": 61, "paperspac": [61, 62], "setup": 61, "tip": 61, "bibliographi": 61, "popart": 62, "more": 62, "quick": 62, "git": 62, "import": 62, "1403": 62, "walkthrough": 62, "main": 62, "jupyt": 62, "we": 62, "sequenc": 62, "click": 62, "button": 62, "avail": 62, "introduc": 62, "therefor": 62, "some": 62, "approxim": 62, "estim": 62, "below": 62, "accumul": 62, "momentum": 62, "notic": 62, "cap": 62, "max": 62, "pod16": 62, "float16": 62, "sgdm": 62, "2m": 62, "2e8": 62, "13m": 62, "3e9": 62, "128": 62, "adam": 62, "4m": 62, "0e8": 62, "9m": 62, "256": 62, "ye": 62, "900k": 62, "3e8": 62, "5m": 62, "8m": 62, "2e9": 62, "512": 62, "375k": 62, "9e8": 62, "7e8": 62, "messag": 62, "about": 62, "onnx": 62, "protobuff": 62, "exceed": 62, "_popart": 62, "saveinitializerstofil": 62, "my_fil": 62}, "objects": {"": [[61, 0, 0, "-", "besskge"]], "besskge": [[5, 0, 0, "-", "batch_sampler"], [9, 0, 0, "-", "bess"], [14, 0, 0, "-", "dataset"], [16, 0, 0, "-", "embedding"], [23, 0, 0, "-", "loss"], [29, 0, 0, "-", "metric"], [35, 0, 0, "-", "negative_sampler"], [41, 0, 0, "-", "scoring"], [54, 0, 0, "-", "sharding"], [57, 0, 0, "-", "utils"]], "besskge.batch_sampler": [[6, 1, 1, "", "RandomShardedBatchSampler"], [7, 1, 1, "", "RigidShardedBatchSampler"], [8, 1, 1, "", "ShardedBatchSampler"]], "besskge.batch_sampler.RandomShardedBatchSampler": [[6, 2, 1, "", "get_dataloader"], [6, 2, 1, "", "get_dataloader_sampler"], [6, 2, 1, "", "sample_triples"], [6, 2, 1, "", "worker_init_fn"]], "besskge.batch_sampler.RigidShardedBatchSampler": [[7, 2, 1, "", "get_dataloader"], [7, 2, 1, "", "get_dataloader_sampler"], [7, 2, 1, "", "sample_triples"], [7, 2, 1, "", "worker_init_fn"]], "besskge.batch_sampler.ShardedBatchSampler": [[8, 2, 1, "", "get_dataloader"], [8, 2, 1, "", "get_dataloader_sampler"], [8, 2, 1, "", "sample_triples"], [8, 2, 1, "", "worker_init_fn"]], "besskge.bess": [[10, 1, 1, "", "BessKGE"], [11, 1, 1, "", "EmbeddingMovingBessKGE"], [12, 1, 1, "", "ScoreMovingBessKGE"], [13, 1, 1, "", "TopKQueryBessKGE"]], "besskge.bess.BessKGE": [[10, 2, 1, "", "forward"], [10, 3, 1, "", "n_embedding_parameters"], [10, 2, 1, "", "score_batch"]], "besskge.bess.EmbeddingMovingBessKGE": [[11, 2, 1, "", "forward"], [11, 3, 1, "", "n_embedding_parameters"], [11, 2, 1, "", "score_batch"]], "besskge.bess.ScoreMovingBessKGE": [[12, 2, 1, "", "forward"], [12, 3, 1, "", "n_embedding_parameters"], [12, 2, 1, "", "score_batch"]], "besskge.bess.TopKQueryBessKGE": [[13, 2, 1, "", "forward"]], "besskge.dataset": [[15, 1, 1, "", "KGDataset"]], "besskge.dataset.KGDataset": [[15, 2, 1, "", "build_ogbl_biokg"], [15, 2, 1, "", "build_ogbl_wikikg2"], [15, 2, 1, "", "build_openbiolink"], [15, 2, 1, "", "build_yago310"], [15, 4, 1, "", "entity_dict"], [15, 2, 1, "", "from_dataframe"], [15, 2, 1, "", "from_triples"], [15, 3, 1, "", "ht_types"], [15, 2, 1, "", "load"], [15, 4, 1, "", "n_entity"], [15, 4, 1, "", "n_relation_type"], [15, 4, 1, "", "neg_heads"], [15, 4, 1, "", "neg_tails"], [15, 4, 1, "", "relation_dict"], [15, 2, 1, "", "save"], [15, 4, 1, "", "triples"], [15, 4, 1, "", "type_offsets"]], "besskge.embedding": [[17, 5, 1, "", "init_KGE_normal"], [18, 5, 1, "", "init_KGE_uniform"], [19, 5, 1, "", "init_uniform_norm"], [20, 5, 1, "", "initialize_entity_embedding"], [21, 5, 1, "", "initialize_relation_embedding"], [22, 5, 1, "", "refactor_embedding_sharding"]], "besskge.loss": [[24, 1, 1, "", "BaseLossFunction"], [25, 1, 1, "", "LogSigmoidLoss"], [26, 1, 1, "", "MarginBasedLossFunction"], [27, 1, 1, "", "MarginRankingLoss"], [28, 1, 1, "", "SampledSoftmaxCrossEntropyLoss"]], "besskge.loss.BaseLossFunction": [[24, 2, 1, "", "forward"], [24, 2, 1, "", "get_negative_weights"], [24, 4, 1, "", "loss_scale"], [24, 4, 1, "", "negative_adversarial_sampling"], [24, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.LogSigmoidLoss": [[25, 2, 1, "", "forward"], [25, 2, 1, "", "get_negative_weights"], [25, 4, 1, "", "loss_scale"], [25, 4, 1, "", "negative_adversarial_sampling"], [25, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.MarginBasedLossFunction": [[26, 2, 1, "", "forward"], [26, 2, 1, "", "get_negative_weights"], [26, 4, 1, "", "loss_scale"], [26, 4, 1, "", "negative_adversarial_sampling"], [26, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.MarginRankingLoss": [[27, 2, 1, "", "forward"], [27, 2, 1, "", "get_negative_weights"], [27, 4, 1, "", "loss_scale"], [27, 4, 1, "", "negative_adversarial_sampling"], [27, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.SampledSoftmaxCrossEntropyLoss": [[28, 2, 1, "", "forward"], [28, 2, 1, "", "get_negative_weights"], [28, 4, 1, "", "loss_scale"], [28, 4, 1, "", "negative_adversarial_sampling"], [28, 4, 1, "", "negative_adversarial_scale"]], "besskge.metric": [[30, 1, 1, "", "BaseMetric"], [31, 1, 1, "", "Evaluation"], [32, 1, 1, "", "HitsAtK"], [33, 6, 1, "", "METRICS_DICT"], [34, 1, 1, "", "ReciprocalRank"]], "besskge.metric.Evaluation": [[31, 2, 1, "", "dict_metrics_from_ranks"], [31, 2, 1, "", "ranks_from_indices"], [31, 2, 1, "", "ranks_from_scores"], [31, 2, 1, "", "stacked_metrics_from_ranks"]], "besskge.negative_sampler": [[36, 1, 1, "", "PlaceholderNegativeSampler"], [37, 1, 1, "", "RandomShardedNegativeSampler"], [38, 1, 1, "", "ShardedNegativeSampler"], [39, 1, 1, "", "TripleBasedShardedNegativeSampler"], [40, 1, 1, "", "TypeBasedShardedNegativeSampler"]], "besskge.negative_sampler.PlaceholderNegativeSampler": [[36, 4, 1, "", "corruption_scheme"], [36, 4, 1, "", "flat_negative_format"], [36, 4, 1, "", "local_sampling"], [36, 4, 1, "", "rng"]], "besskge.negative_sampler.RandomShardedNegativeSampler": [[37, 4, 1, "", "corruption_scheme"], [37, 4, 1, "", "flat_negative_format"], [37, 4, 1, "", "local_sampling"], [37, 4, 1, "", "rng"]], "besskge.negative_sampler.ShardedNegativeSampler": [[38, 4, 1, "", "corruption_scheme"], [38, 4, 1, "", "flat_negative_format"], [38, 4, 1, "", "local_sampling"], [38, 4, 1, "", "rng"]], "besskge.negative_sampler.TripleBasedShardedNegativeSampler": [[39, 4, 1, "", "corruption_scheme"], [39, 4, 1, "", "flat_negative_format"], [39, 4, 1, "", "local_sampling"], [39, 2, 1, "", "pad_negatives"], [39, 4, 1, "", "rng"], [39, 2, 1, "", "shard_negatives"]], "besskge.negative_sampler.TypeBasedShardedNegativeSampler": [[40, 4, 1, "", "corruption_scheme"], [40, 4, 1, "", "flat_negative_format"], [40, 4, 1, "", "local_sampling"], [40, 4, 1, "", "rng"]], "besskge.scoring": [[42, 1, 1, "", "BaseScoreFunction"], [43, 1, 1, "", "BoxE"], [44, 1, 1, "", "ComplEx"], [45, 1, 1, "", "DistMult"], [46, 1, 1, "", "DistanceBasedScoreFunction"], [47, 1, 1, "", "InterHT"], [48, 1, 1, "", "MatrixDecompositionScoreFunction"], [49, 1, 1, "", "PairRE"], [50, 1, 1, "", "RotatE"], [51, 1, 1, "", "TranS"], [52, 1, 1, "", "TransE"], [53, 1, 1, "", "TripleRE"]], "besskge.scoring.BaseScoreFunction": [[42, 4, 1, "", "entity_embedding"], [42, 2, 1, "", "forward"], [42, 4, 1, "", "negative_sample_sharing"], [42, 4, 1, "", "relation_embedding"], [42, 2, 1, "", "score_heads"], [42, 2, 1, "", "score_tails"], [42, 2, 1, "", "score_triple"], [42, 4, 1, "", "sharding"], [42, 2, 1, "", "update_sharding"]], "besskge.scoring.BoxE": [[43, 2, 1, "", "boxe_score"], [43, 2, 1, "", "broadcasted_distance"], [43, 4, 1, "", "entity_embedding"], [43, 2, 1, "", "forward"], [43, 4, 1, "", "negative_sample_sharing"], [43, 2, 1, "", "reduce_embedding"], [43, 4, 1, "", "relation_embedding"], [43, 2, 1, "", "score_heads"], [43, 2, 1, "", "score_tails"], [43, 2, 1, "", "score_triple"], [43, 4, 1, "", "sharding"], [43, 2, 1, "", "update_sharding"]], "besskge.scoring.ComplEx": [[44, 2, 1, "", "broadcasted_dot_product"], [44, 4, 1, "", "entity_embedding"], [44, 2, 1, "", "forward"], [44, 4, 1, "", "negative_sample_sharing"], [44, 2, 1, "", "reduce_embedding"], [44, 4, 1, "", "relation_embedding"], [44, 2, 1, "", "score_heads"], [44, 2, 1, "", "score_tails"], [44, 2, 1, "", "score_triple"], [44, 4, 1, "", "sharding"], [44, 2, 1, "", "update_sharding"]], "besskge.scoring.DistMult": [[45, 2, 1, "", "broadcasted_dot_product"], [45, 4, 1, "", "entity_embedding"], [45, 2, 1, "", "forward"], [45, 4, 1, "", "negative_sample_sharing"], [45, 2, 1, "", "reduce_embedding"], [45, 4, 1, "", "relation_embedding"], [45, 2, 1, "", "score_heads"], [45, 2, 1, "", "score_tails"], [45, 2, 1, "", "score_triple"], [45, 4, 1, "", "sharding"], [45, 2, 1, "", "update_sharding"]], "besskge.scoring.DistanceBasedScoreFunction": [[46, 2, 1, "", "broadcasted_distance"], [46, 4, 1, "", "entity_embedding"], [46, 2, 1, "", "forward"], [46, 4, 1, "", "negative_sample_sharing"], [46, 2, 1, "", "reduce_embedding"], [46, 4, 1, "", "relation_embedding"], [46, 2, 1, "", "score_heads"], [46, 2, 1, "", "score_tails"], [46, 2, 1, "", "score_triple"], [46, 4, 1, "", "sharding"], [46, 2, 1, "", "update_sharding"]], "besskge.scoring.InterHT": [[47, 2, 1, "", "broadcasted_distance"], [47, 4, 1, "", "entity_embedding"], [47, 2, 1, "", "forward"], [47, 4, 1, "", "negative_sample_sharing"], [47, 2, 1, "", "reduce_embedding"], [47, 4, 1, "", "relation_embedding"], [47, 2, 1, "", "score_heads"], [47, 2, 1, "", "score_tails"], [47, 2, 1, "", "score_triple"], [47, 4, 1, "", "sharding"], [47, 2, 1, "", "update_sharding"]], "besskge.scoring.MatrixDecompositionScoreFunction": [[48, 2, 1, "", "broadcasted_dot_product"], [48, 4, 1, "", "entity_embedding"], [48, 2, 1, "", "forward"], [48, 4, 1, "", "negative_sample_sharing"], [48, 2, 1, "", "reduce_embedding"], [48, 4, 1, "", "relation_embedding"], [48, 2, 1, "", "score_heads"], [48, 2, 1, "", "score_tails"], [48, 2, 1, "", "score_triple"], [48, 4, 1, "", "sharding"], [48, 2, 1, "", "update_sharding"]], "besskge.scoring.PairRE": [[49, 2, 1, "", "broadcasted_distance"], [49, 4, 1, "", "entity_embedding"], [49, 2, 1, "", "forward"], [49, 4, 1, "", "negative_sample_sharing"], [49, 2, 1, "", "reduce_embedding"], [49, 4, 1, "", "relation_embedding"], [49, 2, 1, "", "score_heads"], [49, 2, 1, "", "score_tails"], [49, 2, 1, "", "score_triple"], [49, 4, 1, "", "sharding"], [49, 2, 1, "", "update_sharding"]], "besskge.scoring.RotatE": [[50, 2, 1, "", "broadcasted_distance"], [50, 4, 1, "", "entity_embedding"], [50, 2, 1, "", "forward"], [50, 4, 1, "", "negative_sample_sharing"], [50, 2, 1, "", "reduce_embedding"], [50, 4, 1, "", "relation_embedding"], [50, 2, 1, "", "score_heads"], [50, 2, 1, "", "score_tails"], [50, 2, 1, "", "score_triple"], [50, 4, 1, "", "sharding"], [50, 2, 1, "", "update_sharding"]], "besskge.scoring.TranS": [[51, 2, 1, "", "broadcasted_distance"], [51, 4, 1, "", "entity_embedding"], [51, 2, 1, "", "forward"], [51, 4, 1, "", "negative_sample_sharing"], [51, 2, 1, "", "reduce_embedding"], [51, 4, 1, "", "relation_embedding"], [51, 2, 1, "", "score_heads"], [51, 2, 1, "", "score_tails"], [51, 2, 1, "", "score_triple"], [51, 4, 1, "", "sharding"], [51, 2, 1, "", "update_sharding"]], "besskge.scoring.TransE": [[52, 2, 1, "", "broadcasted_distance"], [52, 4, 1, "", "entity_embedding"], [52, 2, 1, "", "forward"], [52, 4, 1, "", "negative_sample_sharing"], [52, 2, 1, "", "reduce_embedding"], [52, 4, 1, "", "relation_embedding"], [52, 2, 1, "", "score_heads"], [52, 2, 1, "", "score_tails"], [52, 2, 1, "", "score_triple"], [52, 4, 1, "", "sharding"], [52, 2, 1, "", "update_sharding"]], "besskge.scoring.TripleRE": [[53, 2, 1, "", "broadcasted_distance"], [53, 4, 1, "", "entity_embedding"], [53, 2, 1, "", "forward"], [53, 4, 1, "", "negative_sample_sharing"], [53, 2, 1, "", "reduce_embedding"], [53, 4, 1, "", "relation_embedding"], [53, 2, 1, "", "score_heads"], [53, 2, 1, "", "score_tails"], [53, 2, 1, "", "score_triple"], [53, 4, 1, "", "sharding"], [53, 2, 1, "", "update_sharding"]], "besskge.sharding": [[55, 1, 1, "", "PartitionedTripleSet"], [56, 1, 1, "", "Sharding"]], "besskge.sharding.PartitionedTripleSet": [[55, 2, 1, "", "create_from_dataset"], [55, 2, 1, "", "create_from_queries"], [55, 4, 1, "", "dummy"], [55, 4, 1, "", "inverse_triples"], [55, 4, 1, "", "neg_heads"], [55, 4, 1, "", "neg_tails"], [55, 4, 1, "", "partition_mode"], [55, 4, 1, "", "sharding"], [55, 4, 1, "", "triple_counts"], [55, 4, 1, "", "triple_offsets"], [55, 4, 1, "", "triple_sort_idx"], [55, 4, 1, "", "triples"], [55, 4, 1, "", "types"]], "besskge.sharding.Sharding": [[56, 2, 1, "", "create"], [56, 4, 1, "", "entity_to_idx"], [56, 4, 1, "", "entity_to_shard"], [56, 4, 1, "", "entity_type_counts"], [56, 4, 1, "", "entity_type_offsets"], [56, 2, 1, "", "load"], [56, 3, 1, "", "max_entity_per_shard"], [56, 3, 1, "", "n_entity"], [56, 4, 1, "", "n_shard"], [56, 2, 1, "", "save"], [56, 4, 1, "", "shard_and_idx_to_entity"], [56, 4, 1, "", "shard_counts"]], "besskge.utils": [[58, 5, 1, "", "complex_multiplication"], [59, 5, 1, "", "complex_rotation"], [60, 5, 1, "", "gather_indices"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:property", "4": "py:attribute", "5": "py:function", "6": "py:data"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "property", "Python property"], "4": ["py", "attribute", "Python attribute"], "5": ["py", "function", "Python function"], "6": ["py", "data", "Python data"]}, "titleterms": {"bess": [0, 1, 3, 4, 9, 10, 11, 12, 13, 61], "kge": [0, 3, 4, 61], "api": 0, "refer": 0, "overview": 1, "bibliographi": 2, "how": [3, 4], "contribut": [3, 4], "project": [3, 4], "v": [3, 4], "code": [3, 4], "server": [3, 4], "paperspac": [3, 4], "setup": [3, 4], "local": [3, 4], "machin": [3, 4], "develop": [3, 4], "tip": [3, 4], "besskg": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60], "batch_sampl": [5, 6, 7, 8], "randomshardedbatchsampl": 6, "rigidshardedbatchsampl": 7, "shardedbatchsampl": 8, "embeddingmovingbesskg": 11, "scoremovingbesskg": 12, "topkquerybesskg": 13, "dataset": [14, 15], "kgdataset": 15, "embed": [16, 17, 18, 19, 20, 21, 22], "init_kge_norm": 17, "init_kge_uniform": 18, "init_uniform_norm": 19, "initialize_entity_embed": 20, "initialize_relation_embed": 21, "refactor_embedding_shard": 22, "loss": [23, 24, 25, 26, 27, 28], "baselossfunct": 24, "logsigmoidloss": 25, "marginbasedlossfunct": 26, "marginrankingloss": 27, "sampledsoftmaxcrossentropyloss": 28, "metric": [29, 30, 31, 32, 33, 34], "basemetr": 30, "evalu": 31, "hitsatk": 32, "metrics_dict": 33, "reciprocalrank": 34, "negative_sampl": [35, 36, 37, 38, 39, 40], "placeholdernegativesampl": 36, "randomshardednegativesampl": 37, "shardednegativesampl": 38, "triplebasedshardednegativesampl": 39, "typebasedshardednegativesampl": 40, "score": [41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], "basescorefunct": 42, "box": 43, "complex": 44, "distmult": 45, "distancebasedscorefunct": 46, "interht": 47, "matrixdecompositionscorefunct": 48, "pairr": 49, "rotat": 50, "tran": 51, "trans": 52, "tripler": 53, "shard": [54, 55, 56], "partitionedtripleset": 55, "util": [57, 58, 59, 60], "complex_multipl": 58, "complex_rot": 59, "gather_indic": 60, "content": 61, "user": 62, "guid": 62, "instal": 62, "usag": 62, "get": 62, "start": 62, "limit": 62}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx.ext.intersphinx": 1, "sphinxcontrib.bibtex": 9, "sphinx": 57}, "alltitles": {"BESS-KGE API Reference": [[0, "bess-kge-api-reference"]], "BESS overview": [[1, "bess-overview"]], "Bibliography": [[2, "bibliography"]], "How to contribute to the BESS-KGE project": [[3, "how-to-contribute-to-the-bess-kge-project"], [4, "how-to-contribute-to-the-bess-kge-project"]], "VS Code server on Paperspace": [[3, "vs-code-server-on-paperspace"], [4, "vs-code-server-on-paperspace"]], "Setup on local machine": [[3, "setup-on-local-machine"], [4, "setup-on-local-machine"]], "Development tips": [[3, "development-tips"], [4, "development-tips"]], "besskge.batch_sampler": [[5, "module-besskge.batch_sampler"]], "besskge.batch_sampler.RandomShardedBatchSampler": [[6, "besskge-batch-sampler-randomshardedbatchsampler"]], "besskge.batch_sampler.RigidShardedBatchSampler": [[7, "besskge-batch-sampler-rigidshardedbatchsampler"]], "besskge.batch_sampler.ShardedBatchSampler": [[8, "besskge-batch-sampler-shardedbatchsampler"]], "besskge.bess": [[9, "module-besskge.bess"]], "besskge.bess.BessKGE": [[10, "besskge-bess-besskge"]], "besskge.bess.EmbeddingMovingBessKGE": [[11, "besskge-bess-embeddingmovingbesskge"]], "besskge.bess.ScoreMovingBessKGE": [[12, "besskge-bess-scoremovingbesskge"]], "besskge.bess.TopKQueryBessKGE": [[13, "besskge-bess-topkquerybesskge"]], "besskge.dataset": [[14, "module-besskge.dataset"]], "besskge.dataset.KGDataset": [[15, "besskge-dataset-kgdataset"]], "besskge.embedding": [[16, "module-besskge.embedding"]], "besskge.embedding.init_KGE_normal": [[17, "besskge-embedding-init-kge-normal"]], "besskge.embedding.init_KGE_uniform": [[18, "besskge-embedding-init-kge-uniform"]], "besskge.embedding.init_uniform_norm": [[19, "besskge-embedding-init-uniform-norm"]], "besskge.embedding.initialize_entity_embedding": [[20, "besskge-embedding-initialize-entity-embedding"]], "besskge.embedding.initialize_relation_embedding": [[21, "besskge-embedding-initialize-relation-embedding"]], "besskge.embedding.refactor_embedding_sharding": [[22, "besskge-embedding-refactor-embedding-sharding"]], "besskge.loss": [[23, "module-besskge.loss"]], "besskge.loss.BaseLossFunction": [[24, "besskge-loss-baselossfunction"]], "besskge.loss.LogSigmoidLoss": [[25, "besskge-loss-logsigmoidloss"]], "besskge.loss.MarginBasedLossFunction": [[26, "besskge-loss-marginbasedlossfunction"]], "besskge.loss.MarginRankingLoss": [[27, "besskge-loss-marginrankingloss"]], "besskge.loss.SampledSoftmaxCrossEntropyLoss": [[28, "besskge-loss-sampledsoftmaxcrossentropyloss"]], "besskge.metric": [[29, "module-besskge.metric"]], "besskge.metric.BaseMetric": [[30, "besskge-metric-basemetric"]], "besskge.metric.Evaluation": [[31, "besskge-metric-evaluation"]], "besskge.metric.HitsAtK": [[32, "besskge-metric-hitsatk"]], "besskge.metric.METRICS_DICT": [[33, "besskge-metric-metrics-dict"]], "besskge.metric.ReciprocalRank": [[34, "besskge-metric-reciprocalrank"]], "besskge.negative_sampler": [[35, "module-besskge.negative_sampler"]], "besskge.negative_sampler.PlaceholderNegativeSampler": [[36, "besskge-negative-sampler-placeholdernegativesampler"]], "besskge.negative_sampler.RandomShardedNegativeSampler": [[37, "besskge-negative-sampler-randomshardednegativesampler"]], "besskge.negative_sampler.ShardedNegativeSampler": [[38, "besskge-negative-sampler-shardednegativesampler"]], "besskge.negative_sampler.TripleBasedShardedNegativeSampler": [[39, "besskge-negative-sampler-triplebasedshardednegativesampler"]], "besskge.negative_sampler.TypeBasedShardedNegativeSampler": [[40, "besskge-negative-sampler-typebasedshardednegativesampler"]], "besskge.scoring": [[41, "module-besskge.scoring"]], "besskge.scoring.BaseScoreFunction": [[42, "besskge-scoring-basescorefunction"]], "besskge.scoring.BoxE": [[43, "besskge-scoring-boxe"]], "besskge.scoring.ComplEx": [[44, "besskge-scoring-complex"]], "besskge.scoring.DistMult": [[45, "besskge-scoring-distmult"]], "besskge.scoring.DistanceBasedScoreFunction": [[46, "besskge-scoring-distancebasedscorefunction"]], "besskge.scoring.InterHT": [[47, "besskge-scoring-interht"]], "besskge.scoring.MatrixDecompositionScoreFunction": [[48, "besskge-scoring-matrixdecompositionscorefunction"]], "besskge.scoring.PairRE": [[49, "besskge-scoring-pairre"]], "besskge.scoring.RotatE": [[50, "besskge-scoring-rotate"]], "besskge.scoring.TranS": [[51, "besskge-scoring-trans"]], "besskge.scoring.TransE": [[52, "besskge-scoring-transe"]], "besskge.scoring.TripleRE": [[53, "besskge-scoring-triplere"]], "besskge.sharding": [[54, "module-besskge.sharding"]], "besskge.sharding.PartitionedTripleSet": [[55, "besskge-sharding-partitionedtripleset"]], "besskge.sharding.Sharding": [[56, "besskge-sharding-sharding"]], "besskge.utils": [[57, "module-besskge.utils"]], "besskge.utils.complex_multiplication": [[58, "besskge-utils-complex-multiplication"]], "besskge.utils.complex_rotation": [[59, "besskge-utils-complex-rotation"]], "besskge.utils.gather_indices": [[60, "besskge-utils-gather-indices"]], "BESS-KGE": [[61, "module-besskge"]], "Contents": [[61, null]], "User guide": [[62, "user-guide"]], "Installation and usage": [[62, "installation-and-usage"]], "Getting started": [[62, "getting-started"]], "Limitations": [[62, "limitations"]]}, "indexentries": {"besskge.batch_sampler": [[5, "module-besskge.batch_sampler"]], "module": [[5, "module-besskge.batch_sampler"], [9, "module-besskge.bess"], [14, "module-besskge.dataset"], [16, "module-besskge.embedding"], [23, "module-besskge.loss"], [29, "module-besskge.metric"], [35, "module-besskge.negative_sampler"], [41, "module-besskge.scoring"], [54, "module-besskge.sharding"], [57, "module-besskge.utils"], [61, "module-besskge"]], "randomshardedbatchsampler (class in besskge.batch_sampler)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler"]], "get_dataloader() (besskge.batch_sampler.randomshardedbatchsampler method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.get_dataloader"]], "get_dataloader_sampler() (besskge.batch_sampler.randomshardedbatchsampler method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.get_dataloader_sampler"]], "sample_triples() (besskge.batch_sampler.randomshardedbatchsampler method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.sample_triples"]], "worker_init_fn() (besskge.batch_sampler.randomshardedbatchsampler static method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.worker_init_fn"]], "rigidshardedbatchsampler (class in besskge.batch_sampler)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler"]], "get_dataloader() (besskge.batch_sampler.rigidshardedbatchsampler method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.get_dataloader"]], "get_dataloader_sampler() (besskge.batch_sampler.rigidshardedbatchsampler method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.get_dataloader_sampler"]], "sample_triples() (besskge.batch_sampler.rigidshardedbatchsampler method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.sample_triples"]], "worker_init_fn() (besskge.batch_sampler.rigidshardedbatchsampler static method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.worker_init_fn"]], "shardedbatchsampler (class in besskge.batch_sampler)": [[8, "besskge.batch_sampler.ShardedBatchSampler"]], "get_dataloader() (besskge.batch_sampler.shardedbatchsampler method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.get_dataloader"]], "get_dataloader_sampler() (besskge.batch_sampler.shardedbatchsampler method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.get_dataloader_sampler"]], "sample_triples() (besskge.batch_sampler.shardedbatchsampler method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.sample_triples"]], "worker_init_fn() (besskge.batch_sampler.shardedbatchsampler static method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.worker_init_fn"]], "besskge.bess": [[9, "module-besskge.bess"]], "besskge (class in besskge.bess)": [[10, "besskge.bess.BessKGE"]], "forward() (besskge.bess.besskge method)": [[10, "besskge.bess.BessKGE.forward"]], "n_embedding_parameters (besskge.bess.besskge property)": [[10, "besskge.bess.BessKGE.n_embedding_parameters"]], "score_batch() (besskge.bess.besskge method)": [[10, "besskge.bess.BessKGE.score_batch"]], "embeddingmovingbesskge (class in besskge.bess)": [[11, "besskge.bess.EmbeddingMovingBessKGE"]], "forward() (besskge.bess.embeddingmovingbesskge method)": [[11, "besskge.bess.EmbeddingMovingBessKGE.forward"]], "n_embedding_parameters (besskge.bess.embeddingmovingbesskge property)": [[11, "besskge.bess.EmbeddingMovingBessKGE.n_embedding_parameters"]], "score_batch() (besskge.bess.embeddingmovingbesskge method)": [[11, "besskge.bess.EmbeddingMovingBessKGE.score_batch"]], "scoremovingbesskge (class in besskge.bess)": [[12, "besskge.bess.ScoreMovingBessKGE"]], "forward() (besskge.bess.scoremovingbesskge method)": [[12, "besskge.bess.ScoreMovingBessKGE.forward"]], "n_embedding_parameters (besskge.bess.scoremovingbesskge property)": [[12, "besskge.bess.ScoreMovingBessKGE.n_embedding_parameters"]], "score_batch() (besskge.bess.scoremovingbesskge method)": [[12, "besskge.bess.ScoreMovingBessKGE.score_batch"]], "topkquerybesskge (class in besskge.bess)": [[13, "besskge.bess.TopKQueryBessKGE"]], "forward() (besskge.bess.topkquerybesskge method)": [[13, "besskge.bess.TopKQueryBessKGE.forward"]], "besskge.dataset": [[14, "module-besskge.dataset"]], "kgdataset (class in besskge.dataset)": [[15, "besskge.dataset.KGDataset"]], "build_ogbl_biokg() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.build_ogbl_biokg"]], "build_ogbl_wikikg2() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.build_ogbl_wikikg2"]], "build_openbiolink() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.build_openbiolink"]], "build_yago310() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.build_yago310"]], "entity_dict (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.entity_dict"]], "from_dataframe() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.from_dataframe"]], "from_triples() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.from_triples"]], "ht_types (besskge.dataset.kgdataset property)": [[15, "besskge.dataset.KGDataset.ht_types"]], "load() (besskge.dataset.kgdataset class method)": [[15, "besskge.dataset.KGDataset.load"]], "n_entity (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.n_entity"]], "n_relation_type (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.n_relation_type"]], "neg_heads (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.neg_heads"]], "neg_tails (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.neg_tails"]], "relation_dict (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.relation_dict"]], "save() (besskge.dataset.kgdataset method)": [[15, "besskge.dataset.KGDataset.save"]], "triples (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.triples"]], "type_offsets (besskge.dataset.kgdataset attribute)": [[15, "besskge.dataset.KGDataset.type_offsets"]], "besskge.embedding": [[16, "module-besskge.embedding"]], "init_kge_normal() (in module besskge.embedding)": [[17, "besskge.embedding.init_KGE_normal"]], "init_kge_uniform() (in module besskge.embedding)": [[18, "besskge.embedding.init_KGE_uniform"]], "init_uniform_norm() (in module besskge.embedding)": [[19, "besskge.embedding.init_uniform_norm"]], "initialize_entity_embedding() (in module besskge.embedding)": [[20, "besskge.embedding.initialize_entity_embedding"]], "initialize_relation_embedding() (in module besskge.embedding)": [[21, "besskge.embedding.initialize_relation_embedding"]], "refactor_embedding_sharding() (in module besskge.embedding)": [[22, "besskge.embedding.refactor_embedding_sharding"]], "besskge.loss": [[23, "module-besskge.loss"]], "baselossfunction (class in besskge.loss)": [[24, "besskge.loss.BaseLossFunction"]], "forward() (besskge.loss.baselossfunction method)": [[24, "besskge.loss.BaseLossFunction.forward"]], "get_negative_weights() (besskge.loss.baselossfunction method)": [[24, "besskge.loss.BaseLossFunction.get_negative_weights"]], "loss_scale (besskge.loss.baselossfunction attribute)": [[24, "besskge.loss.BaseLossFunction.loss_scale"]], "negative_adversarial_sampling (besskge.loss.baselossfunction attribute)": [[24, "besskge.loss.BaseLossFunction.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.baselossfunction attribute)": [[24, "besskge.loss.BaseLossFunction.negative_adversarial_scale"]], "logsigmoidloss (class in besskge.loss)": [[25, "besskge.loss.LogSigmoidLoss"]], "forward() (besskge.loss.logsigmoidloss method)": [[25, "besskge.loss.LogSigmoidLoss.forward"]], "get_negative_weights() (besskge.loss.logsigmoidloss method)": [[25, "besskge.loss.LogSigmoidLoss.get_negative_weights"]], "loss_scale (besskge.loss.logsigmoidloss attribute)": [[25, "besskge.loss.LogSigmoidLoss.loss_scale"]], "negative_adversarial_sampling (besskge.loss.logsigmoidloss attribute)": [[25, "besskge.loss.LogSigmoidLoss.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.logsigmoidloss attribute)": [[25, "besskge.loss.LogSigmoidLoss.negative_adversarial_scale"]], "marginbasedlossfunction (class in besskge.loss)": [[26, "besskge.loss.MarginBasedLossFunction"]], "forward() (besskge.loss.marginbasedlossfunction method)": [[26, "besskge.loss.MarginBasedLossFunction.forward"]], "get_negative_weights() (besskge.loss.marginbasedlossfunction method)": [[26, "besskge.loss.MarginBasedLossFunction.get_negative_weights"]], "loss_scale (besskge.loss.marginbasedlossfunction attribute)": [[26, "besskge.loss.MarginBasedLossFunction.loss_scale"]], "negative_adversarial_sampling (besskge.loss.marginbasedlossfunction attribute)": [[26, "besskge.loss.MarginBasedLossFunction.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.marginbasedlossfunction attribute)": [[26, "besskge.loss.MarginBasedLossFunction.negative_adversarial_scale"]], "marginrankingloss (class in besskge.loss)": [[27, "besskge.loss.MarginRankingLoss"]], "forward() (besskge.loss.marginrankingloss method)": [[27, "besskge.loss.MarginRankingLoss.forward"]], "get_negative_weights() (besskge.loss.marginrankingloss method)": [[27, "besskge.loss.MarginRankingLoss.get_negative_weights"]], "loss_scale (besskge.loss.marginrankingloss attribute)": [[27, "besskge.loss.MarginRankingLoss.loss_scale"]], "negative_adversarial_sampling (besskge.loss.marginrankingloss attribute)": [[27, "besskge.loss.MarginRankingLoss.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.marginrankingloss attribute)": [[27, "besskge.loss.MarginRankingLoss.negative_adversarial_scale"]], "sampledsoftmaxcrossentropyloss (class in besskge.loss)": [[28, "besskge.loss.SampledSoftmaxCrossEntropyLoss"]], "forward() (besskge.loss.sampledsoftmaxcrossentropyloss method)": [[28, "besskge.loss.SampledSoftmaxCrossEntropyLoss.forward"]], "get_negative_weights() (besskge.loss.sampledsoftmaxcrossentropyloss method)": [[28, "besskge.loss.SampledSoftmaxCrossEntropyLoss.get_negative_weights"]], "loss_scale (besskge.loss.sampledsoftmaxcrossentropyloss attribute)": [[28, "besskge.loss.SampledSoftmaxCrossEntropyLoss.loss_scale"]], "negative_adversarial_sampling (besskge.loss.sampledsoftmaxcrossentropyloss attribute)": [[28, "besskge.loss.SampledSoftmaxCrossEntropyLoss.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.sampledsoftmaxcrossentropyloss attribute)": [[28, "besskge.loss.SampledSoftmaxCrossEntropyLoss.negative_adversarial_scale"]], "besskge.metric": [[29, "module-besskge.metric"]], "basemetric (class in besskge.metric)": [[30, "besskge.metric.BaseMetric"]], "evaluation (class in besskge.metric)": [[31, "besskge.metric.Evaluation"]], "dict_metrics_from_ranks() (besskge.metric.evaluation method)": [[31, "besskge.metric.Evaluation.dict_metrics_from_ranks"]], "ranks_from_indices() (besskge.metric.evaluation method)": [[31, "besskge.metric.Evaluation.ranks_from_indices"]], "ranks_from_scores() (besskge.metric.evaluation method)": [[31, "besskge.metric.Evaluation.ranks_from_scores"]], "stacked_metrics_from_ranks() (besskge.metric.evaluation method)": [[31, "besskge.metric.Evaluation.stacked_metrics_from_ranks"]], "hitsatk (class in besskge.metric)": [[32, "besskge.metric.HitsAtK"]], "metrics_dict (in module besskge.metric)": [[33, "besskge.metric.METRICS_DICT"]], "reciprocalrank (class in besskge.metric)": [[34, "besskge.metric.ReciprocalRank"]], "besskge.negative_sampler": [[35, "module-besskge.negative_sampler"]], "placeholdernegativesampler (class in besskge.negative_sampler)": [[36, "besskge.negative_sampler.PlaceholderNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.placeholdernegativesampler attribute)": [[36, "besskge.negative_sampler.PlaceholderNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.placeholdernegativesampler attribute)": [[36, "besskge.negative_sampler.PlaceholderNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.placeholdernegativesampler attribute)": [[36, "besskge.negative_sampler.PlaceholderNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.placeholdernegativesampler attribute)": [[36, "besskge.negative_sampler.PlaceholderNegativeSampler.rng"]], "randomshardednegativesampler (class in besskge.negative_sampler)": [[37, "besskge.negative_sampler.RandomShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.randomshardednegativesampler attribute)": [[37, "besskge.negative_sampler.RandomShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.randomshardednegativesampler attribute)": [[37, "besskge.negative_sampler.RandomShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.randomshardednegativesampler attribute)": [[37, "besskge.negative_sampler.RandomShardedNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.randomshardednegativesampler attribute)": [[37, "besskge.negative_sampler.RandomShardedNegativeSampler.rng"]], "shardednegativesampler (class in besskge.negative_sampler)": [[38, "besskge.negative_sampler.ShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.shardednegativesampler attribute)": [[38, "besskge.negative_sampler.ShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.shardednegativesampler attribute)": [[38, "besskge.negative_sampler.ShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.shardednegativesampler attribute)": [[38, "besskge.negative_sampler.ShardedNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.shardednegativesampler attribute)": [[38, "besskge.negative_sampler.ShardedNegativeSampler.rng"]], "triplebasedshardednegativesampler (class in besskge.negative_sampler)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.local_sampling"]], "pad_negatives() (besskge.negative_sampler.triplebasedshardednegativesampler method)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.pad_negatives"]], "rng (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.rng"]], "shard_negatives() (besskge.negative_sampler.triplebasedshardednegativesampler method)": [[39, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.shard_negatives"]], "typebasedshardednegativesampler (class in besskge.negative_sampler)": [[40, "besskge.negative_sampler.TypeBasedShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.rng"]], "besskge.scoring": [[41, "module-besskge.scoring"]], "basescorefunction (class in besskge.scoring)": [[42, "besskge.scoring.BaseScoreFunction"]], "entity_embedding (besskge.scoring.basescorefunction attribute)": [[42, "besskge.scoring.BaseScoreFunction.entity_embedding"]], "forward() (besskge.scoring.basescorefunction method)": [[42, "besskge.scoring.BaseScoreFunction.forward"]], "negative_sample_sharing (besskge.scoring.basescorefunction attribute)": [[42, "besskge.scoring.BaseScoreFunction.negative_sample_sharing"]], "relation_embedding (besskge.scoring.basescorefunction attribute)": [[42, "besskge.scoring.BaseScoreFunction.relation_embedding"]], "score_heads() (besskge.scoring.basescorefunction method)": [[42, "besskge.scoring.BaseScoreFunction.score_heads"]], "score_tails() (besskge.scoring.basescorefunction method)": [[42, "besskge.scoring.BaseScoreFunction.score_tails"]], "score_triple() (besskge.scoring.basescorefunction method)": [[42, "besskge.scoring.BaseScoreFunction.score_triple"]], "sharding (besskge.scoring.basescorefunction attribute)": [[42, "besskge.scoring.BaseScoreFunction.sharding"]], "update_sharding() (besskge.scoring.basescorefunction method)": [[42, "besskge.scoring.BaseScoreFunction.update_sharding"]], "boxe (class in besskge.scoring)": [[43, "besskge.scoring.BoxE"]], "boxe_score() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.boxe_score"]], "broadcasted_distance() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.broadcasted_distance"]], "entity_embedding (besskge.scoring.boxe attribute)": [[43, "besskge.scoring.BoxE.entity_embedding"]], "forward() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.forward"]], "negative_sample_sharing (besskge.scoring.boxe attribute)": [[43, "besskge.scoring.BoxE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.reduce_embedding"]], "relation_embedding (besskge.scoring.boxe attribute)": [[43, "besskge.scoring.BoxE.relation_embedding"]], "score_heads() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.score_heads"]], "score_tails() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.score_tails"]], "score_triple() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.score_triple"]], "sharding (besskge.scoring.boxe attribute)": [[43, "besskge.scoring.BoxE.sharding"]], "update_sharding() (besskge.scoring.boxe method)": [[43, "besskge.scoring.BoxE.update_sharding"]], "complex (class in besskge.scoring)": [[44, "besskge.scoring.ComplEx"]], "broadcasted_dot_product() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.broadcasted_dot_product"]], "entity_embedding (besskge.scoring.complex attribute)": [[44, "besskge.scoring.ComplEx.entity_embedding"]], "forward() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.forward"]], "negative_sample_sharing (besskge.scoring.complex attribute)": [[44, "besskge.scoring.ComplEx.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.reduce_embedding"]], "relation_embedding (besskge.scoring.complex attribute)": [[44, "besskge.scoring.ComplEx.relation_embedding"]], "score_heads() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.score_heads"]], "score_tails() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.score_tails"]], "score_triple() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.score_triple"]], "sharding (besskge.scoring.complex attribute)": [[44, "besskge.scoring.ComplEx.sharding"]], "update_sharding() (besskge.scoring.complex method)": [[44, "besskge.scoring.ComplEx.update_sharding"]], "distmult (class in besskge.scoring)": [[45, "besskge.scoring.DistMult"]], "broadcasted_dot_product() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.broadcasted_dot_product"]], "entity_embedding (besskge.scoring.distmult attribute)": [[45, "besskge.scoring.DistMult.entity_embedding"]], "forward() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.forward"]], "negative_sample_sharing (besskge.scoring.distmult attribute)": [[45, "besskge.scoring.DistMult.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.reduce_embedding"]], "relation_embedding (besskge.scoring.distmult attribute)": [[45, "besskge.scoring.DistMult.relation_embedding"]], "score_heads() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.score_heads"]], "score_tails() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.score_tails"]], "score_triple() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.score_triple"]], "sharding (besskge.scoring.distmult attribute)": [[45, "besskge.scoring.DistMult.sharding"]], "update_sharding() (besskge.scoring.distmult method)": [[45, "besskge.scoring.DistMult.update_sharding"]], "distancebasedscorefunction (class in besskge.scoring)": [[46, "besskge.scoring.DistanceBasedScoreFunction"]], "broadcasted_distance() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.broadcasted_distance"]], "entity_embedding (besskge.scoring.distancebasedscorefunction attribute)": [[46, "besskge.scoring.DistanceBasedScoreFunction.entity_embedding"]], "forward() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.forward"]], "negative_sample_sharing (besskge.scoring.distancebasedscorefunction attribute)": [[46, "besskge.scoring.DistanceBasedScoreFunction.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.reduce_embedding"]], "relation_embedding (besskge.scoring.distancebasedscorefunction attribute)": [[46, "besskge.scoring.DistanceBasedScoreFunction.relation_embedding"]], "score_heads() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.score_heads"]], "score_tails() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.score_tails"]], "score_triple() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.score_triple"]], "sharding (besskge.scoring.distancebasedscorefunction attribute)": [[46, "besskge.scoring.DistanceBasedScoreFunction.sharding"]], "update_sharding() (besskge.scoring.distancebasedscorefunction method)": [[46, "besskge.scoring.DistanceBasedScoreFunction.update_sharding"]], "interht (class in besskge.scoring)": [[47, "besskge.scoring.InterHT"]], "broadcasted_distance() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.broadcasted_distance"]], "entity_embedding (besskge.scoring.interht attribute)": [[47, "besskge.scoring.InterHT.entity_embedding"]], "forward() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.forward"]], "negative_sample_sharing (besskge.scoring.interht attribute)": [[47, "besskge.scoring.InterHT.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.reduce_embedding"]], "relation_embedding (besskge.scoring.interht attribute)": [[47, "besskge.scoring.InterHT.relation_embedding"]], "score_heads() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.score_heads"]], "score_tails() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.score_tails"]], "score_triple() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.score_triple"]], "sharding (besskge.scoring.interht attribute)": [[47, "besskge.scoring.InterHT.sharding"]], "update_sharding() (besskge.scoring.interht method)": [[47, "besskge.scoring.InterHT.update_sharding"]], "matrixdecompositionscorefunction (class in besskge.scoring)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction"]], "broadcasted_dot_product() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.broadcasted_dot_product"]], "entity_embedding (besskge.scoring.matrixdecompositionscorefunction attribute)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.entity_embedding"]], "forward() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.forward"]], "negative_sample_sharing (besskge.scoring.matrixdecompositionscorefunction attribute)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.reduce_embedding"]], "relation_embedding (besskge.scoring.matrixdecompositionscorefunction attribute)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.relation_embedding"]], "score_heads() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.score_heads"]], "score_tails() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.score_tails"]], "score_triple() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.score_triple"]], "sharding (besskge.scoring.matrixdecompositionscorefunction attribute)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.sharding"]], "update_sharding() (besskge.scoring.matrixdecompositionscorefunction method)": [[48, "besskge.scoring.MatrixDecompositionScoreFunction.update_sharding"]], "pairre (class in besskge.scoring)": [[49, "besskge.scoring.PairRE"]], "broadcasted_distance() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.broadcasted_distance"]], "entity_embedding (besskge.scoring.pairre attribute)": [[49, "besskge.scoring.PairRE.entity_embedding"]], "forward() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.forward"]], "negative_sample_sharing (besskge.scoring.pairre attribute)": [[49, "besskge.scoring.PairRE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.reduce_embedding"]], "relation_embedding (besskge.scoring.pairre attribute)": [[49, "besskge.scoring.PairRE.relation_embedding"]], "score_heads() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.score_heads"]], "score_tails() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.score_tails"]], "score_triple() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.score_triple"]], "sharding (besskge.scoring.pairre attribute)": [[49, "besskge.scoring.PairRE.sharding"]], "update_sharding() (besskge.scoring.pairre method)": [[49, "besskge.scoring.PairRE.update_sharding"]], "rotate (class in besskge.scoring)": [[50, "besskge.scoring.RotatE"]], "broadcasted_distance() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.broadcasted_distance"]], "entity_embedding (besskge.scoring.rotate attribute)": [[50, "besskge.scoring.RotatE.entity_embedding"]], "forward() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.forward"]], "negative_sample_sharing (besskge.scoring.rotate attribute)": [[50, "besskge.scoring.RotatE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.reduce_embedding"]], "relation_embedding (besskge.scoring.rotate attribute)": [[50, "besskge.scoring.RotatE.relation_embedding"]], "score_heads() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.score_heads"]], "score_tails() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.score_tails"]], "score_triple() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.score_triple"]], "sharding (besskge.scoring.rotate attribute)": [[50, "besskge.scoring.RotatE.sharding"]], "update_sharding() (besskge.scoring.rotate method)": [[50, "besskge.scoring.RotatE.update_sharding"]], "trans (class in besskge.scoring)": [[51, "besskge.scoring.TranS"]], "broadcasted_distance() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.broadcasted_distance"]], "entity_embedding (besskge.scoring.trans attribute)": [[51, "besskge.scoring.TranS.entity_embedding"]], "forward() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.forward"]], "negative_sample_sharing (besskge.scoring.trans attribute)": [[51, "besskge.scoring.TranS.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.reduce_embedding"]], "relation_embedding (besskge.scoring.trans attribute)": [[51, "besskge.scoring.TranS.relation_embedding"]], "score_heads() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.score_heads"]], "score_tails() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.score_tails"]], "score_triple() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.score_triple"]], "sharding (besskge.scoring.trans attribute)": [[51, "besskge.scoring.TranS.sharding"]], "update_sharding() (besskge.scoring.trans method)": [[51, "besskge.scoring.TranS.update_sharding"]], "transe (class in besskge.scoring)": [[52, "besskge.scoring.TransE"]], "broadcasted_distance() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.broadcasted_distance"]], "entity_embedding (besskge.scoring.transe attribute)": [[52, "besskge.scoring.TransE.entity_embedding"]], "forward() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.forward"]], "negative_sample_sharing (besskge.scoring.transe attribute)": [[52, "besskge.scoring.TransE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.reduce_embedding"]], "relation_embedding (besskge.scoring.transe attribute)": [[52, "besskge.scoring.TransE.relation_embedding"]], "score_heads() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.score_heads"]], "score_tails() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.score_tails"]], "score_triple() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.score_triple"]], "sharding (besskge.scoring.transe attribute)": [[52, "besskge.scoring.TransE.sharding"]], "update_sharding() (besskge.scoring.transe method)": [[52, "besskge.scoring.TransE.update_sharding"]], "triplere (class in besskge.scoring)": [[53, "besskge.scoring.TripleRE"]], "broadcasted_distance() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.broadcasted_distance"]], "entity_embedding (besskge.scoring.triplere attribute)": [[53, "besskge.scoring.TripleRE.entity_embedding"]], "forward() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.forward"]], "negative_sample_sharing (besskge.scoring.triplere attribute)": [[53, "besskge.scoring.TripleRE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.reduce_embedding"]], "relation_embedding (besskge.scoring.triplere attribute)": [[53, "besskge.scoring.TripleRE.relation_embedding"]], "score_heads() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.score_heads"]], "score_tails() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.score_tails"]], "score_triple() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.score_triple"]], "sharding (besskge.scoring.triplere attribute)": [[53, "besskge.scoring.TripleRE.sharding"]], "update_sharding() (besskge.scoring.triplere method)": [[53, "besskge.scoring.TripleRE.update_sharding"]], "besskge.sharding": [[54, "module-besskge.sharding"]], "partitionedtripleset (class in besskge.sharding)": [[55, "besskge.sharding.PartitionedTripleSet"]], "create_from_dataset() (besskge.sharding.partitionedtripleset class method)": [[55, "besskge.sharding.PartitionedTripleSet.create_from_dataset"]], "create_from_queries() (besskge.sharding.partitionedtripleset class method)": [[55, "besskge.sharding.PartitionedTripleSet.create_from_queries"]], "dummy (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.dummy"]], "inverse_triples (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.inverse_triples"]], "neg_heads (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.neg_heads"]], "neg_tails (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.neg_tails"]], "partition_mode (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.partition_mode"]], "sharding (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.sharding"]], "triple_counts (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.triple_counts"]], "triple_offsets (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.triple_offsets"]], "triple_sort_idx (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.triple_sort_idx"]], "triples (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.triples"]], "types (besskge.sharding.partitionedtripleset attribute)": [[55, "besskge.sharding.PartitionedTripleSet.types"]], "sharding (class in besskge.sharding)": [[56, "besskge.sharding.Sharding"]], "create() (besskge.sharding.sharding class method)": [[56, "besskge.sharding.Sharding.create"]], "entity_to_idx (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.entity_to_idx"]], "entity_to_shard (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.entity_to_shard"]], "entity_type_counts (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.entity_type_counts"]], "entity_type_offsets (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.entity_type_offsets"]], "load() (besskge.sharding.sharding class method)": [[56, "besskge.sharding.Sharding.load"]], "max_entity_per_shard (besskge.sharding.sharding property)": [[56, "besskge.sharding.Sharding.max_entity_per_shard"]], "n_entity (besskge.sharding.sharding property)": [[56, "besskge.sharding.Sharding.n_entity"]], "n_shard (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.n_shard"]], "save() (besskge.sharding.sharding method)": [[56, "besskge.sharding.Sharding.save"]], "shard_and_idx_to_entity (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.shard_and_idx_to_entity"]], "shard_counts (besskge.sharding.sharding attribute)": [[56, "besskge.sharding.Sharding.shard_counts"]], "besskge.utils": [[57, "module-besskge.utils"]], "complex_multiplication() (in module besskge.utils)": [[58, "besskge.utils.complex_multiplication"]], "complex_rotation() (in module besskge.utils)": [[59, "besskge.utils.complex_rotation"]], "gather_indices() (in module besskge.utils)": [[60, "besskge.utils.gather_indices"]], "besskge": [[61, "module-besskge"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["API_reference", "bess", "bibliography", "contrib", "dev_guide", "generated/besskge.batch_sampler", "generated/besskge.batch_sampler.RandomShardedBatchSampler", "generated/besskge.batch_sampler.RigidShardedBatchSampler", "generated/besskge.batch_sampler.ShardedBatchSampler", "generated/besskge.bess", "generated/besskge.bess.AllScoresBESS", "generated/besskge.bess.BessKGE", "generated/besskge.bess.EmbeddingMovingBessKGE", "generated/besskge.bess.ScoreMovingBessKGE", "generated/besskge.bess.TopKQueryBessKGE", "generated/besskge.dataset", "generated/besskge.dataset.KGDataset", "generated/besskge.embedding", "generated/besskge.embedding.init_KGE_normal", "generated/besskge.embedding.init_KGE_uniform", "generated/besskge.embedding.init_uniform_norm", "generated/besskge.embedding.initialize_entity_embedding", "generated/besskge.embedding.initialize_relation_embedding", "generated/besskge.embedding.refactor_embedding_sharding", "generated/besskge.loss", "generated/besskge.loss.BaseLossFunction", "generated/besskge.loss.LogSigmoidLoss", "generated/besskge.loss.MarginBasedLossFunction", "generated/besskge.loss.MarginRankingLoss", "generated/besskge.loss.SampledSoftmaxCrossEntropyLoss", "generated/besskge.metric", "generated/besskge.metric.BaseMetric", "generated/besskge.metric.Evaluation", "generated/besskge.metric.HitsAtK", "generated/besskge.metric.METRICS_DICT", "generated/besskge.metric.ReciprocalRank", "generated/besskge.negative_sampler", "generated/besskge.negative_sampler.PlaceholderNegativeSampler", "generated/besskge.negative_sampler.RandomShardedNegativeSampler", "generated/besskge.negative_sampler.ShardedNegativeSampler", "generated/besskge.negative_sampler.TripleBasedShardedNegativeSampler", "generated/besskge.negative_sampler.TypeBasedShardedNegativeSampler", "generated/besskge.pipeline", "generated/besskge.pipeline.AllScoresPipeline", "generated/besskge.scoring", "generated/besskge.scoring.BaseScoreFunction", "generated/besskge.scoring.BoxE", "generated/besskge.scoring.ComplEx", "generated/besskge.scoring.DistMult", "generated/besskge.scoring.DistanceBasedScoreFunction", "generated/besskge.scoring.InterHT", "generated/besskge.scoring.MatrixDecompositionScoreFunction", "generated/besskge.scoring.PairRE", "generated/besskge.scoring.RotatE", "generated/besskge.scoring.TranS", "generated/besskge.scoring.TransE", "generated/besskge.scoring.TripleRE", "generated/besskge.sharding", "generated/besskge.sharding.PartitionedTripleSet", "generated/besskge.sharding.Sharding", "generated/besskge.utils", "generated/besskge.utils.complex_multiplication", "generated/besskge.utils.complex_rotation", "generated/besskge.utils.gather_indices", "generated/besskge.utils.get_entity_filter", "index", "user_guide"], "filenames": ["API_reference.rst", "bess.rst", "bibliography.rst", "contrib.md", "dev_guide.rst", "generated/besskge.batch_sampler.rst", "generated/besskge.batch_sampler.RandomShardedBatchSampler.rst", "generated/besskge.batch_sampler.RigidShardedBatchSampler.rst", "generated/besskge.batch_sampler.ShardedBatchSampler.rst", "generated/besskge.bess.rst", "generated/besskge.bess.AllScoresBESS.rst", "generated/besskge.bess.BessKGE.rst", "generated/besskge.bess.EmbeddingMovingBessKGE.rst", "generated/besskge.bess.ScoreMovingBessKGE.rst", "generated/besskge.bess.TopKQueryBessKGE.rst", "generated/besskge.dataset.rst", "generated/besskge.dataset.KGDataset.rst", "generated/besskge.embedding.rst", "generated/besskge.embedding.init_KGE_normal.rst", "generated/besskge.embedding.init_KGE_uniform.rst", "generated/besskge.embedding.init_uniform_norm.rst", "generated/besskge.embedding.initialize_entity_embedding.rst", "generated/besskge.embedding.initialize_relation_embedding.rst", "generated/besskge.embedding.refactor_embedding_sharding.rst", "generated/besskge.loss.rst", "generated/besskge.loss.BaseLossFunction.rst", "generated/besskge.loss.LogSigmoidLoss.rst", "generated/besskge.loss.MarginBasedLossFunction.rst", "generated/besskge.loss.MarginRankingLoss.rst", "generated/besskge.loss.SampledSoftmaxCrossEntropyLoss.rst", "generated/besskge.metric.rst", "generated/besskge.metric.BaseMetric.rst", "generated/besskge.metric.Evaluation.rst", "generated/besskge.metric.HitsAtK.rst", "generated/besskge.metric.METRICS_DICT.rst", "generated/besskge.metric.ReciprocalRank.rst", "generated/besskge.negative_sampler.rst", "generated/besskge.negative_sampler.PlaceholderNegativeSampler.rst", "generated/besskge.negative_sampler.RandomShardedNegativeSampler.rst", "generated/besskge.negative_sampler.ShardedNegativeSampler.rst", "generated/besskge.negative_sampler.TripleBasedShardedNegativeSampler.rst", "generated/besskge.negative_sampler.TypeBasedShardedNegativeSampler.rst", "generated/besskge.pipeline.rst", "generated/besskge.pipeline.AllScoresPipeline.rst", "generated/besskge.scoring.rst", "generated/besskge.scoring.BaseScoreFunction.rst", "generated/besskge.scoring.BoxE.rst", "generated/besskge.scoring.ComplEx.rst", "generated/besskge.scoring.DistMult.rst", "generated/besskge.scoring.DistanceBasedScoreFunction.rst", "generated/besskge.scoring.InterHT.rst", "generated/besskge.scoring.MatrixDecompositionScoreFunction.rst", "generated/besskge.scoring.PairRE.rst", "generated/besskge.scoring.RotatE.rst", "generated/besskge.scoring.TranS.rst", "generated/besskge.scoring.TransE.rst", "generated/besskge.scoring.TripleRE.rst", "generated/besskge.sharding.rst", "generated/besskge.sharding.PartitionedTripleSet.rst", "generated/besskge.sharding.Sharding.rst", "generated/besskge.utils.rst", "generated/besskge.utils.complex_multiplication.rst", "generated/besskge.utils.complex_rotation.rst", "generated/besskge.utils.gather_indices.rst", "generated/besskge.utils.get_entity_filter.rst", "index.rst", "user_guide.rst"], "titles": ["BESS-KGE API Reference", "BESS overview", "Bibliography", "How to contribute to the BESS-KGE project", "How to contribute to the BESS-KGE project", "besskge.batch_sampler", "besskge.batch_sampler.RandomShardedBatchSampler", "besskge.batch_sampler.RigidShardedBatchSampler", "besskge.batch_sampler.ShardedBatchSampler", "besskge.bess", "besskge.bess.AllScoresBESS", "besskge.bess.BessKGE", "besskge.bess.EmbeddingMovingBessKGE", "besskge.bess.ScoreMovingBessKGE", "besskge.bess.TopKQueryBessKGE", "besskge.dataset", "besskge.dataset.KGDataset", "besskge.embedding", "besskge.embedding.init_KGE_normal", "besskge.embedding.init_KGE_uniform", "besskge.embedding.init_uniform_norm", "besskge.embedding.initialize_entity_embedding", "besskge.embedding.initialize_relation_embedding", "besskge.embedding.refactor_embedding_sharding", "besskge.loss", "besskge.loss.BaseLossFunction", "besskge.loss.LogSigmoidLoss", "besskge.loss.MarginBasedLossFunction", "besskge.loss.MarginRankingLoss", "besskge.loss.SampledSoftmaxCrossEntropyLoss", "besskge.metric", "besskge.metric.BaseMetric", "besskge.metric.Evaluation", "besskge.metric.HitsAtK", "besskge.metric.METRICS_DICT", "besskge.metric.ReciprocalRank", "besskge.negative_sampler", "besskge.negative_sampler.PlaceholderNegativeSampler", "besskge.negative_sampler.RandomShardedNegativeSampler", "besskge.negative_sampler.ShardedNegativeSampler", "besskge.negative_sampler.TripleBasedShardedNegativeSampler", "besskge.negative_sampler.TypeBasedShardedNegativeSampler", "besskge.pipeline", "besskge.pipeline.AllScoresPipeline", "besskge.scoring", "besskge.scoring.BaseScoreFunction", "besskge.scoring.BoxE", "besskge.scoring.ComplEx", "besskge.scoring.DistMult", "besskge.scoring.DistanceBasedScoreFunction", "besskge.scoring.InterHT", "besskge.scoring.MatrixDecompositionScoreFunction", "besskge.scoring.PairRE", "besskge.scoring.RotatE", "besskge.scoring.TranS", "besskge.scoring.TransE", "besskge.scoring.TripleRE", "besskge.sharding", "besskge.sharding.PartitionedTripleSet", "besskge.sharding.Sharding", "besskge.utils", "besskge.utils.complex_multiplication", "besskge.utils.complex_rotation", "besskge.utils.gather_indices", "besskge.utils.get_entity_filter", "BESS-KGE", "User guide"], "terms": {"when": [1, 3, 4, 11, 12, 13, 14, 22, 25, 26, 27, 28, 29, 36, 37, 40], "distribut": [1, 5, 9, 10, 11, 14, 18, 19, 20, 57, 65, 66], "workload": 1, "over": [1, 6, 7, 8, 14, 65], "n": [1, 40, 58], "worker": [1, 6, 7, 8, 65], "ipu": [1, 3, 4, 6, 7, 8, 9, 10, 43, 63, 65, 66], "randomli": [1, 16], "split": [1, 16, 40], "entiti": [1, 2, 6, 7, 8, 10, 11, 12, 13, 14, 16, 17, 21, 23, 29, 32, 33, 36, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 64, 65, 66], "embed": [1, 2, 11, 12, 13, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66], "tabl": [1, 11, 12, 13, 17, 21, 22, 23, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 66], "shard": [1, 6, 7, 8, 10, 12, 13, 14, 21, 23, 37, 38, 39, 40, 41, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 65], "equal": [1, 12], "size": [1, 6, 7, 8, 10, 13, 14, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56, 66], "each": [1, 5, 6, 7, 8, 10, 11, 12, 13, 14, 16, 20, 21, 22, 32, 38, 40, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 64], "which": [1, 12, 16, 37, 38, 39, 40, 41, 64], "i": [1, 3, 4, 6, 7, 8, 12, 13, 14, 16, 21, 22, 33, 38, 40, 43, 46, 58, 62, 63, 64, 65], "store": [1, 13, 15, 16, 43, 58, 65, 66], "": [1, 2, 3, 4], "memori": [1, 6, 7, 8, 11, 12, 13, 65], "The": [1, 3, 4, 6, 7, 8, 10, 11, 12, 13, 16, 23, 25, 26, 27, 28, 29, 32, 40, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 64, 65, 66], "relat": [1, 2, 10, 11, 12, 13, 14, 16, 17, 22, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 65], "type": [1, 6, 7, 8, 10, 11, 12, 13, 14, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 32, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64, 65], "other": [1, 6, 7, 8, 11, 12, 13], "hand": 1, "replic": [1, 13], "across": [1, 3, 4], "usual": 1, "much": 1, "smaller": 1, "figur": 1, "1": [1, 2, 10, 11, 12, 13, 14, 16, 18, 19, 20, 26, 27, 28, 29, 32, 40, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 63, 66], "3": [1, 3, 4, 16, 64, 66], "induc": 1, "partit": [1, 6, 7, 8, 10, 11, 14, 37, 38, 39, 40, 41, 43, 58], "tripl": [1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 22, 25, 26, 27, 28, 29, 32, 33, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 64, 65], "dataset": [1, 2, 22, 58, 65, 66], "accord": [1, 5, 11, 12, 13, 18, 19, 20, 23, 32], "pair": [1, 2, 38, 58, 64], "head": [1, 2, 10, 11, 12, 13, 14, 16, 36, 38, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 64], "tail": [1, 2, 10, 11, 12, 13, 14, 16, 36, 38, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 64], "At": [1, 7, 14], "execut": [1, 57], "time": [1, 6, 7, 8, 65], "both": [1, 3, 4, 25, 45, 65], "train": [1, 9, 11, 12, 13, 16, 42, 43, 65, 66], "infer": [1, 2, 6, 7, 8, 9, 10, 11, 14, 42, 43, 65, 66], "batch": [1, 5, 6, 7, 8, 10, 11, 12, 13, 14, 24, 25, 26, 27, 28, 29, 32, 38, 40, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 61, 62, 65, 66], "ar": [1, 3, 4, 10, 12, 13, 14, 16, 22, 25, 32, 40, 46, 58, 63, 65, 66], "construct": [1, 25, 26, 27, 28, 29, 36, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 64], "sampl": [1, 2, 5, 6, 7, 8, 11, 12, 13, 14, 24, 25, 26, 27, 28, 29, 36, 37, 38, 39, 40, 41, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 65, 66], "uniformli": 1, "from": [1, 2, 3, 4, 6, 7, 8, 11, 12, 13, 16, 23, 32, 37, 38, 39, 40, 41, 58, 63], "2": [1, 11, 12, 13, 41, 46, 58, 61, 62, 63, 64, 66], "neg": [1, 5, 6, 7, 8, 10, 11, 12, 13, 14, 16, 24, 25, 26, 27, 28, 29, 36, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 66], "us": [1, 2, 3, 4, 6, 7, 8, 10, 11, 13, 14, 16, 25, 26, 27, 28, 29, 32, 36, 37, 38, 40, 43, 49, 58, 65, 66], "corrupt": [1, 6, 7, 8, 10, 11, 12, 13, 32, 36, 37, 38, 39, 40, 41], "order": [1, 14, 32, 40, 43, 58, 66], "also": [1, 3, 4, 59, 66], "balanc": [1, 2, 59, 65], "wai": [1, 16], "ensur": 1, "varieti": 1, "benefici": 1, "final": [1, 3, 4, 14, 46], "qualiti": [1, 16], "left": [1, 3, 4], "A": [1, 2, 32, 37, 58, 59], "made": 1, "up": [1, 3, 4, 66], "9": [1, 66], "block": [1, 10], "contain": [1, 3, 4, 16, 58], "same": [1, 7, 10, 14, 16, 21, 22, 40, 41, 58, 59, 63, 64], "number": [1, 6, 7, 8, 10, 11, 12, 13, 14, 16, 21, 22, 29, 38, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58, 59, 66], "j": [1, 64], "0": [1, 3, 4, 6, 7, 8, 16, 18, 19, 26, 27, 28, 29, 32, 37, 46, 50, 54, 56, 58, 63, 66], "right": 1, "all": [1, 3, 4, 6, 7, 10, 13, 14, 16, 32, 37, 40, 41, 43, 58, 63], "possibli": [1, 16, 40, 43, 58], "pad": [1, 6, 7, 11, 12, 13, 14, 40, 59], "In": [1, 2, 3, 4], "thi": [1, 3, 4, 6, 7, 8, 12, 13, 14, 16, 21, 22, 43, 58, 65], "exampl": [1, 13, 14, 35], "scheme": [1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 65], "allow": [1, 3, 4, 65], "u": [1, 56], "commun": [1, 65], "first": [1, 3, 4, 16, 38, 64], "need": [1, 16, 21, 22, 25, 26, 27, 28, 29, 43, 46, 65], "gather": [1, 10, 11, 12, 13, 14, 40, 63, 65], "its": [1, 22], "chip": [1, 65], "posit": [1, 5, 6, 7, 8, 11, 12, 13, 19, 24, 25, 26, 27, 28, 29, 32, 44], "These": 1, "includ": 1, "itself": 1, "peer": 1, "requir": [1, 3, 4, 11, 12, 13, 14, 32, 38, 63], "sram": [1, 66], "retriev": [1, 65], "triangl": 1, "colour": 1, "addit": [1, 3, 4, 22], "portion": 1, "can": [1, 3, 4, 12, 13, 14, 21, 22, 32, 43, 58, 65], "reconstruct": 1, "share": [1, 2, 6, 7, 8, 11, 12, 13, 25, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 59, 65], "between": [1, 2, 12, 13, 46, 65], "through": [1, 3, 4, 11, 12, 13], "alltoal": [1, 10, 12, 13, 14], "collect": [1, 6, 7, 8, 10, 11, 12, 13, 14, 15, 58, 65], "oper": [1, 3, 4, 11, 12, 13, 65], "remain": [1, 59], "place": 1, "score": [1, 10, 11, 12, 13, 14, 24, 25, 26, 27, 28, 29, 32, 37, 40, 43, 58, 65], "where": [1, 3, 4, 10, 12, 13, 14, 16, 32, 33, 38, 40, 58], "4": [1, 2, 3, 4, 66], "exchang": 1, "an": [1, 3, 4, 10, 13, 14, 16, 21, 22, 43, 65, 66], "red": 1, "arrow": 1, "effect": [1, 37], "transpos": 1, "row": [1, 20, 32, 40, 61, 62, 63, 64], "column": [1, 16], "pictur": 1, "after": [1, 10, 43, 59], "ha": [1, 6, 7, 8, 20, 66], "correct": [1, 13, 14], "comput": [1, 2, 10, 11, 12, 13, 14, 24, 25, 26, 27, 28, 29, 30, 32, 35, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 65, 66], "present": [1, 16], "abov": [1, 3, 4], "implement": [1, 9], "besskg": [1, 3, 4, 65, 66], "embeddingmovingbesskg": [1, 13, 65], "while": [1, 14], "alwai": [1, 25], "turn": 1, "out": [1, 43], "expens": 1, "mani": 1, "per": [1, 6, 7, 8, 37, 38, 39, 40, 41], "dimens": [1, 32, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "larg": [1, 2, 10, 13, 14, 43], "case": 1, "scoremovingbesskg": [1, 10, 14, 65], "increas": 1, "overal": 1, "throughput": [1, 65], "altern": 1, "work": [1, 3, 4], "well": [1, 3, 4, 50, 54], "differ": [1, 10, 14, 21, 22, 23, 32, 65], "li": [1, 2], "how": 1, "instead": [1, 37, 38, 39, 40, 41, 43, 46], "send": [1, 13], "queri": [1, 10, 13, 14, 32, 37, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58], "devic": [1, 5, 10, 11, 12, 13, 14, 37, 38, 39, 40, 41], "allgath": [1, 13], "against": [1, 10, 12, 13, 14, 37, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58], "partial": 1, "set": [1, 3, 4, 10, 11, 14, 16, 22, 32, 40, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 64, 66], "sent": 1, "via": [1, 2, 10, 14], "new": [1, 3, 4, 6, 7, 8, 23, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 65], "cheaper": 1, "although": 1, "5": 1, "correspond": [1, 13, 21, 22, 40, 63], "6": [1, 2, 3, 4, 46], "put": 1, "back": [1, 13, 59], "came": 1, "complet": [1, 2, 10, 14, 16, 43, 58], "respons": [1, 14], "acls20": [2, 46], "ralph": 2, "abboud": 2, "i\u0307smail": 2, "i\u0307lkan": 2, "ceylan": 2, "thoma": 2, "lukasiewicz": 2, "tommaso": 2, "salvatori": 2, "box": [2, 65], "model": [2, 6, 7, 8, 11, 30, 43, 44, 46, 47, 48, 50, 52, 53, 54, 55, 56, 65], "knowledg": [2, 10, 13, 14, 15, 16, 29, 37, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58, 59, 65, 66], "base": [2, 6, 7, 8, 10, 11, 14, 16, 24, 25, 26, 27, 28, 29, 39, 40, 41, 43, 45, 46, 49, 51, 58], "advanc": 2, "neural": 2, "inform": 2, "process": [2, 5, 6, 7, 8, 37, 38, 39, 40, 41], "system": [2, 3, 4, 66], "33": 2, "annual": 2, "confer": 2, "2020": 2, "neurip": 2, "13": [2, 55], "asam20": [2, 16], "breit": 2, "anna": 2, "ott": 2, "simon": 2, "agibetov": 2, "asan": 2, "samwald": 2, "matthia": 2, "openbiolink": [2, 16], "benchmark": [2, 16], "framework": [2, 11, 65], "scale": [2, 25, 26, 27, 28, 29], "biomed": 2, "link": [2, 3, 4, 32, 65, 66], "predict": [2, 14, 30, 32, 33, 35, 43, 66], "bioinformat": 2, "36": 2, "4097": 2, "4098": 2, "bugd": [2, 55], "antoin": 2, "bord": 2, "nicola": 2, "usuni": 2, "alberto": 2, "garc\u00eda": 2, "dur\u00e1n": 2, "jason": 2, "weston": 2, "oksana": 2, "yakhnenko": 2, "translat": 2, "multi": 2, "data": [2, 6, 7, 8, 10, 16], "26": 2, "27th": 2, "2013": 2, "2787": 2, "2795": 2, "cjm": [2, 9, 10, 11, 14, 29], "22": [2, 9, 10, 11, 14, 29, 50, 56], "cattaneo": 2, "daniel": 2, "justu": 2, "harri": 2, "mellor": 2, "dougla": 2, "orr": 2, "jerom": 2, "maloberti": 2, "zheni": 2, "liu": 2, "thorin": 2, "farnsworth": 2, "andrew": 2, "fitzgibbon": 2, "blazej": 2, "banaszewski": 2, "carlo": 2, "luschi": 2, "bess": [2, 5, 37, 40, 42, 66], "graph": [2, 10, 13, 14, 15, 16, 29, 37, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58, 59, 65, 66], "arxiv": 2, "preprint": 2, "2211": 2, "12281": 2, "2022": 2, "chwc21": [2, 52], "linlin": 2, "chao": 2, "jianshan": 2, "he": 2, "taifeng": 2, "wang": 2, "wei": 2, "chu": 2, "pairr": [2, 65], "vector": 2, "proceed": 2, "59th": 2, "meet": 2, "associ": [2, 16], "linguist": 2, "11th": 2, "intern": [2, 25, 45], "joint": 2, "natur": 2, "languag": 2, "acl": 2, "ijcnlp": 2, "2021": 2, "volum": 2, "long": 2, "paper": 2, "virtual": 2, "event": 2, "august": 2, "4360": 2, "4369": 2, "dppr18": [2, 16], "tim": 2, "dettmer": 2, "minervini": 2, "pasqual": 2, "stenetorp": 2, "pontu": 2, "sebastian": 2, "riedel": 2, "convolut": 2, "2d": 2, "32th": 2, "aaai": 2, "artifici": 2, "intellig": 2, "1811": 2, "1818": 2, "2018": 2, "hfz": [2, 16], "20": [2, 3, 4, 16, 66], "weihua": 2, "hu": 2, "fei": 2, "marinka": 2, "zitnik": 2, "yuxiao": 2, "dong": 2, "hongyu": 2, "ren": 2, "bowen": 2, "michel": 2, "catasta": 2, "jure": 2, "leskovec": 2, "open": [2, 3, 4, 65], "machin": [2, 65], "learn": [2, 22, 46, 47, 48, 50, 52, 53, 54, 55, 56], "jcmb15": [2, 29], "\u00e9": 2, "bastien": 2, "jean": 2, "kyunghyun": 2, "cho": 2, "roland": 2, "memisev": 2, "yoshua": 2, "bengio": 2, "On": 2, "veri": [2, 13], "target": 2, "vocabulari": 2, "53rd": 2, "7th": 2, "10": [2, 16, 43, 66], "2015": 2, "mbs15": [2, 16], "farzaneh": 2, "mahdisoltani": 2, "joanna": 2, "biega": 2, "fabian": 2, "m": [2, 3, 4, 66], "suchanek": 2, "yago3": [2, 16, 66], "multilingu": 2, "wikipedia": 2, "seventh": 2, "biennial": 2, "innov": 2, "research": [2, 3, 4, 66], "cidr": 2, "asilomar": 2, "ca": 2, "usa": 2, "januari": 2, "7": [2, 16, 66], "onlin": 2, "sdnt19": [2, 26, 53], "zhiqe": 2, "sun": 2, "zhi": 2, "hong": 2, "deng": 2, "jian": 2, "yun": 2, "nie": 2, "tang": 2, "rotat": [2, 62, 65], "complex": [2, 53, 61, 62, 65], "space": [2, 46], "represent": [2, 46], "iclr": 2, "2019": 2, "twr": [2, 47], "16": [2, 6, 7, 8, 47, 66], "th": 2, "o": [2, 6, 7, 8], "trouillon": 2, "johann": 2, "welbl": 2, "ric": 2, "gaussier": 2, "guillaum": 2, "bouchard": 2, "simpl": 2, "33rd": 2, "icml": 2, "2016": 2, "48": 2, "jmlr": 2, "workshop": 2, "2071": 2, "2080": 2, "wmw": [2, 50], "baoxin": 2, "qingy": 2, "meng": 2, "ziyu": 2, "honghong": 2, "zhao": 2, "dayong": 2, "wu": 2, "wanxiang": 2, "che": 2, "shijin": 2, "zhigang": 2, "chen": 2, "cong": 2, "interht": [2, 65], "interact": 2, "2202": 2, "04897": 2, "yyh": [2, 48], "15": [2, 16, 48], "bishan": 2, "yang": 2, "wen": 2, "tau": 2, "yih": 2, "xiaodong": 2, "jianfeng": 2, "gao": 2, "3rd": 2, "yll": [2, 56], "yu": 2, "zhicong": 2, "luo": 2, "huanyong": 2, "lin": 2, "hongzhu": 2, "yafeng": 2, "tripler": [2, 65], "2209": 2, "08271": 2, "zyx22": [2, 54], "xuanyu": 2, "zhang": 2, "qing": 2, "dongliang": 2, "xu": 2, "tran": [2, 65], "transit": 2, "synthet": 2, "find": [2, 64], "emnlp": 2, "1202": 2, "1208": 2, "you": [3, 4, 66], "even": [3, 4], "don": [3, 4], "t": [3, 4, 10, 12, 14, 15, 16, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 64, 65], "have": [3, 4, 16, 43, 65], "access": [3, 4, 65], "ipumodel": [3, 4], "emul": [3, 4], "most": [3, 4, 14, 33, 43], "function": [3, 4, 6, 7, 8, 10, 11, 12, 13, 14, 17, 21, 22, 24, 25, 26, 27, 28, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 60, 63, 66], "physic": [3, 4, 66], "hardwar": [3, 4, 43], "tunnel": [3, 4], "web": [3, 4], "editor": [3, 4], "desktop": [3, 4], "app": [3, 4], "minimum": [3, 4], "effort": [3, 4], "excel": [3, 4], "solut": [3, 4], "test": [3, 4, 16, 66], "directli": [3, 4], "here": [3, 4, 16, 43], "do": [3, 4], "fork": [3, 4], "repositori": [3, 4], "launch": [3, 4], "hour": [3, 4], "session": [3, 4], "free": [3, 4, 65, 66], "form": [3, 4], "http": [3, 4, 16, 66], "consol": [3, 4], "com": [3, 4, 16, 66], "github": [3, 4, 16, 65, 66], "userid": [3, 4], "reponam": [3, 4], "graphcor": [3, 4, 66], "2fpytorch": [3, 4], "3a3": [3, 4], "ubuntu": [3, 4, 66], "04": [3, 4, 66], "20230703": [3, 4], "pod4": [3, 4, 66], "repopnam": [3, 4], "address": [3, 4], "e": [3, 4, 16, 61, 62, 63, 64], "g": [3, 4], "origin": [3, 4], "repo": [3, 4, 65], "start": [3, 4, 32, 65], "clone": [3, 4], "termin": [3, 4], "pane": [3, 4], "run": [3, 4, 6, 7, 8, 43, 66], "command": [3, 4], "bash": [3, 4], "gradient": [3, 4, 66], "launch_vscode_serv": [3, 4], "sh": [3, 4, 66], "name": [3, 4, 10, 12, 14, 16, 43, 58], "option": [3, 4, 6, 7, 8, 10, 11, 12, 13, 14, 16, 21, 22, 32, 40, 43, 58, 59, 66], "argument": [3, 4], "defin": [3, 4, 16, 46], "remot": [3, 4], "default": [3, 4, 6, 7, 8, 10, 11, 12, 13, 14, 18, 19, 28, 32, 38, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58, 59], "script": [3, 4], "download": [3, 4, 16], "instal": [3, 4, 65], "depend": [3, 4, 64, 66], "ask": [3, 4], "author": [3, 4], "account": [3, 4], "write": [3, 4], "privileg": [3, 4], "provid": [3, 4, 14, 21, 22, 32, 43], "pleas": [3, 4], "refer": [3, 4, 65], "notebook": [3, 4, 66], "detail": [3, 4, 66], "step": [3, 4, 10, 11, 12, 13, 14, 43], "connect": [3, 4], "onc": [3, 4, 21, 22, 65], "dev": [3, 4], "build": [3, 4, 15, 16], "custom": [3, 4], "op": [3, 4], "now": [3, 4], "readi": [3, 4], "close": [3, 4], "stop": [3, 4], "rememb": [3, 4], "unregist": [3, 4], "explain": [3, 4], "common": [3, 4], "issu": [3, 4, 65], "paragraph": [3, 4], "To": [3, 4, 10, 11, 14, 43], "resum": [3, 4], "your": [3, 4, 66], "just": [3, 4], "section": [3, 4], "profil": [3, 4], "repeat": [3, 4, 7], "chang": [3, 4, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "extens": [3, 4], "persist": [3, 4], "poplar": [3, 4, 66], "sdk": [3, 4, 66], "follow": [3, 4, 66], "instruct": [3, 4, 66], "get": [3, 4, 65], "guid": [3, 4, 65], "Then": [3, 4], "enabl": [3, 4, 66], "creat": [3, 4, 58, 59, 66], "activ": [3, 4, 28, 65, 66], "python": [3, 4, 65, 66], "virtualenv": [3, 4, 66], "poptorch": [3, 4, 6, 7, 8, 65, 66], "wheel": [3, 4, 66], "necessari": [3, 4], "python3": [3, 4, 66], "8": [3, 4, 66], "venv": [3, 4, 66], "add": [3, 4], "bin": [3, 4, 66], "sourc": [3, 4, 6, 7, 8, 10, 11, 12, 13, 14, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 31, 32, 33, 35, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64, 66], "path_to_poplar_sdk": [3, 4], "pip": [3, 4, 66], "poplar_sdk_en": [3, 4, 66], "whl": [3, 4, 66], "r": [3, 4, 10, 14, 15, 16, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 62, 64, 65], "txt": [3, 4], "sever": [3, 4], "util": [3, 4, 6, 7, 8, 15, 17, 30, 65], "dure": [3, 4, 66], "check": [3, 4], "help": [3, 4], "list": [3, 4, 6, 7, 8, 16, 21, 22, 32, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56], "befor": [3, 4, 11, 12, 13, 14, 46, 50, 52, 54, 56], "submit": [3, 4], "pr": [3, 4], "upstream": [3, 4], "ci": [3, 4], "particular": [3, 4], "mind": [3, 4], "our": [3, 4, 66], "format": [3, 4], "error": [3, 4, 10, 14, 43, 66], "lint": [3, 4], "automat": [3, 4, 16], "insid": [3, 4, 46, 66], "unit": [3, 4], "folder": [3, 4], "individu": [3, 4], "pattern": [3, 4], "match": [3, 4], "filter": [3, 4, 11, 12, 13, 14, 43, 64], "k": [3, 4, 14, 32, 33, 34, 43, 62, 63], "cpp": [3, 4], "custom_op": [3, 4], "updat": [3, 4], "makefil": [3, 4], "ad": [3, 4, 22, 58, 65], "class": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59], "partitioned_triple_set": [6, 7, 8, 43], "negative_sampl": [6, 7, 8, 10, 11, 12, 13, 14, 65], "shard_b": [6, 7, 8, 10, 14], "batches_per_step": [6, 7, 8], "seed": [6, 7, 8, 16, 37, 38, 40, 41, 59], "hrt_freq_weight": [6, 7, 8], "fals": [6, 7, 8, 11, 12, 13, 14, 32, 38, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58], "weight_smooth": [6, 7, 8], "duplicate_batch": [6, 7, 8], "return_triple_idx": [6, 7, 8], "random": [6, 16, 38, 59], "indic": [6, 7, 8, 10, 11, 12, 13, 14, 32, 40, 58, 63], "replac": 6, "No": [6, 37, 66], "appli": [6, 40, 43, 50, 54, 59, 64], "initi": [6, 7, 8, 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 22, 25, 26, 27, 28, 29, 32, 37, 38, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "sampler": [6, 7, 8, 10, 11, 12, 13, 14, 37, 38, 39, 40, 41, 43], "paramet": [6, 7, 8, 10, 11, 12, 13, 14, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 32, 33, 35, 37, 38, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64, 66], "partitionedtripleset": [6, 7, 8, 65], "pre": [6, 7, 8, 16], "shardednegativesampl": [6, 7, 8, 11, 12, 13, 37, 65], "int": [6, 7, 8, 10, 11, 12, 13, 14, 16, 21, 22, 29, 33, 37, 38, 40, 41, 43, 46, 47, 48, 49, 50, 52, 53, 54, 55, 56, 59], "micro": [6, 7, 8, 11, 12, 13, 14], "call": [6, 7, 8, 37], "rng": [6, 7, 8, 37, 38, 39, 40, 41], "bool": [6, 7, 8, 11, 12, 13, 14, 18, 19, 22, 25, 26, 27, 28, 29, 32, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58], "If": [6, 7, 8, 11, 12, 13, 14, 16, 21, 22, 32, 38, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58, 63, 66], "true": [6, 7, 8, 11, 12, 13, 14, 18, 19, 22, 32, 38, 40, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56, 59], "frequenc": [6, 7, 8], "weight": [6, 7, 8, 11, 12, 13, 25, 26, 27, 28, 29, 66], "float": [6, 7, 8, 16, 18, 19, 26, 27, 28, 29, 46, 50, 54, 56], "smooth": [6, 7, 8], "two": [6, 7, 8, 46, 64], "ident": [6, 7, 8], "halv": [6, 7, 8], "ht": [6, 7, 8, 12, 37, 38, 39, 40, 41], "return": [6, 7, 8, 10, 11, 12, 13, 14, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 32, 33, 35, 37, 40, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64], "wrt": [6, 7, 8, 43], "get_dataload": [6, 7, 8], "shuffl": [6, 7, 8], "num_work": [6, 7, 8], "persistent_work": [6, 7, 8], "buffer_s": [6, 7, 8], "dataload": [6, 7, 8], "instanti": [6, 7, 8, 16], "appropri": [6, 7, 8], "iter": [6, 7, 8, 10, 14], "It": [6, 7, 8, 14, 43], "asynchron": [6, 7, 8], "load": [6, 7, 8, 14, 16, 59], "minim": [6, 7, 8, 65], "cpu": [6, 7, 8], "compil": [6, 7, 8, 66], "epoch": [6, 7, 8], "see": [6, 7, 8, 10, 11, 12, 13, 14, 26, 27, 28, 29, 32, 35, 37, 40, 41, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 65, 66], "torch": [6, 7, 8, 63], "__init__": [6, 7, 8, 28, 40, 41, 46, 47, 48, 50, 52, 53, 54, 55, 56], "ring": [6, 7, 8], "buffer": [6, 7, 8], "preload": [6, 7, 8], "get_dataloader_sampl": [6, 7, 8], "sample_tripl": [6, 7, 8], "idx": [6, 7, 8], "index": [6, 7, 8, 10, 40, 63, 64], "dict": [6, 7, 8, 11, 12, 13, 14, 16, 32, 43], "str": [6, 7, 8, 11, 12, 13, 14, 16, 28, 32, 34, 37, 38, 39, 40, 41, 43, 58, 64], "union": [6, 7, 8, 14, 16, 21, 22, 43, 46, 47, 48, 50, 52, 53, 54, 55, 56], "ndarrai": [6, 7, 8, 16, 40, 41, 43, 58, 59], "ani": [6, 7, 8, 11, 12, 13, 14, 16, 40, 41, 43, 58, 59, 65], "dtype": [6, 7, 8, 16, 40, 41, 43, 58, 59, 66], "int64": [6, 7, 8, 40, 58, 59], "bool_": [6, 7, 8, 40], "relev": [6, 7, 8, 11, 12, 13], "static": [6, 7, 8], "worker_init_fn": [6, 7, 8], "worker_id": [6, 7, 8], "pass": [6, 7, 8, 14, 21, 22, 23, 43, 46], "id": [6, 7, 8, 16, 22, 32, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 64], "none": [6, 7, 8, 10, 11, 12, 13, 14, 16, 21, 22, 32, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59], "specifi": [7, 10, 16, 43, 63], "shorter": 7, "ones": [7, 22], "length": [7, 21, 22, 40], "mask": [7, 11, 12, 13, 14, 32, 40], "identifi": [7, 11, 12, 13], "abstract": [8, 11, 25, 27, 45, 49, 51], "pytorch": [9, 66], "modul": [9, 10, 11, 12, 13, 14, 25, 30, 32, 43, 45], "kge": [9, 10, 11, 12, 13, 14, 30, 44, 66], "multipl": [9, 61], "candidate_sampl": [10, 14], "score_fn": [10, 11, 12, 13, 14, 43], "window_s": [10, 14, 43], "1000": [10, 43], "h": [10, 12, 14, 15, 16, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 64, 65], "host": [10, 11, 12, 13, 43], "combin": [10, 11, 14, 43], "h_shard": [10, 14, 43, 58], "t_shard": [10, 14, 43, 58], "sinc": 10, "onli": [10, 14, 16, 37, 38, 39, 40, 41, 58], "part": [10, 16, 58, 61, 62], "slide": [10, 14, 43], "window": [10, 14, 43], "metric": [10, 11, 12, 13, 14, 43, 65], "should": [10, 14, 16, 43], "aggreg": 10, "pipelin": [10, 65], "allscorespipelin": [10, 65], "allscor": 10, "placeholdernegativesampl": [10, 14, 65], "basescorefunct": [10, 11, 12, 13, 14, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 65], "decreas": [10, 14, 32, 43], "avoid": [10, 13, 14, 43], "oom": [10, 14, 43], "forward": [10, 11, 12, 13, 14, 25, 26, 27, 28, 29, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "similarli": [10, 14, 58], "candid": [10, 14, 32, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "thei": [10, 13, 14, 40], "togeth": [10, 14], "tensor": [10, 11, 12, 13, 14, 18, 19, 20, 21, 22, 25, 26, 27, 28, 29, 32, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 61, 62, 63, 64], "self": [10, 25, 26, 27, 28, 29], "shape": [10, 11, 12, 13, 14, 16, 21, 23, 25, 26, 27, 28, 29, 32, 40, 41, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62, 63, 64], "known": [10, 14, 58], "loss_fn": [11, 12, 13], "evalu": [11, 12, 13, 14, 30, 43, 65], "return_scor": [11, 12, 13, 14, 43], "augment_neg": [11, 12, 13], "ht_shardpair": [11, 58], "baselossfunct": [11, 12, 13, 26, 27, 28, 29, 65], "loss": [11, 12, 13, 65], "augment": [11, 12, 13], "triple_mask": [11, 12, 13, 14, 32], "triple_weight": [11, 12, 13, 25, 26, 27, 28, 29], "negative_mask": [11, 12, 13, 14], "compris": [11, 12, 13], "four": [11, 12, 13], "phase": [11, 12, 13], "local": [11, 12, 13, 16, 58, 59, 65], "n_shard": [11, 12, 13, 14, 21, 40, 58, 59], "positive_per_partit": [11, 12, 13], "b": [11, 12, 13, 14, 19, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 63], "padded_neg": [11, 12, 13, 14, 40], "discard": [11, 12, 13, 14], "properti": [11, 12, 13, 16, 59], "n_embedding_paramet": [11, 12, 13], "trainabl": [11, 12, 13], "score_batch": [11, 12, 13], "tupl": [11, 12, 13, 16, 40, 64], "n_neg": [11, 12, 13, 25, 26, 27, 28, 29, 32, 38, 40, 41, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58], "move": [12, 13], "done": 12, "singl": [12, 32], "total": [12, 29], "disabl": 12, "otherwis": [12, 63], "conveni": 13, "so": [13, 20], "For": [13, 14, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 63, 65, 66], "valu": 13, "document": 13, "multipli": [13, 50, 54], "doe": 13, "support": [13, 19, 32, 43, 66], "100": [14, 66], "specif": [14, 16, 40, 43, 44, 58], "top": [14, 32, 43], "like": [14, 32, 33, 43, 63], "input": 14, "recommend": [14, 66], "one": [14, 22, 23, 40, 58], "want": [14, 16], "loop": 14, "topk": 14, "triplebasedshardednegativesampl": [14, 65], "unnecessari": 14, "best": 14, "respect": 14, "kept": 14, "next": 14, "rest": 14, "mask_on_gath": [14, 40], "n_entiti": [16, 21, 29, 59], "n_relation_typ": [16, 22, 46, 47, 48, 50, 52, 53, 54, 55, 56], "entity_dict": 16, "relation_dict": 16, "type_offset": [16, 59], "neg_head": [16, 58], "neg_tail": [16, 58], "repres": 16, "int32": [16, 40, 41, 43, 58, 59], "classmethod": [16, 58, 59], "build_ogbl_biokg": 16, "root": 16, "ogbl": [16, 66], "biokg": [16, 66], "ogb": 16, "stanford": 16, "edu": 16, "doc": 16, "linkprop": 16, "path": [16, 59, 66], "locat": 16, "build_ogbl_wikikg2": 16, "wikikg2": [16, 66], "build_openbiolink": 16, "high": [16, 42, 65], "version": 16, "openbiolink2020": 16, "hq": 16, "build_yago310": 16, "subgraph": 16, "least": 16, "them": [16, 40, 65, 66], "yago": 16, "org": 16, "label": 16, "from_datafram": 16, "df": 16, "head_column": 16, "relation_column": 16, "tail_column": 16, "entity_typ": 16, "1234": 16, "panda": 16, "datafram": 16, "assign": [16, 32, 58], "contigu": 16, "dictionari": [16, 32], "seri": 16, "map": [16, 59], "string": 16, "valid": 16, "instanc": 16, "from_tripl": 16, "arrai": 16, "alreadi": [16, 40], "been": [16, 65, 66], "note": 16, "manual": 16, "numpi": 16, "head_id": 16, "relation_id": [16, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "tail_id": 16, "num_tripl": 16, "offset": [16, 50, 54, 56, 59], "ht_type": 16, "n_tripl": [16, 40, 41, 58], "h_type": [16, 58], "t_type": [16, 58], "object": [16, 59], "save": [16, 59, 66], "node": 16, "edg": 16, "n_neg_head": [16, 58], "n_neg_tail": [16, 58], "out_fil": [16, 59], "pkl": 16, "output": [16, 32, 59], "file": [16, 59, 66], "h_id": 16, "r_id": 16, "t_id": 16, "assum": [16, 32, 66], "cluster": [16, 40, 59], "manag": 17, "embedding_t": [18, 19, 20], "std": 18, "divide_by_embedding_s": [18, 19], "normal": [18, 20, 46, 50, 52, 54, 56], "mean": 18, "standard": 18, "deviat": 18, "rescal": [18, 19], "row_siz": [18, 19, 21, 22, 23], "symmetr": 19, "uniform": [19, 20], "boundari": 19, "norm": [20, 46, 49, 50, 52, 53, 54, 55, 56], "callabl": [21, 22, 34, 46, 47, 48, 50, 52, 53, 54, 55, 56], "either": 21, "max_entity_per_shard": [21, 59], "unshard": 21, "alloc": [21, 22], "entri": [21, 22], "omit": [21, 22], "max_ent_per_shard": 21, "inverse_rel": [22, 46, 47, 48, 50, 52, 53, 54, 55, 56], "invers": [22, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58], "direct": 22, "given": [22, 43, 64, 66], "entity_embed": [23, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "old_shard": 23, "new_shard": [23, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "refactor": 23, "n_shard_old": 23, "max_ent_per_shard_old": 23, "current": [23, 32], "n_shard_new": 23, "max_ent_per_shard_new": 23, "arg": [25, 45], "kwarg": [25, 45], "fp32": [25, 66], "state": [25, 45], "nn": [25, 45], "scriptmodul": [25, 45], "positive_scor": [25, 26, 27, 28, 29], "negative_scor": [25, 26, 27, 28, 29], "batch_siz": [25, 26, 27, 28, 29, 32, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "get_negative_weight": [25, 26, 27, 28, 29], "negative_adversarial_sampl": [25, 26, 27, 28, 29], "els": [25, 26, 27, 28, 29, 32, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "loss_scal": [25, 26, 27, 28, 29], "factor": [25, 26, 27, 28, 29, 56], "might": [25, 26, 27, 28, 29], "fp16": [25, 26, 27, 28, 29, 66], "adversari": [25, 26, 27, 28, 29], "negative_adversarial_scal": [25, 26, 27, 28, 29], "reciproc": [25, 26, 27, 28, 29, 35], "temperatur": [25, 26, 27, 28, 29], "margin": [26, 27, 28], "log": 26, "sigmoid": 26, "activation_funct": 28, "relu": 28, "rank": [28, 32, 33, 35], "pairwis": 28, "hing": 28, "marginbasedlossfunct": [28, 65], "softmax": 29, "cross": 29, "entropi": 29, "attribut": 30, "metric_list": 32, "mode": [32, 58], "averag": 32, "worst_rank_infti": 32, "reduct": [32, 35, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "return_rank": 32, "mrr": [32, 34, 35], "hit": [32, 33, 34], "optimist": 32, "pessimist": 32, "infin": 32, "worst": 32, "possibl": 32, "method": 32, "reduc": [32, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "along": [32, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 63], "sum": [32, 46, 47, 48, 51], "alongsid": 32, "dict_metrics_from_rank": 32, "batch_rank": 32, "element": [32, 63], "boolean": 32, "ranks_from_indic": 32, "ground_truth": [32, 58], "candidate_indic": 32, "ground": [32, 33, 35, 58], "truth": [32, 33, 35, 58], "n_candid": 32, "likelihood": 32, "distinct": 32, "among": [32, 33, 35], "ranks_from_scor": 32, "pos_scor": 32, "candidate_scor": 32, "stacked_metrics_from_rank": 32, "stack": 32, "n_metric": 32, "count": [33, 66], "maximum": [33, 66], "accept": 33, "hitsatk": [34, 65], "reciprocalrank": [34, 65], "basemetr": [35, 65], "corruption_schem": [37, 38, 39, 40, 41, 43], "placehold": 37, "topkquerybesskg": [37, 40, 65], "flat_negative_format": [37, 38, 39, 40, 41], "local_sampl": [37, 38, 39, 40, 41], "gener": [37, 38, 39, 40, 41, 60], "half": 38, "second": [38, 64, 66], "negative_head": 40, "negative_tail": 40, "return_sort_idx": 40, "predetermin": 40, "global": [40, 43, 58, 59, 64], "randomshardednegativesampl": [40, 41, 65], "sort": [40, 58], "recov": 40, "pad_neg": 40, "shard_count": [40, 59], "padded_shard_length": 40, "divid": 40, "view": 40, "shard_neg": 40, "shard_neg_count": 40, "sort_neg_idx": 40, "triple_typ": 41, "level": 42, "api": [42, 65, 66], "batch_sampl": [43, 65], "filter_tripl": [43, 64], "return_topk": 43, "use_ipu_model": 43, "kg": 43, "appear": [43, 64], "shardedbatchsampl": [43, 65], "whose": 43, "must": 43, "caus": 43, "go": 43, "actual": 43, "result": 43, "head_emb": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "tail_emb": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "score_tripl": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "negative_sample_shar": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "relation_embed": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "score_head": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "fix": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "n_head": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "embedding_s": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "broadcast": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "score_tail": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "n_tail": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "update_shard": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "scoring_norm": [46, 49, 50, 52, 53, 54, 55, 56], "entity_initi": [46, 47, 48, 50, 52, 53, 54, 55, 56], "uniform_": 46, "relation_initi": [46, 47, 48, 50, 52, 53, 54, 55, 56], "init_uniform_norm": [46, 65], "apply_tanh": 46, "dist_func_per_dim": 46, "ep": 46, "1e": 46, "06": 46, "distancebasedscorefunct": [46, 47, 48, 50, 52, 53, 54, 55, 56, 65], "center": 46, "scalar": 46, "bound": [46, 65], "bump": 46, "tanh": 46, "select": 46, "distanc": [46, 49, 50, 52, 53, 54, 55, 56], "whether": [46, 58], "outsid": 46, "make": [46, 58], "choic": 46, "separ": 46, "soften": 46, "geometr": 46, "width": 46, "boxe_scor": 46, "bumped_ht": 46, "center_ht": 46, "width_ht": 46, "box_siz": 46, "optim": [46, 66], "emb_siz": 46, "control": 46, "broadcasted_dist": [46, 49, 50, 52, 53, 54, 55, 56], "v1": [46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 61], "v2": [46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 61], "p": [46, 49, 50, 52, 53, 54, 55, 56], "reduce_embed": [46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "v": [46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 62, 65], "init_kge_norm": [47, 65], "broadcasted_dot_product": [47, 48, 51], "dot": [47, 48, 51], "product": [47, 48, 51], "init_kge_uniform": [48, 50, 52, 53, 54, 55, 56, 65], "normalize_ent": [50, 52, 54, 56], "l2": [50, 52, 54, 56], "auxiliari": 50, "matrix": 51, "decomposit": 51, "project": [52, 56], "real": [53, 61, 62], "tild": 54, "triplerev2": 56, "inverse_tripl": 58, "partition_mod": 58, "dummi": 58, "triple_count": 58, "triple_offset": 58, "triple_sort_idx": 58, "shard_h": 58, "shard_t": 58, "create_from_dataset": 58, "add_inverse_tripl": 58, "kgdataset": [58, 65], "create_from_queri": 58, "query_mod": 58, "negative_typ": 58, "n_queri": 58, "hr": 58, "rt": 58, "resp": 58, "r_inv": 58, "regular": 58, "criterion": 58, "delimit": 58, "entity_to_shard": 59, "entity_to_idx": 59, "shard_and_idx_to_ent": 59, "entity_type_count": 59, "entity_type_offset": 59, "again": 59, "n_type": 59, "npz": 59, "local_id": 59, "exclud": 59, "purpos": 60, "imaginari": [61, 62], "wise": [61, 62], "unitari": 62, "pi": 62, "x": [63, 64], "friendli": 63, "take_along_dim": 63, "dimension": 63, "dim": 63, "take": 63, "filter_mod": 64, "compar": 64, "y": 64, "determin": 64, "look": 64, "z": 64, "spars": 64, "packag": 65, "shallow": 65, "typic": 65, "littl": 65, "perform": 65, "design": 65, "maxim": 65, "bandwidth": 65, "fast": 65, "leverag": 65, "achiev": 65, "introduct": 65, "overview": 65, "librari": [65, 66], "still": 65, "develop": 65, "featur": 65, "expect": 65, "overtim": 65, "occasion": 65, "bug": 65, "mai": 65, "occur": 65, "feel": 65, "report": 65, "problem": 65, "user": 65, "usag": 65, "limit": 65, "randomshardedbatchsampl": 65, "rigidshardedbatchsampl": 65, "typebasedshardednegativesampl": 65, "allscoresbess": 65, "distmult": 65, "matrixdecompositionscorefunct": 65, "trans": 65, "logsigmoidloss": 65, "marginrankingloss": 65, "sampledsoftmaxcrossentropyloss": 65, "metrics_dict": 65, "initialize_entity_embed": 65, "initialize_relation_embed": 65, "refactor_embedding_shard": 65, "complex_multipl": 65, "complex_rot": 65, "gather_indic": 65, "get_entity_filt": 65, "code": 65, "server": 65, "paperspac": [65, 66], "setup": 65, "tip": 65, "bibliographi": 65, "popart": 66, "more": 66, "quick": 66, "git": 66, "import": 66, "1403": 66, "walkthrough": 66, "main": 66, "jupyt": 66, "we": 66, "sequenc": 66, "click": 66, "button": 66, "avail": 66, "introduc": 66, "therefor": 66, "some": 66, "approxim": 66, "estim": 66, "below": 66, "accumul": 66, "momentum": 66, "notic": 66, "cap": 66, "max": 66, "pod16": 66, "float16": 66, "sgdm": 66, "2m": 66, "2e8": 66, "13m": 66, "3e9": 66, "128": 66, "adam": 66, "4m": 66, "0e8": 66, "9m": 66, "256": 66, "ye": 66, "900k": 66, "3e8": 66, "5m": 66, "8m": 66, "2e9": 66, "512": 66, "375k": 66, "9e8": 66, "7e8": 66, "messag": 66, "about": 66, "onnx": 66, "protobuff": 66, "exceed": 66, "_popart": 66, "saveinitializerstofil": 66, "my_fil": 66}, "objects": {"": [[65, 0, 0, "-", "besskge"]], "besskge": [[5, 0, 0, "-", "batch_sampler"], [9, 0, 0, "-", "bess"], [15, 0, 0, "-", "dataset"], [17, 0, 0, "-", "embedding"], [24, 0, 0, "-", "loss"], [30, 0, 0, "-", "metric"], [36, 0, 0, "-", "negative_sampler"], [42, 0, 0, "-", "pipeline"], [44, 0, 0, "-", "scoring"], [57, 0, 0, "-", "sharding"], [60, 0, 0, "-", "utils"]], "besskge.batch_sampler": [[6, 1, 1, "", "RandomShardedBatchSampler"], [7, 1, 1, "", "RigidShardedBatchSampler"], [8, 1, 1, "", "ShardedBatchSampler"]], "besskge.batch_sampler.RandomShardedBatchSampler": [[6, 2, 1, "", "get_dataloader"], [6, 2, 1, "", "get_dataloader_sampler"], [6, 2, 1, "", "sample_triples"], [6, 2, 1, "", "worker_init_fn"]], "besskge.batch_sampler.RigidShardedBatchSampler": [[7, 2, 1, "", "get_dataloader"], [7, 2, 1, "", "get_dataloader_sampler"], [7, 2, 1, "", "sample_triples"], [7, 2, 1, "", "worker_init_fn"]], "besskge.batch_sampler.ShardedBatchSampler": [[8, 2, 1, "", "get_dataloader"], [8, 2, 1, "", "get_dataloader_sampler"], [8, 2, 1, "", "sample_triples"], [8, 2, 1, "", "worker_init_fn"]], "besskge.bess": [[10, 1, 1, "", "AllScoresBESS"], [11, 1, 1, "", "BessKGE"], [12, 1, 1, "", "EmbeddingMovingBessKGE"], [13, 1, 1, "", "ScoreMovingBessKGE"], [14, 1, 1, "", "TopKQueryBessKGE"]], "besskge.bess.AllScoresBESS": [[10, 2, 1, "", "forward"]], "besskge.bess.BessKGE": [[11, 2, 1, "", "forward"], [11, 3, 1, "", "n_embedding_parameters"], [11, 2, 1, "", "score_batch"]], "besskge.bess.EmbeddingMovingBessKGE": [[12, 2, 1, "", "forward"], [12, 3, 1, "", "n_embedding_parameters"], [12, 2, 1, "", "score_batch"]], "besskge.bess.ScoreMovingBessKGE": [[13, 2, 1, "", "forward"], [13, 3, 1, "", "n_embedding_parameters"], [13, 2, 1, "", "score_batch"]], "besskge.bess.TopKQueryBessKGE": [[14, 2, 1, "", "forward"]], "besskge.dataset": [[16, 1, 1, "", "KGDataset"]], "besskge.dataset.KGDataset": [[16, 2, 1, "", "build_ogbl_biokg"], [16, 2, 1, "", "build_ogbl_wikikg2"], [16, 2, 1, "", "build_openbiolink"], [16, 2, 1, "", "build_yago310"], [16, 4, 1, "", "entity_dict"], [16, 2, 1, "", "from_dataframe"], [16, 2, 1, "", "from_triples"], [16, 3, 1, "", "ht_types"], [16, 2, 1, "", "load"], [16, 4, 1, "", "n_entity"], [16, 4, 1, "", "n_relation_type"], [16, 4, 1, "", "neg_heads"], [16, 4, 1, "", "neg_tails"], [16, 4, 1, "", "relation_dict"], [16, 2, 1, "", "save"], [16, 4, 1, "", "triples"], [16, 4, 1, "", "type_offsets"]], "besskge.embedding": [[18, 5, 1, "", "init_KGE_normal"], [19, 5, 1, "", "init_KGE_uniform"], [20, 5, 1, "", "init_uniform_norm"], [21, 5, 1, "", "initialize_entity_embedding"], [22, 5, 1, "", "initialize_relation_embedding"], [23, 5, 1, "", "refactor_embedding_sharding"]], "besskge.loss": [[25, 1, 1, "", "BaseLossFunction"], [26, 1, 1, "", "LogSigmoidLoss"], [27, 1, 1, "", "MarginBasedLossFunction"], [28, 1, 1, "", "MarginRankingLoss"], [29, 1, 1, "", "SampledSoftmaxCrossEntropyLoss"]], "besskge.loss.BaseLossFunction": [[25, 2, 1, "", "forward"], [25, 2, 1, "", "get_negative_weights"], [25, 4, 1, "", "loss_scale"], [25, 4, 1, "", "negative_adversarial_sampling"], [25, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.LogSigmoidLoss": [[26, 2, 1, "", "forward"], [26, 2, 1, "", "get_negative_weights"], [26, 4, 1, "", "loss_scale"], [26, 4, 1, "", "negative_adversarial_sampling"], [26, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.MarginBasedLossFunction": [[27, 2, 1, "", "forward"], [27, 2, 1, "", "get_negative_weights"], [27, 4, 1, "", "loss_scale"], [27, 4, 1, "", "negative_adversarial_sampling"], [27, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.MarginRankingLoss": [[28, 2, 1, "", "forward"], [28, 2, 1, "", "get_negative_weights"], [28, 4, 1, "", "loss_scale"], [28, 4, 1, "", "negative_adversarial_sampling"], [28, 4, 1, "", "negative_adversarial_scale"]], "besskge.loss.SampledSoftmaxCrossEntropyLoss": [[29, 2, 1, "", "forward"], [29, 2, 1, "", "get_negative_weights"], [29, 4, 1, "", "loss_scale"], [29, 4, 1, "", "negative_adversarial_sampling"], [29, 4, 1, "", "negative_adversarial_scale"]], "besskge.metric": [[31, 1, 1, "", "BaseMetric"], [32, 1, 1, "", "Evaluation"], [33, 1, 1, "", "HitsAtK"], [34, 6, 1, "", "METRICS_DICT"], [35, 1, 1, "", "ReciprocalRank"]], "besskge.metric.Evaluation": [[32, 2, 1, "", "dict_metrics_from_ranks"], [32, 2, 1, "", "ranks_from_indices"], [32, 2, 1, "", "ranks_from_scores"], [32, 2, 1, "", "stacked_metrics_from_ranks"]], "besskge.negative_sampler": [[37, 1, 1, "", "PlaceholderNegativeSampler"], [38, 1, 1, "", "RandomShardedNegativeSampler"], [39, 1, 1, "", "ShardedNegativeSampler"], [40, 1, 1, "", "TripleBasedShardedNegativeSampler"], [41, 1, 1, "", "TypeBasedShardedNegativeSampler"]], "besskge.negative_sampler.PlaceholderNegativeSampler": [[37, 4, 1, "", "corruption_scheme"], [37, 4, 1, "", "flat_negative_format"], [37, 4, 1, "", "local_sampling"], [37, 4, 1, "", "rng"]], "besskge.negative_sampler.RandomShardedNegativeSampler": [[38, 4, 1, "", "corruption_scheme"], [38, 4, 1, "", "flat_negative_format"], [38, 4, 1, "", "local_sampling"], [38, 4, 1, "", "rng"]], "besskge.negative_sampler.ShardedNegativeSampler": [[39, 4, 1, "", "corruption_scheme"], [39, 4, 1, "", "flat_negative_format"], [39, 4, 1, "", "local_sampling"], [39, 4, 1, "", "rng"]], "besskge.negative_sampler.TripleBasedShardedNegativeSampler": [[40, 4, 1, "", "corruption_scheme"], [40, 4, 1, "", "flat_negative_format"], [40, 4, 1, "", "local_sampling"], [40, 2, 1, "", "pad_negatives"], [40, 4, 1, "", "rng"], [40, 2, 1, "", "shard_negatives"]], "besskge.negative_sampler.TypeBasedShardedNegativeSampler": [[41, 4, 1, "", "corruption_scheme"], [41, 4, 1, "", "flat_negative_format"], [41, 4, 1, "", "local_sampling"], [41, 4, 1, "", "rng"]], "besskge.pipeline": [[43, 1, 1, "", "AllScoresPipeline"]], "besskge.pipeline.AllScoresPipeline": [[43, 2, 1, "", "forward"]], "besskge.scoring": [[45, 1, 1, "", "BaseScoreFunction"], [46, 1, 1, "", "BoxE"], [47, 1, 1, "", "ComplEx"], [48, 1, 1, "", "DistMult"], [49, 1, 1, "", "DistanceBasedScoreFunction"], [50, 1, 1, "", "InterHT"], [51, 1, 1, "", "MatrixDecompositionScoreFunction"], [52, 1, 1, "", "PairRE"], [53, 1, 1, "", "RotatE"], [54, 1, 1, "", "TranS"], [55, 1, 1, "", "TransE"], [56, 1, 1, "", "TripleRE"]], "besskge.scoring.BaseScoreFunction": [[45, 4, 1, "", "entity_embedding"], [45, 2, 1, "", "forward"], [45, 4, 1, "", "negative_sample_sharing"], [45, 4, 1, "", "relation_embedding"], [45, 2, 1, "", "score_heads"], [45, 2, 1, "", "score_tails"], [45, 2, 1, "", "score_triple"], [45, 4, 1, "", "sharding"], [45, 2, 1, "", "update_sharding"]], "besskge.scoring.BoxE": [[46, 2, 1, "", "boxe_score"], [46, 2, 1, "", "broadcasted_distance"], [46, 4, 1, "", "entity_embedding"], [46, 2, 1, "", "forward"], [46, 4, 1, "", "negative_sample_sharing"], [46, 2, 1, "", "reduce_embedding"], [46, 4, 1, "", "relation_embedding"], [46, 2, 1, "", "score_heads"], [46, 2, 1, "", "score_tails"], [46, 2, 1, "", "score_triple"], [46, 4, 1, "", "sharding"], [46, 2, 1, "", "update_sharding"]], "besskge.scoring.ComplEx": [[47, 2, 1, "", "broadcasted_dot_product"], [47, 4, 1, "", "entity_embedding"], [47, 2, 1, "", "forward"], [47, 4, 1, "", "negative_sample_sharing"], [47, 2, 1, "", "reduce_embedding"], [47, 4, 1, "", "relation_embedding"], [47, 2, 1, "", "score_heads"], [47, 2, 1, "", "score_tails"], [47, 2, 1, "", "score_triple"], [47, 4, 1, "", "sharding"], [47, 2, 1, "", "update_sharding"]], "besskge.scoring.DistMult": [[48, 2, 1, "", "broadcasted_dot_product"], [48, 4, 1, "", "entity_embedding"], [48, 2, 1, "", "forward"], [48, 4, 1, "", "negative_sample_sharing"], [48, 2, 1, "", "reduce_embedding"], [48, 4, 1, "", "relation_embedding"], [48, 2, 1, "", "score_heads"], [48, 2, 1, "", "score_tails"], [48, 2, 1, "", "score_triple"], [48, 4, 1, "", "sharding"], [48, 2, 1, "", "update_sharding"]], "besskge.scoring.DistanceBasedScoreFunction": [[49, 2, 1, "", "broadcasted_distance"], [49, 4, 1, "", "entity_embedding"], [49, 2, 1, "", "forward"], [49, 4, 1, "", "negative_sample_sharing"], [49, 2, 1, "", "reduce_embedding"], [49, 4, 1, "", "relation_embedding"], [49, 2, 1, "", "score_heads"], [49, 2, 1, "", "score_tails"], [49, 2, 1, "", "score_triple"], [49, 4, 1, "", "sharding"], [49, 2, 1, "", "update_sharding"]], "besskge.scoring.InterHT": [[50, 2, 1, "", "broadcasted_distance"], [50, 4, 1, "", "entity_embedding"], [50, 2, 1, "", "forward"], [50, 4, 1, "", "negative_sample_sharing"], [50, 2, 1, "", "reduce_embedding"], [50, 4, 1, "", "relation_embedding"], [50, 2, 1, "", "score_heads"], [50, 2, 1, "", "score_tails"], [50, 2, 1, "", "score_triple"], [50, 4, 1, "", "sharding"], [50, 2, 1, "", "update_sharding"]], "besskge.scoring.MatrixDecompositionScoreFunction": [[51, 2, 1, "", "broadcasted_dot_product"], [51, 4, 1, "", "entity_embedding"], [51, 2, 1, "", "forward"], [51, 4, 1, "", "negative_sample_sharing"], [51, 2, 1, "", "reduce_embedding"], [51, 4, 1, "", "relation_embedding"], [51, 2, 1, "", "score_heads"], [51, 2, 1, "", "score_tails"], [51, 2, 1, "", "score_triple"], [51, 4, 1, "", "sharding"], [51, 2, 1, "", "update_sharding"]], "besskge.scoring.PairRE": [[52, 2, 1, "", "broadcasted_distance"], [52, 4, 1, "", "entity_embedding"], [52, 2, 1, "", "forward"], [52, 4, 1, "", "negative_sample_sharing"], [52, 2, 1, "", "reduce_embedding"], [52, 4, 1, "", "relation_embedding"], [52, 2, 1, "", "score_heads"], [52, 2, 1, "", "score_tails"], [52, 2, 1, "", "score_triple"], [52, 4, 1, "", "sharding"], [52, 2, 1, "", "update_sharding"]], "besskge.scoring.RotatE": [[53, 2, 1, "", "broadcasted_distance"], [53, 4, 1, "", "entity_embedding"], [53, 2, 1, "", "forward"], [53, 4, 1, "", "negative_sample_sharing"], [53, 2, 1, "", "reduce_embedding"], [53, 4, 1, "", "relation_embedding"], [53, 2, 1, "", "score_heads"], [53, 2, 1, "", "score_tails"], [53, 2, 1, "", "score_triple"], [53, 4, 1, "", "sharding"], [53, 2, 1, "", "update_sharding"]], "besskge.scoring.TranS": [[54, 2, 1, "", "broadcasted_distance"], [54, 4, 1, "", "entity_embedding"], [54, 2, 1, "", "forward"], [54, 4, 1, "", "negative_sample_sharing"], [54, 2, 1, "", "reduce_embedding"], [54, 4, 1, "", "relation_embedding"], [54, 2, 1, "", "score_heads"], [54, 2, 1, "", "score_tails"], [54, 2, 1, "", "score_triple"], [54, 4, 1, "", "sharding"], [54, 2, 1, "", "update_sharding"]], "besskge.scoring.TransE": [[55, 2, 1, "", "broadcasted_distance"], [55, 4, 1, "", "entity_embedding"], [55, 2, 1, "", "forward"], [55, 4, 1, "", "negative_sample_sharing"], [55, 2, 1, "", "reduce_embedding"], [55, 4, 1, "", "relation_embedding"], [55, 2, 1, "", "score_heads"], [55, 2, 1, "", "score_tails"], [55, 2, 1, "", "score_triple"], [55, 4, 1, "", "sharding"], [55, 2, 1, "", "update_sharding"]], "besskge.scoring.TripleRE": [[56, 2, 1, "", "broadcasted_distance"], [56, 4, 1, "", "entity_embedding"], [56, 2, 1, "", "forward"], [56, 4, 1, "", "negative_sample_sharing"], [56, 2, 1, "", "reduce_embedding"], [56, 4, 1, "", "relation_embedding"], [56, 2, 1, "", "score_heads"], [56, 2, 1, "", "score_tails"], [56, 2, 1, "", "score_triple"], [56, 4, 1, "", "sharding"], [56, 2, 1, "", "update_sharding"]], "besskge.sharding": [[58, 1, 1, "", "PartitionedTripleSet"], [59, 1, 1, "", "Sharding"]], "besskge.sharding.PartitionedTripleSet": [[58, 2, 1, "", "create_from_dataset"], [58, 2, 1, "", "create_from_queries"], [58, 4, 1, "", "dummy"], [58, 4, 1, "", "inverse_triples"], [58, 4, 1, "", "neg_heads"], [58, 4, 1, "", "neg_tails"], [58, 4, 1, "", "partition_mode"], [58, 4, 1, "", "sharding"], [58, 4, 1, "", "triple_counts"], [58, 4, 1, "", "triple_offsets"], [58, 4, 1, "", "triple_sort_idx"], [58, 4, 1, "", "triples"], [58, 4, 1, "", "types"]], "besskge.sharding.Sharding": [[59, 2, 1, "", "create"], [59, 4, 1, "", "entity_to_idx"], [59, 4, 1, "", "entity_to_shard"], [59, 4, 1, "", "entity_type_counts"], [59, 4, 1, "", "entity_type_offsets"], [59, 2, 1, "", "load"], [59, 3, 1, "", "max_entity_per_shard"], [59, 3, 1, "", "n_entity"], [59, 4, 1, "", "n_shard"], [59, 2, 1, "", "save"], [59, 4, 1, "", "shard_and_idx_to_entity"], [59, 4, 1, "", "shard_counts"]], "besskge.utils": [[61, 5, 1, "", "complex_multiplication"], [62, 5, 1, "", "complex_rotation"], [63, 5, 1, "", "gather_indices"], [64, 5, 1, "", "get_entity_filter"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:property", "4": "py:attribute", "5": "py:function", "6": "py:data"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "property", "Python property"], "4": ["py", "attribute", "Python attribute"], "5": ["py", "function", "Python function"], "6": ["py", "data", "Python data"]}, "titleterms": {"bess": [0, 1, 3, 4, 9, 10, 11, 12, 13, 14, 65], "kge": [0, 3, 4, 65], "api": 0, "refer": 0, "overview": 1, "bibliographi": 2, "how": [3, 4], "contribut": [3, 4], "project": [3, 4], "v": [3, 4], "code": [3, 4], "server": [3, 4], "paperspac": [3, 4], "setup": [3, 4], "local": [3, 4], "machin": [3, 4], "develop": [3, 4], "tip": [3, 4], "besskg": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64], "batch_sampl": [5, 6, 7, 8], "randomshardedbatchsampl": 6, "rigidshardedbatchsampl": 7, "shardedbatchsampl": 8, "allscoresbess": 10, "embeddingmovingbesskg": 12, "scoremovingbesskg": 13, "topkquerybesskg": 14, "dataset": [15, 16], "kgdataset": 16, "embed": [17, 18, 19, 20, 21, 22, 23], "init_kge_norm": 18, "init_kge_uniform": 19, "init_uniform_norm": 20, "initialize_entity_embed": 21, "initialize_relation_embed": 22, "refactor_embedding_shard": 23, "loss": [24, 25, 26, 27, 28, 29], "baselossfunct": 25, "logsigmoidloss": 26, "marginbasedlossfunct": 27, "marginrankingloss": 28, "sampledsoftmaxcrossentropyloss": 29, "metric": [30, 31, 32, 33, 34, 35], "basemetr": 31, "evalu": 32, "hitsatk": 33, "metrics_dict": 34, "reciprocalrank": 35, "negative_sampl": [36, 37, 38, 39, 40, 41], "placeholdernegativesampl": 37, "randomshardednegativesampl": 38, "shardednegativesampl": 39, "triplebasedshardednegativesampl": 40, "typebasedshardednegativesampl": 41, "pipelin": [42, 43], "allscorespipelin": 43, "score": [44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "basescorefunct": 45, "box": 46, "complex": 47, "distmult": 48, "distancebasedscorefunct": 49, "interht": 50, "matrixdecompositionscorefunct": 51, "pairr": 52, "rotat": 53, "tran": 54, "trans": 55, "tripler": 56, "shard": [57, 58, 59], "partitionedtripleset": 58, "util": [60, 61, 62, 63, 64], "complex_multipl": 61, "complex_rot": 62, "gather_indic": 63, "get_entity_filt": 64, "content": 65, "user": 66, "guid": 66, "instal": 66, "usag": 66, "get": 66, "start": 66, "limit": 66}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx.ext.intersphinx": 1, "sphinxcontrib.bibtex": 9, "sphinx": 57}, "alltitles": {"BESS-KGE API Reference": [[0, "bess-kge-api-reference"]], "BESS overview": [[1, "bess-overview"]], "Bibliography": [[2, "bibliography"]], "How to contribute to the BESS-KGE project": [[3, "how-to-contribute-to-the-bess-kge-project"], [4, "how-to-contribute-to-the-bess-kge-project"]], "VS Code server on Paperspace": [[3, "vs-code-server-on-paperspace"], [4, "vs-code-server-on-paperspace"]], "Setup on local machine": [[3, "setup-on-local-machine"], [4, "setup-on-local-machine"]], "Development tips": [[3, "development-tips"], [4, "development-tips"]], "besskge.batch_sampler": [[5, "module-besskge.batch_sampler"]], "besskge.batch_sampler.RandomShardedBatchSampler": [[6, "besskge-batch-sampler-randomshardedbatchsampler"]], "besskge.batch_sampler.RigidShardedBatchSampler": [[7, "besskge-batch-sampler-rigidshardedbatchsampler"]], "besskge.batch_sampler.ShardedBatchSampler": [[8, "besskge-batch-sampler-shardedbatchsampler"]], "besskge.bess": [[9, "module-besskge.bess"]], "besskge.bess.AllScoresBESS": [[10, "besskge-bess-allscoresbess"]], "besskge.bess.BessKGE": [[11, "besskge-bess-besskge"]], "besskge.bess.EmbeddingMovingBessKGE": [[12, "besskge-bess-embeddingmovingbesskge"]], "besskge.bess.ScoreMovingBessKGE": [[13, "besskge-bess-scoremovingbesskge"]], "besskge.bess.TopKQueryBessKGE": [[14, "besskge-bess-topkquerybesskge"]], "besskge.dataset": [[15, "module-besskge.dataset"]], "besskge.dataset.KGDataset": [[16, "besskge-dataset-kgdataset"]], "besskge.embedding": [[17, "module-besskge.embedding"]], "besskge.embedding.init_KGE_normal": [[18, "besskge-embedding-init-kge-normal"]], "besskge.embedding.init_KGE_uniform": [[19, "besskge-embedding-init-kge-uniform"]], "besskge.embedding.init_uniform_norm": [[20, "besskge-embedding-init-uniform-norm"]], "besskge.embedding.initialize_entity_embedding": [[21, "besskge-embedding-initialize-entity-embedding"]], "besskge.embedding.initialize_relation_embedding": [[22, "besskge-embedding-initialize-relation-embedding"]], "besskge.embedding.refactor_embedding_sharding": [[23, "besskge-embedding-refactor-embedding-sharding"]], "besskge.loss": [[24, "module-besskge.loss"]], "besskge.loss.BaseLossFunction": [[25, "besskge-loss-baselossfunction"]], "besskge.loss.LogSigmoidLoss": [[26, "besskge-loss-logsigmoidloss"]], "besskge.loss.MarginBasedLossFunction": [[27, "besskge-loss-marginbasedlossfunction"]], "besskge.loss.MarginRankingLoss": [[28, "besskge-loss-marginrankingloss"]], "besskge.loss.SampledSoftmaxCrossEntropyLoss": [[29, "besskge-loss-sampledsoftmaxcrossentropyloss"]], "besskge.metric": [[30, "module-besskge.metric"]], "besskge.metric.BaseMetric": [[31, "besskge-metric-basemetric"]], "besskge.metric.Evaluation": [[32, "besskge-metric-evaluation"]], "besskge.metric.HitsAtK": [[33, "besskge-metric-hitsatk"]], "besskge.metric.METRICS_DICT": [[34, "besskge-metric-metrics-dict"]], "besskge.metric.ReciprocalRank": [[35, "besskge-metric-reciprocalrank"]], "besskge.negative_sampler": [[36, "module-besskge.negative_sampler"]], "besskge.negative_sampler.PlaceholderNegativeSampler": [[37, "besskge-negative-sampler-placeholdernegativesampler"]], "besskge.negative_sampler.RandomShardedNegativeSampler": [[38, "besskge-negative-sampler-randomshardednegativesampler"]], "besskge.negative_sampler.ShardedNegativeSampler": [[39, "besskge-negative-sampler-shardednegativesampler"]], "besskge.negative_sampler.TripleBasedShardedNegativeSampler": [[40, "besskge-negative-sampler-triplebasedshardednegativesampler"]], "besskge.negative_sampler.TypeBasedShardedNegativeSampler": [[41, "besskge-negative-sampler-typebasedshardednegativesampler"]], "besskge.pipeline": [[42, "module-besskge.pipeline"]], "besskge.pipeline.AllScoresPipeline": [[43, "besskge-pipeline-allscorespipeline"]], "besskge.scoring": [[44, "module-besskge.scoring"]], "besskge.scoring.BaseScoreFunction": [[45, "besskge-scoring-basescorefunction"]], "besskge.scoring.BoxE": [[46, "besskge-scoring-boxe"]], "besskge.scoring.ComplEx": [[47, "besskge-scoring-complex"]], "besskge.scoring.DistMult": [[48, "besskge-scoring-distmult"]], "besskge.scoring.DistanceBasedScoreFunction": [[49, "besskge-scoring-distancebasedscorefunction"]], "besskge.scoring.InterHT": [[50, "besskge-scoring-interht"]], "besskge.scoring.MatrixDecompositionScoreFunction": [[51, "besskge-scoring-matrixdecompositionscorefunction"]], "besskge.scoring.PairRE": [[52, "besskge-scoring-pairre"]], "besskge.scoring.RotatE": [[53, "besskge-scoring-rotate"]], "besskge.scoring.TranS": [[54, "besskge-scoring-trans"]], "besskge.scoring.TransE": [[55, "besskge-scoring-transe"]], "besskge.scoring.TripleRE": [[56, "besskge-scoring-triplere"]], "besskge.sharding": [[57, "module-besskge.sharding"]], "besskge.sharding.PartitionedTripleSet": [[58, "besskge-sharding-partitionedtripleset"]], "besskge.sharding.Sharding": [[59, "besskge-sharding-sharding"]], "besskge.utils": [[60, "module-besskge.utils"]], "besskge.utils.complex_multiplication": [[61, "besskge-utils-complex-multiplication"]], "besskge.utils.complex_rotation": [[62, "besskge-utils-complex-rotation"]], "besskge.utils.gather_indices": [[63, "besskge-utils-gather-indices"]], "besskge.utils.get_entity_filter": [[64, "besskge-utils-get-entity-filter"]], "BESS-KGE": [[65, "module-besskge"]], "Contents": [[65, null]], "User guide": [[66, "user-guide"]], "Installation and usage": [[66, "installation-and-usage"]], "Getting started": [[66, "getting-started"]], "Limitations": [[66, "limitations"]]}, "indexentries": {"besskge.batch_sampler": [[5, "module-besskge.batch_sampler"]], "module": [[5, "module-besskge.batch_sampler"], [9, "module-besskge.bess"], [15, "module-besskge.dataset"], [17, "module-besskge.embedding"], [24, "module-besskge.loss"], [30, "module-besskge.metric"], [36, "module-besskge.negative_sampler"], [42, "module-besskge.pipeline"], [44, "module-besskge.scoring"], [57, "module-besskge.sharding"], [60, "module-besskge.utils"], [65, "module-besskge"]], "randomshardedbatchsampler (class in besskge.batch_sampler)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler"]], "get_dataloader() (besskge.batch_sampler.randomshardedbatchsampler method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.get_dataloader"]], "get_dataloader_sampler() (besskge.batch_sampler.randomshardedbatchsampler method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.get_dataloader_sampler"]], "sample_triples() (besskge.batch_sampler.randomshardedbatchsampler method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.sample_triples"]], "worker_init_fn() (besskge.batch_sampler.randomshardedbatchsampler static method)": [[6, "besskge.batch_sampler.RandomShardedBatchSampler.worker_init_fn"]], "rigidshardedbatchsampler (class in besskge.batch_sampler)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler"]], "get_dataloader() (besskge.batch_sampler.rigidshardedbatchsampler method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.get_dataloader"]], "get_dataloader_sampler() (besskge.batch_sampler.rigidshardedbatchsampler method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.get_dataloader_sampler"]], "sample_triples() (besskge.batch_sampler.rigidshardedbatchsampler method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.sample_triples"]], "worker_init_fn() (besskge.batch_sampler.rigidshardedbatchsampler static method)": [[7, "besskge.batch_sampler.RigidShardedBatchSampler.worker_init_fn"]], "shardedbatchsampler (class in besskge.batch_sampler)": [[8, "besskge.batch_sampler.ShardedBatchSampler"]], "get_dataloader() (besskge.batch_sampler.shardedbatchsampler method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.get_dataloader"]], "get_dataloader_sampler() (besskge.batch_sampler.shardedbatchsampler method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.get_dataloader_sampler"]], "sample_triples() (besskge.batch_sampler.shardedbatchsampler method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.sample_triples"]], "worker_init_fn() (besskge.batch_sampler.shardedbatchsampler static method)": [[8, "besskge.batch_sampler.ShardedBatchSampler.worker_init_fn"]], "besskge.bess": [[9, "module-besskge.bess"]], "allscoresbess (class in besskge.bess)": [[10, "besskge.bess.AllScoresBESS"]], "forward() (besskge.bess.allscoresbess method)": [[10, "besskge.bess.AllScoresBESS.forward"]], "besskge (class in besskge.bess)": [[11, "besskge.bess.BessKGE"]], "forward() (besskge.bess.besskge method)": [[11, "besskge.bess.BessKGE.forward"]], "n_embedding_parameters (besskge.bess.besskge property)": [[11, "besskge.bess.BessKGE.n_embedding_parameters"]], "score_batch() (besskge.bess.besskge method)": [[11, "besskge.bess.BessKGE.score_batch"]], "embeddingmovingbesskge (class in besskge.bess)": [[12, "besskge.bess.EmbeddingMovingBessKGE"]], "forward() (besskge.bess.embeddingmovingbesskge method)": [[12, "besskge.bess.EmbeddingMovingBessKGE.forward"]], "n_embedding_parameters (besskge.bess.embeddingmovingbesskge property)": [[12, "besskge.bess.EmbeddingMovingBessKGE.n_embedding_parameters"]], "score_batch() (besskge.bess.embeddingmovingbesskge method)": [[12, "besskge.bess.EmbeddingMovingBessKGE.score_batch"]], "scoremovingbesskge (class in besskge.bess)": [[13, "besskge.bess.ScoreMovingBessKGE"]], "forward() (besskge.bess.scoremovingbesskge method)": [[13, "besskge.bess.ScoreMovingBessKGE.forward"]], "n_embedding_parameters (besskge.bess.scoremovingbesskge property)": [[13, "besskge.bess.ScoreMovingBessKGE.n_embedding_parameters"]], "score_batch() (besskge.bess.scoremovingbesskge method)": [[13, "besskge.bess.ScoreMovingBessKGE.score_batch"]], "topkquerybesskge (class in besskge.bess)": [[14, "besskge.bess.TopKQueryBessKGE"]], "forward() (besskge.bess.topkquerybesskge method)": [[14, "besskge.bess.TopKQueryBessKGE.forward"]], "besskge.dataset": [[15, "module-besskge.dataset"]], "kgdataset (class in besskge.dataset)": [[16, "besskge.dataset.KGDataset"]], "build_ogbl_biokg() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.build_ogbl_biokg"]], "build_ogbl_wikikg2() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.build_ogbl_wikikg2"]], "build_openbiolink() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.build_openbiolink"]], "build_yago310() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.build_yago310"]], "entity_dict (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.entity_dict"]], "from_dataframe() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.from_dataframe"]], "from_triples() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.from_triples"]], "ht_types (besskge.dataset.kgdataset property)": [[16, "besskge.dataset.KGDataset.ht_types"]], "load() (besskge.dataset.kgdataset class method)": [[16, "besskge.dataset.KGDataset.load"]], "n_entity (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.n_entity"]], "n_relation_type (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.n_relation_type"]], "neg_heads (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.neg_heads"]], "neg_tails (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.neg_tails"]], "relation_dict (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.relation_dict"]], "save() (besskge.dataset.kgdataset method)": [[16, "besskge.dataset.KGDataset.save"]], "triples (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.triples"]], "type_offsets (besskge.dataset.kgdataset attribute)": [[16, "besskge.dataset.KGDataset.type_offsets"]], "besskge.embedding": [[17, "module-besskge.embedding"]], "init_kge_normal() (in module besskge.embedding)": [[18, "besskge.embedding.init_KGE_normal"]], "init_kge_uniform() (in module besskge.embedding)": [[19, "besskge.embedding.init_KGE_uniform"]], "init_uniform_norm() (in module besskge.embedding)": [[20, "besskge.embedding.init_uniform_norm"]], "initialize_entity_embedding() (in module besskge.embedding)": [[21, "besskge.embedding.initialize_entity_embedding"]], "initialize_relation_embedding() (in module besskge.embedding)": [[22, "besskge.embedding.initialize_relation_embedding"]], "refactor_embedding_sharding() (in module besskge.embedding)": [[23, "besskge.embedding.refactor_embedding_sharding"]], "besskge.loss": [[24, "module-besskge.loss"]], "baselossfunction (class in besskge.loss)": [[25, "besskge.loss.BaseLossFunction"]], "forward() (besskge.loss.baselossfunction method)": [[25, "besskge.loss.BaseLossFunction.forward"]], "get_negative_weights() (besskge.loss.baselossfunction method)": [[25, "besskge.loss.BaseLossFunction.get_negative_weights"]], "loss_scale (besskge.loss.baselossfunction attribute)": [[25, "besskge.loss.BaseLossFunction.loss_scale"]], "negative_adversarial_sampling (besskge.loss.baselossfunction attribute)": [[25, "besskge.loss.BaseLossFunction.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.baselossfunction attribute)": [[25, "besskge.loss.BaseLossFunction.negative_adversarial_scale"]], "logsigmoidloss (class in besskge.loss)": [[26, "besskge.loss.LogSigmoidLoss"]], "forward() (besskge.loss.logsigmoidloss method)": [[26, "besskge.loss.LogSigmoidLoss.forward"]], "get_negative_weights() (besskge.loss.logsigmoidloss method)": [[26, "besskge.loss.LogSigmoidLoss.get_negative_weights"]], "loss_scale (besskge.loss.logsigmoidloss attribute)": [[26, "besskge.loss.LogSigmoidLoss.loss_scale"]], "negative_adversarial_sampling (besskge.loss.logsigmoidloss attribute)": [[26, "besskge.loss.LogSigmoidLoss.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.logsigmoidloss attribute)": [[26, "besskge.loss.LogSigmoidLoss.negative_adversarial_scale"]], "marginbasedlossfunction (class in besskge.loss)": [[27, "besskge.loss.MarginBasedLossFunction"]], "forward() (besskge.loss.marginbasedlossfunction method)": [[27, "besskge.loss.MarginBasedLossFunction.forward"]], "get_negative_weights() (besskge.loss.marginbasedlossfunction method)": [[27, "besskge.loss.MarginBasedLossFunction.get_negative_weights"]], "loss_scale (besskge.loss.marginbasedlossfunction attribute)": [[27, "besskge.loss.MarginBasedLossFunction.loss_scale"]], "negative_adversarial_sampling (besskge.loss.marginbasedlossfunction attribute)": [[27, "besskge.loss.MarginBasedLossFunction.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.marginbasedlossfunction attribute)": [[27, "besskge.loss.MarginBasedLossFunction.negative_adversarial_scale"]], "marginrankingloss (class in besskge.loss)": [[28, "besskge.loss.MarginRankingLoss"]], "forward() (besskge.loss.marginrankingloss method)": [[28, "besskge.loss.MarginRankingLoss.forward"]], "get_negative_weights() (besskge.loss.marginrankingloss method)": [[28, "besskge.loss.MarginRankingLoss.get_negative_weights"]], "loss_scale (besskge.loss.marginrankingloss attribute)": [[28, "besskge.loss.MarginRankingLoss.loss_scale"]], "negative_adversarial_sampling (besskge.loss.marginrankingloss attribute)": [[28, "besskge.loss.MarginRankingLoss.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.marginrankingloss attribute)": [[28, "besskge.loss.MarginRankingLoss.negative_adversarial_scale"]], "sampledsoftmaxcrossentropyloss (class in besskge.loss)": [[29, "besskge.loss.SampledSoftmaxCrossEntropyLoss"]], "forward() (besskge.loss.sampledsoftmaxcrossentropyloss method)": [[29, "besskge.loss.SampledSoftmaxCrossEntropyLoss.forward"]], "get_negative_weights() (besskge.loss.sampledsoftmaxcrossentropyloss method)": [[29, "besskge.loss.SampledSoftmaxCrossEntropyLoss.get_negative_weights"]], "loss_scale (besskge.loss.sampledsoftmaxcrossentropyloss attribute)": [[29, "besskge.loss.SampledSoftmaxCrossEntropyLoss.loss_scale"]], "negative_adversarial_sampling (besskge.loss.sampledsoftmaxcrossentropyloss attribute)": [[29, "besskge.loss.SampledSoftmaxCrossEntropyLoss.negative_adversarial_sampling"]], "negative_adversarial_scale (besskge.loss.sampledsoftmaxcrossentropyloss attribute)": [[29, "besskge.loss.SampledSoftmaxCrossEntropyLoss.negative_adversarial_scale"]], "besskge.metric": [[30, "module-besskge.metric"]], "basemetric (class in besskge.metric)": [[31, "besskge.metric.BaseMetric"]], "evaluation (class in besskge.metric)": [[32, "besskge.metric.Evaluation"]], "dict_metrics_from_ranks() (besskge.metric.evaluation method)": [[32, "besskge.metric.Evaluation.dict_metrics_from_ranks"]], "ranks_from_indices() (besskge.metric.evaluation method)": [[32, "besskge.metric.Evaluation.ranks_from_indices"]], "ranks_from_scores() (besskge.metric.evaluation method)": [[32, "besskge.metric.Evaluation.ranks_from_scores"]], "stacked_metrics_from_ranks() (besskge.metric.evaluation method)": [[32, "besskge.metric.Evaluation.stacked_metrics_from_ranks"]], "hitsatk (class in besskge.metric)": [[33, "besskge.metric.HitsAtK"]], "metrics_dict (in module besskge.metric)": [[34, "besskge.metric.METRICS_DICT"]], "reciprocalrank (class in besskge.metric)": [[35, "besskge.metric.ReciprocalRank"]], "besskge.negative_sampler": [[36, "module-besskge.negative_sampler"]], "placeholdernegativesampler (class in besskge.negative_sampler)": [[37, "besskge.negative_sampler.PlaceholderNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.placeholdernegativesampler attribute)": [[37, "besskge.negative_sampler.PlaceholderNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.placeholdernegativesampler attribute)": [[37, "besskge.negative_sampler.PlaceholderNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.placeholdernegativesampler attribute)": [[37, "besskge.negative_sampler.PlaceholderNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.placeholdernegativesampler attribute)": [[37, "besskge.negative_sampler.PlaceholderNegativeSampler.rng"]], "randomshardednegativesampler (class in besskge.negative_sampler)": [[38, "besskge.negative_sampler.RandomShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.randomshardednegativesampler attribute)": [[38, "besskge.negative_sampler.RandomShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.randomshardednegativesampler attribute)": [[38, "besskge.negative_sampler.RandomShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.randomshardednegativesampler attribute)": [[38, "besskge.negative_sampler.RandomShardedNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.randomshardednegativesampler attribute)": [[38, "besskge.negative_sampler.RandomShardedNegativeSampler.rng"]], "shardednegativesampler (class in besskge.negative_sampler)": [[39, "besskge.negative_sampler.ShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.shardednegativesampler attribute)": [[39, "besskge.negative_sampler.ShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.shardednegativesampler attribute)": [[39, "besskge.negative_sampler.ShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.shardednegativesampler attribute)": [[39, "besskge.negative_sampler.ShardedNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.shardednegativesampler attribute)": [[39, "besskge.negative_sampler.ShardedNegativeSampler.rng"]], "triplebasedshardednegativesampler (class in besskge.negative_sampler)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.local_sampling"]], "pad_negatives() (besskge.negative_sampler.triplebasedshardednegativesampler method)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.pad_negatives"]], "rng (besskge.negative_sampler.triplebasedshardednegativesampler attribute)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.rng"]], "shard_negatives() (besskge.negative_sampler.triplebasedshardednegativesampler method)": [[40, "besskge.negative_sampler.TripleBasedShardedNegativeSampler.shard_negatives"]], "typebasedshardednegativesampler (class in besskge.negative_sampler)": [[41, "besskge.negative_sampler.TypeBasedShardedNegativeSampler"]], "corruption_scheme (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[41, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.corruption_scheme"]], "flat_negative_format (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[41, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.flat_negative_format"]], "local_sampling (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[41, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.local_sampling"]], "rng (besskge.negative_sampler.typebasedshardednegativesampler attribute)": [[41, "besskge.negative_sampler.TypeBasedShardedNegativeSampler.rng"]], "besskge.pipeline": [[42, "module-besskge.pipeline"]], "allscorespipeline (class in besskge.pipeline)": [[43, "besskge.pipeline.AllScoresPipeline"]], "forward() (besskge.pipeline.allscorespipeline method)": [[43, "besskge.pipeline.AllScoresPipeline.forward"]], "besskge.scoring": [[44, "module-besskge.scoring"]], "basescorefunction (class in besskge.scoring)": [[45, "besskge.scoring.BaseScoreFunction"]], "entity_embedding (besskge.scoring.basescorefunction attribute)": [[45, "besskge.scoring.BaseScoreFunction.entity_embedding"]], "forward() (besskge.scoring.basescorefunction method)": [[45, "besskge.scoring.BaseScoreFunction.forward"]], "negative_sample_sharing (besskge.scoring.basescorefunction attribute)": [[45, "besskge.scoring.BaseScoreFunction.negative_sample_sharing"]], "relation_embedding (besskge.scoring.basescorefunction attribute)": [[45, "besskge.scoring.BaseScoreFunction.relation_embedding"]], "score_heads() (besskge.scoring.basescorefunction method)": [[45, "besskge.scoring.BaseScoreFunction.score_heads"]], "score_tails() (besskge.scoring.basescorefunction method)": [[45, "besskge.scoring.BaseScoreFunction.score_tails"]], "score_triple() (besskge.scoring.basescorefunction method)": [[45, "besskge.scoring.BaseScoreFunction.score_triple"]], "sharding (besskge.scoring.basescorefunction attribute)": [[45, "besskge.scoring.BaseScoreFunction.sharding"]], "update_sharding() (besskge.scoring.basescorefunction method)": [[45, "besskge.scoring.BaseScoreFunction.update_sharding"]], "boxe (class in besskge.scoring)": [[46, "besskge.scoring.BoxE"]], "boxe_score() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.boxe_score"]], "broadcasted_distance() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.broadcasted_distance"]], "entity_embedding (besskge.scoring.boxe attribute)": [[46, "besskge.scoring.BoxE.entity_embedding"]], "forward() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.forward"]], "negative_sample_sharing (besskge.scoring.boxe attribute)": [[46, "besskge.scoring.BoxE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.reduce_embedding"]], "relation_embedding (besskge.scoring.boxe attribute)": [[46, "besskge.scoring.BoxE.relation_embedding"]], "score_heads() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.score_heads"]], "score_tails() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.score_tails"]], "score_triple() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.score_triple"]], "sharding (besskge.scoring.boxe attribute)": [[46, "besskge.scoring.BoxE.sharding"]], "update_sharding() (besskge.scoring.boxe method)": [[46, "besskge.scoring.BoxE.update_sharding"]], "complex (class in besskge.scoring)": [[47, "besskge.scoring.ComplEx"]], "broadcasted_dot_product() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.broadcasted_dot_product"]], "entity_embedding (besskge.scoring.complex attribute)": [[47, "besskge.scoring.ComplEx.entity_embedding"]], "forward() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.forward"]], "negative_sample_sharing (besskge.scoring.complex attribute)": [[47, "besskge.scoring.ComplEx.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.reduce_embedding"]], "relation_embedding (besskge.scoring.complex attribute)": [[47, "besskge.scoring.ComplEx.relation_embedding"]], "score_heads() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.score_heads"]], "score_tails() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.score_tails"]], "score_triple() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.score_triple"]], "sharding (besskge.scoring.complex attribute)": [[47, "besskge.scoring.ComplEx.sharding"]], "update_sharding() (besskge.scoring.complex method)": [[47, "besskge.scoring.ComplEx.update_sharding"]], "distmult (class in besskge.scoring)": [[48, "besskge.scoring.DistMult"]], "broadcasted_dot_product() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.broadcasted_dot_product"]], "entity_embedding (besskge.scoring.distmult attribute)": [[48, "besskge.scoring.DistMult.entity_embedding"]], "forward() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.forward"]], "negative_sample_sharing (besskge.scoring.distmult attribute)": [[48, "besskge.scoring.DistMult.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.reduce_embedding"]], "relation_embedding (besskge.scoring.distmult attribute)": [[48, "besskge.scoring.DistMult.relation_embedding"]], "score_heads() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.score_heads"]], "score_tails() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.score_tails"]], "score_triple() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.score_triple"]], "sharding (besskge.scoring.distmult attribute)": [[48, "besskge.scoring.DistMult.sharding"]], "update_sharding() (besskge.scoring.distmult method)": [[48, "besskge.scoring.DistMult.update_sharding"]], "distancebasedscorefunction (class in besskge.scoring)": [[49, "besskge.scoring.DistanceBasedScoreFunction"]], "broadcasted_distance() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.broadcasted_distance"]], "entity_embedding (besskge.scoring.distancebasedscorefunction attribute)": [[49, "besskge.scoring.DistanceBasedScoreFunction.entity_embedding"]], "forward() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.forward"]], "negative_sample_sharing (besskge.scoring.distancebasedscorefunction attribute)": [[49, "besskge.scoring.DistanceBasedScoreFunction.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.reduce_embedding"]], "relation_embedding (besskge.scoring.distancebasedscorefunction attribute)": [[49, "besskge.scoring.DistanceBasedScoreFunction.relation_embedding"]], "score_heads() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.score_heads"]], "score_tails() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.score_tails"]], "score_triple() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.score_triple"]], "sharding (besskge.scoring.distancebasedscorefunction attribute)": [[49, "besskge.scoring.DistanceBasedScoreFunction.sharding"]], "update_sharding() (besskge.scoring.distancebasedscorefunction method)": [[49, "besskge.scoring.DistanceBasedScoreFunction.update_sharding"]], "interht (class in besskge.scoring)": [[50, "besskge.scoring.InterHT"]], "broadcasted_distance() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.broadcasted_distance"]], "entity_embedding (besskge.scoring.interht attribute)": [[50, "besskge.scoring.InterHT.entity_embedding"]], "forward() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.forward"]], "negative_sample_sharing (besskge.scoring.interht attribute)": [[50, "besskge.scoring.InterHT.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.reduce_embedding"]], "relation_embedding (besskge.scoring.interht attribute)": [[50, "besskge.scoring.InterHT.relation_embedding"]], "score_heads() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.score_heads"]], "score_tails() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.score_tails"]], "score_triple() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.score_triple"]], "sharding (besskge.scoring.interht attribute)": [[50, "besskge.scoring.InterHT.sharding"]], "update_sharding() (besskge.scoring.interht method)": [[50, "besskge.scoring.InterHT.update_sharding"]], "matrixdecompositionscorefunction (class in besskge.scoring)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction"]], "broadcasted_dot_product() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.broadcasted_dot_product"]], "entity_embedding (besskge.scoring.matrixdecompositionscorefunction attribute)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.entity_embedding"]], "forward() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.forward"]], "negative_sample_sharing (besskge.scoring.matrixdecompositionscorefunction attribute)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.reduce_embedding"]], "relation_embedding (besskge.scoring.matrixdecompositionscorefunction attribute)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.relation_embedding"]], "score_heads() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.score_heads"]], "score_tails() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.score_tails"]], "score_triple() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.score_triple"]], "sharding (besskge.scoring.matrixdecompositionscorefunction attribute)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.sharding"]], "update_sharding() (besskge.scoring.matrixdecompositionscorefunction method)": [[51, "besskge.scoring.MatrixDecompositionScoreFunction.update_sharding"]], "pairre (class in besskge.scoring)": [[52, "besskge.scoring.PairRE"]], "broadcasted_distance() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.broadcasted_distance"]], "entity_embedding (besskge.scoring.pairre attribute)": [[52, "besskge.scoring.PairRE.entity_embedding"]], "forward() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.forward"]], "negative_sample_sharing (besskge.scoring.pairre attribute)": [[52, "besskge.scoring.PairRE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.reduce_embedding"]], "relation_embedding (besskge.scoring.pairre attribute)": [[52, "besskge.scoring.PairRE.relation_embedding"]], "score_heads() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.score_heads"]], "score_tails() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.score_tails"]], "score_triple() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.score_triple"]], "sharding (besskge.scoring.pairre attribute)": [[52, "besskge.scoring.PairRE.sharding"]], "update_sharding() (besskge.scoring.pairre method)": [[52, "besskge.scoring.PairRE.update_sharding"]], "rotate (class in besskge.scoring)": [[53, "besskge.scoring.RotatE"]], "broadcasted_distance() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.broadcasted_distance"]], "entity_embedding (besskge.scoring.rotate attribute)": [[53, "besskge.scoring.RotatE.entity_embedding"]], "forward() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.forward"]], "negative_sample_sharing (besskge.scoring.rotate attribute)": [[53, "besskge.scoring.RotatE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.reduce_embedding"]], "relation_embedding (besskge.scoring.rotate attribute)": [[53, "besskge.scoring.RotatE.relation_embedding"]], "score_heads() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.score_heads"]], "score_tails() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.score_tails"]], "score_triple() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.score_triple"]], "sharding (besskge.scoring.rotate attribute)": [[53, "besskge.scoring.RotatE.sharding"]], "update_sharding() (besskge.scoring.rotate method)": [[53, "besskge.scoring.RotatE.update_sharding"]], "trans (class in besskge.scoring)": [[54, "besskge.scoring.TranS"]], "broadcasted_distance() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.broadcasted_distance"]], "entity_embedding (besskge.scoring.trans attribute)": [[54, "besskge.scoring.TranS.entity_embedding"]], "forward() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.forward"]], "negative_sample_sharing (besskge.scoring.trans attribute)": [[54, "besskge.scoring.TranS.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.reduce_embedding"]], "relation_embedding (besskge.scoring.trans attribute)": [[54, "besskge.scoring.TranS.relation_embedding"]], "score_heads() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.score_heads"]], "score_tails() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.score_tails"]], "score_triple() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.score_triple"]], "sharding (besskge.scoring.trans attribute)": [[54, "besskge.scoring.TranS.sharding"]], "update_sharding() (besskge.scoring.trans method)": [[54, "besskge.scoring.TranS.update_sharding"]], "transe (class in besskge.scoring)": [[55, "besskge.scoring.TransE"]], "broadcasted_distance() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.broadcasted_distance"]], "entity_embedding (besskge.scoring.transe attribute)": [[55, "besskge.scoring.TransE.entity_embedding"]], "forward() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.forward"]], "negative_sample_sharing (besskge.scoring.transe attribute)": [[55, "besskge.scoring.TransE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.reduce_embedding"]], "relation_embedding (besskge.scoring.transe attribute)": [[55, "besskge.scoring.TransE.relation_embedding"]], "score_heads() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.score_heads"]], "score_tails() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.score_tails"]], "score_triple() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.score_triple"]], "sharding (besskge.scoring.transe attribute)": [[55, "besskge.scoring.TransE.sharding"]], "update_sharding() (besskge.scoring.transe method)": [[55, "besskge.scoring.TransE.update_sharding"]], "triplere (class in besskge.scoring)": [[56, "besskge.scoring.TripleRE"]], "broadcasted_distance() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.broadcasted_distance"]], "entity_embedding (besskge.scoring.triplere attribute)": [[56, "besskge.scoring.TripleRE.entity_embedding"]], "forward() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.forward"]], "negative_sample_sharing (besskge.scoring.triplere attribute)": [[56, "besskge.scoring.TripleRE.negative_sample_sharing"]], "reduce_embedding() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.reduce_embedding"]], "relation_embedding (besskge.scoring.triplere attribute)": [[56, "besskge.scoring.TripleRE.relation_embedding"]], "score_heads() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.score_heads"]], "score_tails() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.score_tails"]], "score_triple() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.score_triple"]], "sharding (besskge.scoring.triplere attribute)": [[56, "besskge.scoring.TripleRE.sharding"]], "update_sharding() (besskge.scoring.triplere method)": [[56, "besskge.scoring.TripleRE.update_sharding"]], "besskge.sharding": [[57, "module-besskge.sharding"]], "partitionedtripleset (class in besskge.sharding)": [[58, "besskge.sharding.PartitionedTripleSet"]], "create_from_dataset() (besskge.sharding.partitionedtripleset class method)": [[58, "besskge.sharding.PartitionedTripleSet.create_from_dataset"]], "create_from_queries() (besskge.sharding.partitionedtripleset class method)": [[58, "besskge.sharding.PartitionedTripleSet.create_from_queries"]], "dummy (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.dummy"]], "inverse_triples (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.inverse_triples"]], "neg_heads (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.neg_heads"]], "neg_tails (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.neg_tails"]], "partition_mode (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.partition_mode"]], "sharding (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.sharding"]], "triple_counts (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.triple_counts"]], "triple_offsets (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.triple_offsets"]], "triple_sort_idx (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.triple_sort_idx"]], "triples (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.triples"]], "types (besskge.sharding.partitionedtripleset attribute)": [[58, "besskge.sharding.PartitionedTripleSet.types"]], "sharding (class in besskge.sharding)": [[59, "besskge.sharding.Sharding"]], "create() (besskge.sharding.sharding class method)": [[59, "besskge.sharding.Sharding.create"]], "entity_to_idx (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.entity_to_idx"]], "entity_to_shard (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.entity_to_shard"]], "entity_type_counts (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.entity_type_counts"]], "entity_type_offsets (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.entity_type_offsets"]], "load() (besskge.sharding.sharding class method)": [[59, "besskge.sharding.Sharding.load"]], "max_entity_per_shard (besskge.sharding.sharding property)": [[59, "besskge.sharding.Sharding.max_entity_per_shard"]], "n_entity (besskge.sharding.sharding property)": [[59, "besskge.sharding.Sharding.n_entity"]], "n_shard (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.n_shard"]], "save() (besskge.sharding.sharding method)": [[59, "besskge.sharding.Sharding.save"]], "shard_and_idx_to_entity (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.shard_and_idx_to_entity"]], "shard_counts (besskge.sharding.sharding attribute)": [[59, "besskge.sharding.Sharding.shard_counts"]], "besskge.utils": [[60, "module-besskge.utils"]], "complex_multiplication() (in module besskge.utils)": [[61, "besskge.utils.complex_multiplication"]], "complex_rotation() (in module besskge.utils)": [[62, "besskge.utils.complex_rotation"]], "gather_indices() (in module besskge.utils)": [[63, "besskge.utils.gather_indices"]], "get_entity_filter() (in module besskge.utils)": [[64, "besskge.utils.get_entity_filter"]], "besskge": [[65, "module-besskge"]]}}) \ No newline at end of file |