Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCatt91 committed Jan 3, 2024
1 parent ae821e4 commit 6514372
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions besskge/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ class should be instantiated manually.
id_shuffle, (num_train, num_train + num_valid), axis=0
)
triples = dict()
for split in ["train", "valid", "test"]:
triples[split] = data[triple_ids[split]]
triples["train"] = data[triple_ids["train"]]
triples["valid"] = data[triple_ids["valid"]]
triples["test"] = data[triple_ids["test"]]

ds = cls(
n_entity=data[:, [0, 2]].max() + 1,
Expand All @@ -134,7 +135,7 @@ class should be instantiated manually.
type_offsets=type_offsets,
triples=triples,
)
ds.original_triple_ids = triple_ids
ds.original_triple_ids = triple_ids # type: ignore

return ds

Expand Down

0 comments on commit 6514372

Please sign in to comment.