Skip to content

Commit

Permalink
notation consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCatt91 committed Oct 24, 2023
1 parent 4c3a92e commit 282a0ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion besskge/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def forward(self) -> Dict[str, Any]:

out = dict(scores=torch.concat(scores, dim=0))
if ids:
out["triple_ids"] = torch.concat(ids, dim=0)
out["triple_idx"] = torch.concat(ids, dim=0)
if self.evaluation:
concat_metrics = dict()
for m in metrics[0].keys():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_all_scores_pipeline(corruption_scheme: str, compute_metrics: bool) -> N

# Shuffle triples in same order of out["scores"]
triple_reordered = torch.from_numpy(
ds.triples["test"][partitioned_triple_set.triple_sort_idx[out["triple_ids"]]]
ds.triples["test"][partitioned_triple_set.triple_sort_idx[out["triple_idx"]]]
)

# Real scores
Expand Down

0 comments on commit 282a0ea

Please sign in to comment.