Skip to content

Commit

Permalink
autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbinschmid committed Aug 29, 2024
1 parent 61788a7 commit f9d5977
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/datasets/simplicial_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ def __init__(
self.split = mode
self.split_config = SplitConfig(split, seed, use_stratified)
self.raw_simplicial_ds = SimplicialDataset(
os.path.join(
root,
"raw_simplicial"
),
os.path.join(root, "raw_simplicial"),
manifold,
version,
None,
Expand Down Expand Up @@ -105,7 +102,7 @@ def process(self):
indices = range(self.raw_simplicial_ds.len())

for task_type in TaskType:

# no name classification on 3 manifolds
if self.manifold == "3" and task_type == TaskType.NAME:
continue
Expand All @@ -116,7 +113,7 @@ def process(self):
class_transform(self.raw_simplicial_ds.get(idx))
for idx in indices
]

# train test split
stratified = torch.vstack([data.y for data in data_list_processed])
train_val_indices, test_indices = train_test_split(
Expand Down

0 comments on commit f9d5977

Please sign in to comment.