ahxt / g-mixup Goto Github PK
View Code? Open in Web Editor NEW[ICML2022] G-Mixup: Graph Data Augmentation for Graph Classification
[ICML2022] G-Mixup: Graph Data Augmentation for Graph Classification
Thank you to the author. However, it appears the code here is incomplete. How was "two_x_graphons" acquired? Do you have an example illustrating the functionality of "two_x_graphons_mixup"?
These issues prevent me from reproducing the results for the graph with features.
In the code, the graphon estimated by usvd, why the diag not is 0?
thanks!
Thanks for the code.
At present, the released code only work for dataset without node feature. Is there any plan to releases the code for MUTAG, NCI1 so on.
I have tried to implement that myselves, but there are some bugs to use functions in utils.py directly.
Hi,
I've tried to use GCNconv for Vanilla GCN model (I implemented it as below as there is no model available in the repo)
As a result, it seems like the evaluation result is not reproducible and the result of vanilla model is even higher in some cases. i.e., when I test vanilla GCN model with REDDIT-BINARY in multiple runs, it gives me the average accuracy above 90% (I used test accuracy with the model parameters for the best validation accuracy)
Do you have any idea why it happens?
class GCN(torch.nn.Module):
def __init__(self, num_features=1, num_classes=1, num_hidden=32):
super(GCN, self).__init__()
dim = num_hidden
self.conv1 = GCNConv(num_features, dim)
self.bn1 = torch.nn.BatchNorm1d(dim)
self.conv2 = GCNConv(dim, dim)
self.bn2 = torch.nn.BatchNorm1d(dim)
self.conv3 = GCNConv(dim, dim)
self.bn3 = torch.nn.BatchNorm1d(dim)
self.conv4 = GCNConv(dim, dim)
self.bn4 = torch.nn.BatchNorm1d(dim)
self.conv5 = GCNConv(dim, dim)
self.bn5 = torch.nn.BatchNorm1d(dim)
self.fc1 = Linear(dim, dim)
self.fc2 = Linear(dim, num_classes)
def forward(self, x, edge_index, batch):
x = F.relu(self.conv1(x, edge_index))
x = self.bn1(x)
x = F.relu(self.conv2(x, edge_index))
x = self.bn2(x)
x = F.relu(self.conv3(x, edge_index))
x = self.bn3(x)
x = F.relu(self.conv4(x, edge_index))
x = self.bn4(x)
x = F.relu(self.conv5(x, edge_index))
x = self.bn5(x)
# x = global_add_pool(x, batch)
x = global_mean_pool(x, batch)
x = F.relu(self.fc1(x))
# x = F.dropout(x, p=0.5, training=self.training)
x = self.fc2(x)
return F.log_softmax(x, dim=-1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.