@@ -125,8 +125,9 @@ def setUp(self) -> None:
125
125
save_model_flag = False ,
126
126
metrics = [Metric ("F1" , mask = 'test' )])
127
127
128
- gin3_lin2_prot_mg_small = model_configs_zoo (
129
- dataset = dataset_mg_small , model_name = 'gin_gin_gin_lin_lin_prot' )
128
+ # TODO Kirill, tmp comment work and tests with Prot
129
+ # gin3_lin2_prot_mg_small = model_configs_zoo(
130
+ # dataset=dataset_mg_small, model_name='gin_gin_gin_lin_lin_prot')
130
131
gin3_lin1_mg_mutag = model_configs_zoo (
131
132
dataset = dataset_mg_mutag , model_name = 'gin_gin_gin_lin' )
132
133
@@ -155,14 +156,14 @@ def setUp(self) -> None:
155
156
}
156
157
)
157
158
158
- self .prot_gnn_mm_mg_small = ProtGNNModelManager (
159
- gnn = gin3_lin2_prot_mg_small , dataset_path = results_dataset_path_mg_small ,
160
- # manager_config=gin3_lin2_mg_small_manager_config,
161
- )
159
+ # self.prot_gnn_mm_mg_small = ProtGNNModelManager(
160
+ # gnn=gin3_lin2_prot_mg_small, dataset_path=results_dataset_path_mg_small,
161
+ # # manager_config=gin3_lin2_mg_small_manager_config,
162
+ # )
162
163
# TODO Misha use as training params: clst=clst, sep=sep, save_thrsh=save_thrsh, lr=lr
163
164
164
- best_acc = self .prot_gnn_mm_mg_small .train_model (
165
- gen_dataset = gen_dataset_mg_small , steps = 100 , metrics = [])
165
+ # best_acc = self.prot_gnn_mm_mg_small.train_model(
166
+ # gen_dataset=gen_dataset_mg_small, steps=100, metrics=[])
166
167
167
168
gin3_lin2_mg_small = model_configs_zoo (
168
169
dataset = gen_dataset_mg_small , model_name = 'gin_gin_gin_lin_lin' )
@@ -326,36 +327,36 @@ def test_Zorro(self):
326
327
)
327
328
explainer_Zorro .conduct_experiment (explainer_run_config )
328
329
329
- def test_ProtGNN (self ):
330
- warnings .warn ("Start ProtGNN" )
331
- explainer_init_config = ConfigPattern (
332
- _class_name = "ProtGNN" ,
333
- _import_path = EXPLAINERS_INIT_PARAMETERS_PATH ,
334
- _config_class = "ExplainerInitConfig" ,
335
- _config_kwargs = {
336
- }
337
- )
338
- explainer_run_config = ConfigPattern (
339
- _config_class = "ExplainerRunConfig" ,
340
- _config_kwargs = {
341
- "mode" : "global" ,
342
- "kwargs" : {
343
- "_class_name" : "ProtGNN" ,
344
- "_import_path" : EXPLAINERS_GLOBAL_RUN_PARAMETERS_PATH ,
345
- "_config_class" : "Config" ,
346
- "_config_kwargs" : {
347
-
348
- },
349
- }
350
- }
351
- )
352
- explainer_Prot = FrameworkExplainersManager (
353
- init_config = explainer_init_config ,
354
- dataset = self .dataset_mg_small , gnn_manager = self .prot_gnn_mm_mg_small ,
355
- explainer_name = 'ProtGNN' ,
356
- )
357
-
358
- explainer_Prot .conduct_experiment (explainer_run_config )
330
+ # def test_ProtGNN(self):
331
+ # warnings.warn("Start ProtGNN")
332
+ # explainer_init_config = ConfigPattern(
333
+ # _class_name="ProtGNN",
334
+ # _import_path=EXPLAINERS_INIT_PARAMETERS_PATH,
335
+ # _config_class="ExplainerInitConfig",
336
+ # _config_kwargs={
337
+ # }
338
+ # )
339
+ # explainer_run_config = ConfigPattern(
340
+ # _config_class="ExplainerRunConfig",
341
+ # _config_kwargs={
342
+ # "mode": "global",
343
+ # "kwargs": {
344
+ # "_class_name": "ProtGNN",
345
+ # "_import_path": EXPLAINERS_GLOBAL_RUN_PARAMETERS_PATH,
346
+ # "_config_class": "Config",
347
+ # "_config_kwargs": {
348
+ #
349
+ # },
350
+ # }
351
+ # }
352
+ # )
353
+ # explainer_Prot = FrameworkExplainersManager(
354
+ # init_config=explainer_init_config,
355
+ # dataset=self.dataset_mg_small, gnn_manager=self.prot_gnn_mm_mg_small,
356
+ # explainer_name='ProtGNN',
357
+ # )
358
+ #
359
+ # explainer_Prot.conduct_experiment(explainer_run_config)
359
360
360
361
def test_GNNExpl_PYG_SG (self ):
361
362
warnings .warn ("Start GNNExplainer_PYG" )
0 commit comments