Skip to content

Commit 59af08e

Browse files
committed
fast fix of model run and eval
1 parent f9cb650 commit 59af08e

13 files changed

+115
-29
lines changed

experiments/various_tasks.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def link_prediction():
134134
]
135135
)))
136136

137-
138137
manager_config = ConfigPattern(
139138
_config_class="ModelManagerConfig",
140139
_config_kwargs={
@@ -154,7 +153,7 @@ def link_prediction():
154153
}
155154
)
156155

157-
steps_epochs = 1
156+
steps_epochs = 3
158157
my_device = device('cuda' if torch.cuda.is_available() else 'cpu')
159158
gnn_model_manager = FrameworkGNNModelManager(
160159
gnn=gnn,
@@ -174,6 +173,10 @@ def link_prediction():
174173
)
175174
print("Training was successful")
176175

176+
res = gnn_model_manager.run_model(
177+
gen_dataset=gen_dataset,
178+
mask='all'
179+
)
177180
res = gnn_model_manager.evaluate_model(
178181
gen_dataset=gen_dataset,
179182
metrics=[Metric("Accuracy", mask="test")]
0 Bytes
Binary file not shown.
-67 Bytes
Binary file not shown.
-48 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-28 Bytes
Binary file not shown.
-139 Bytes
Binary file not shown.
-27.6 KB
Binary file not shown.
-98 Bytes
Binary file not shown.
-46 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)