Skip to content

Commit abb68e7

Browse files
author
Roman Joeres
committed
HPC update
1 parent 71b5dc9 commit abb68e7

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

ext_baselines/sweettalk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ def main(base: Path, task: str):
182182
else:
183183
raise ValueError(f"Unknown task {task}")
184184

185-
# data_config = get_dataset(config, "/scratch/chair_kalinina/s8rojoer/GIFFLAR/data_new_256")
186-
data_config = get_dataset(config, "/scratch/SCRATCH_SAS/roman/Gothenburg/GIFFLAR/data_new_256")
185+
data_config = get_dataset(config, "/scratch/chair_kalinina/s8rojoer/GIFFLAR/data_new_256")
186+
# data_config = get_dataset(config, "/scratch/SCRATCH_SAS/roman/Gothenburg/GIFFLAR/data_new_256")
187187
datamodule = DownstreamGDM(
188-
# root="/scratch/chair_kalinina/s8rojoer/GIFFLAR/data_new_256",
189-
root="/scratch/SCRATCH_SAS/roman/Gothenburg/GIFFLAR/data_new_256",
188+
root="/scratch/chair_kalinina/s8rojoer/GIFFLAR/data_new_256",
189+
# root="/scratch/SCRATCH_SAS/roman/Gothenburg/GIFFLAR/data_new_256",
190190
filename=data_config["filepath"],
191191
hash_code="e2301aa9",
192192
batch_size=64,

gifflar/data/modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
"""
3232
super().__init__()
3333
self.batch_size = batch_size
34-
self.num_workers = 64 # 32 # num_workers
34+
self.num_workers = 32 # num_workers
3535

3636
def train_dataloader(self) -> DataLoader:
3737
"""

gifflar/model/baselines/rgcn.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def __init__(
1313
self,
1414
feat_dim: int,
1515
hidden_dim: int,
16-
output_dim: int,
17-
task: Literal["regression", "classification", "multilabel", "spectrum"],
16+
output_dim: int = 1,
17+
task: Literal["regression", "classification", "multilabel", "spectrum"] | None = None,
1818
num_layers: int = 3,
1919
batch_size: int = 32,
2020
pre_transform_args: Optional[dict] = None,
@@ -57,7 +57,9 @@ def forward(self, batch: HeteroDataBatch) -> dict[str, torch.Tensor]:
5757
node_embeds = conv(node_embeds, batch["rgcn_edge_index"], batch["rgcn_edge_type"])
5858

5959
graph_embed = self.pooling(node_embeds, batch["rgcn_batch"])
60-
pred = self.head(graph_embed)
60+
pred = None
61+
if self.task is not None:
62+
pred = self.head(graph_embed)
6163
return {
6264
"node_embed": node_embeds,
6365
"graph_embed": graph_embed,

0 commit comments

Comments
 (0)