KGATE 0.2.1__tar.gz → 0.2.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.3
2
2
  Name: KGATE
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Knowledge Graph Autoencoder Training Environment, bridging PyG encoders and TorchKGE decoders.
5
5
  License: MIT
6
6
  Keywords: Knowledge Graph,Knowledge Graph Embedding,Autoencoder,Machine Learning,Link Prediction
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "KGATE"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "Knowledge Graph Autoencoder Training Environment, bridging PyG encoders and TorchKGE decoders."
5
5
  authors = [
6
6
  {name = "Benjamin Loire", email = "benjamin.loire@univ-amu.fr"},
@@ -508,9 +508,10 @@ class Architect(Model):
508
508
  for node in current_attribute.index:
509
509
  node_idx = self.kg_train.ent2ix[node]
510
510
  nt_idx = self.kg_train.node_types[node_idx]
511
+ local_idx = self.kg_train.glob2loc[node_idx]
511
512
  assert nt_idx == self.kg_train.nt2ix[node_type], f"The entity {node} is given as {node_type} but registered as {ix2nt[str(nt_idx)]} in the KG."
512
513
 
513
- input_features[node_idx] = tensor(current_attribute.loc[node], dtype=torch.double)
514
+ input_features[local_idx] = tensor(current_attribute.loc[node], dtype=torch.double)
514
515
 
515
516
  self.node_embeddings.append(Parameter(input_features).to(self.device))
516
517
  else:
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