Skip to content

Commit

Permalink
Results printed in more understandable way, added links to the papers
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoFormaggio1 committed Nov 18, 2023
1 parent bea170a commit 88fc58e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def forward(self, x):
return self.MLP(x)

# Check the parameters of GCN to find the best configuration.
# https://arxiv.org/abs/1609.02907
class GCN(nn.Module):
def __init__(self, input_size: int, hidden_channels: int, embedding_size: int, dropout: float = 0.5):
super().__init__()
Expand All @@ -41,6 +42,7 @@ def forward(self, x, edge_index):
x = self.conv2(x, edge_index)
return x

# https://arxiv.org/abs/2105.14491
class GAT(nn.Module):
def __init__(self, input_size: int, embedding_size: int, hidden_channels: int = 16, heads:int = 8):
super().__init__()
Expand All @@ -60,7 +62,7 @@ def forward(self, x, edge_index):
x = self.conv2(x, edge_index)
return x


# https://arxiv.org/pdf/1706.02216v4.pdf
class Graph_SAGE(nn.Module):
def __init__(self, input_size: int, embedding_dim: int, hidden_size: int = 512, dropout: float = 0.5):
# Using 2 layers has led to the best results in the original paper.
Expand Down

0 comments on commit 88fc58e

Please sign in to comment.