KGATE 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: KGATE
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Knowledge Graph Autoencoder Training Environment, bridging PyG encoders and TorchKGE decoders.
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "KGATE"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
 
5
5
  description = "Knowledge Graph Autoencoder Training Environment, bridging PyG encoders and TorchKGE decoders."
6
6
  authors = [
@@ -276,11 +276,7 @@ class BernoulliNegativeSampler(NegativeSampler):
276
276
 
277
277
  def corrupt_batch( self,
278
278
  batch: torch.LongTensor,
279
- <<<<<<< clean_functions
280
- negative_triplet_count: Optional[int] = None):
281
- =======
282
279
  negative_triplet_count: int | None = None):
283
- >>>>>>> main
284
280
  """
285
281
  For each true triplet, produce a corrupted one not different from
286
282
  any other true triplet. If `heads` and `tails` are cuda objects,
@@ -305,11 +301,7 @@ class BernoulliNegativeSampler(NegativeSampler):
305
301
  """
306
302
  device = batch.device
307
303
  batch_size = batch.shape[1]
308
- <<<<<<< clean_functions
309
304
 
310
- =======
311
-
312
- >>>>>>> main
313
305
  negative_triplet_count = negative_triplet_count or self.negative_triplet_count
314
306
 
315
307
  negative_triplet_heads = batch[0].repeat(negative_triplet_count)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes