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.
- {kgate-0.2.1 → kgate-0.2.2}/PKG-INFO +1 -1
- {kgate-0.2.1 → kgate-0.2.2}/pyproject.toml +1 -1
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/kgate.py +2 -1
- {kgate-0.2.1 → kgate-0.2.2}/LICENSE +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/README.md +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/__init__.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/config_template.toml +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/decoders/__init__.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/decoders/bilinear.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/decoders/convolutional.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/decoders/translational.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/encoders.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/evaluators.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/grid_search.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/inference.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/knowledgegraph.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/preprocessing.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/samplers.py +0 -0
- {kgate-0.2.1 → kgate-0.2.2}/src/kgate/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: KGATE
|
|
3
|
-
Version: 0.2.
|
|
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
|
|
@@ -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[
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|