Skip to content

Commit

Permalink
fix bug in model_zoo
Browse files Browse the repository at this point in the history
  • Loading branch information
LukyanovKirillML committed Nov 27, 2024
1 parent 0137cb8 commit a0a0803
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion experiments/attack_defense_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_attack_defense():

# print(data.train_mask)

gnn = model_configs_zoo(dataset=dataset, model_name='gcn_gcn')
gnn = model_configs_zoo(dataset=dataset, model_name='gat_gcn_sage_gcn_gcn')
# gnn = model_configs_zoo(dataset=dataset, model_name='gcn_gcn_lin')
# gnn = model_configs_zoo(dataset=dataset, model_name='test_gnn')
# gnn = model_configs_zoo(dataset=dataset, model_name='gin_gin_gin_lin_lin')
Expand Down
14 changes: 7 additions & 7 deletions src/models_builder/models_zoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def model_configs_zoo(
}
},
'activation': {
'activation_name': 'ReLU',
'activation_name': 'LeakyReLU',
'activation_kwargs': {
"negative_slope": 0.01
},
Expand All @@ -196,11 +196,11 @@ def model_configs_zoo(
'layer_name': 'GCNConv',
'layer_kwargs': {
'in_channels': 48,
'out_channels': dataset.num_classes,
'out_channels': 16,
},
},
'activation': {
'activation_name': 'LeakyReLU',
'activation_name': 'ReLU',
'activation_kwargs': None,
},
},
Expand All @@ -210,7 +210,7 @@ def model_configs_zoo(
'layer': {
'layer_name': 'SAGEConv',
'layer_kwargs': {
'in_channels': dataset.num_node_features,
'in_channels': 16,
'out_channels': 16,
},
},
Expand All @@ -231,7 +231,7 @@ def model_configs_zoo(
'layer': {
'layer_name': 'GCNConv',
'layer_kwargs': {
'in_channels': dataset.num_node_features,
'in_channels': 16,
'out_channels': 16,
},
},
Expand All @@ -246,8 +246,8 @@ def model_configs_zoo(
'layer': {
'layer_name': 'GCNConv',
'layer_kwargs': {
'in_channels': dataset.num_node_features,
'out_channels': 16,
'in_channels': 16,
'out_channels': dataset.num_classes,
},
},
'activation': {
Expand Down

0 comments on commit a0a0803

Please sign in to comment.