SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1609.02907 · ICLR · 2016

Semi-Supervised Classification with Graph Convolutional Networks

Max Welling, Thomas Kipf

arXiv · PDF · Open in the Atlas

Code that ran

39 of 58 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (13 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 33 have no contract verdict; 5 failures of our instrument; 19 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1609.02907.json · badge: /api/ran/1609.02907.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
cybermonic/cage-4-submission community
Papers with Code archive
4 ran · 0 no recorded run
darnbi/pygcn community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
yCobanoglu/infinite-width-gnns community
not in the paper's declared repositories
3 ran · 0 no recorded run
nieci2024/pyglcn community
not in the paper's declared repositories
2 ran · 2 no recorded run
bepping/non-oversmoothing-gcns community
Papers with Code archive
2 ran · 1 no recorded run
clin366/pygcn community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
toinesayan/node-classification-and-label-dependencies community
not in the paper's declared repositories
2 ran · 0 no recorded run
mahendrathapa/graph-convolution-network community
Papers with Code archive
2 ran · 0 no recorded run
HoganZhang/pygcn_python3 community
Papers with Code archive
2 ran · 0 no recorded run
nnaakkaaii/g2-MLP community
not in the paper's declared repositories
2 ran · 0 no recorded run
zhiqiang00/Hon-GCN community (classifier label)
classifier basis not recorded on the link
1 ran · 4 no recorded run
basiralab/RG-Select community
Papers with Code archive
1 ran · 1 no recorded run
abi-kothapalli/minimumdominatingsets community
Papers with Code archive
1 ran · 1 no recorded run
tkipf/keras-gcn community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
fanzhenliu/dagad community
Papers with Code archive
1 ran · 0 no recorded run
LouisDumont/GCN---re-implementation community
Papers with Code archive
1 ran · 0 no recorded run
selmiss/gp-tlstgcn community
not in the paper's declared repositories
1 ran · 0 no recorded run
mahsa91/RA-GCN community
Papers with Code archive
1 ran · 0 no recorded run
negarhdr/PGCN community
not in the paper's declared repositories
1 ran · 0 no recorded run
kiharalab/gnn_pocket community
Papers with Code archive
1 ran · 0 no recorded run
udlf/wsef community
not in the paper's declared repositories
1 ran · 0 no recorded run
ykrmm/sota_gnn community
not in the paper's declared repositories
1 ran · 0 no recorded run
KimMeen/GCN community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
lipingcoding/pygcn community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
thanhtrunghuynh93/pygcn community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ConvolutionLayer Ran
ran on a synthesized input
toinesayan/node-classification-and-label-dependencies/models/gcn.py
pointer only (licence: NONE) · get_code("64dec3c1f0c3dc42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, toinesayan/node-classification-and-label-dependencies when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

DAGAD_GCN Ran
ran on a synthesized input · constructed an object; no result was computed
fanzhenliu/dagad/DAGAD.py
code served (permissive licence) · get_code("d6b36ad879720430")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, DAGAD_GCN: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np
from torch_geometric.data import Data

torch.manual_seed(0)
np.random.seed(0)

# Create a minimal graph data object
num_nodes = 8
input_dim = 4
hidden_dim = 6
fcn_dim = 8
num_classes = 2
device = 'cpu'

# Create node features
x = torch.randn(num_nodes, input_dim)

# Create edge index (simple graph structure)
edge_index = torch.tensor([
    [0, 1, 2, 3, 4, 5, 6, 7, 0, 2, 4, 6],
    [1, 2, 3, 4, 5, 6, 7, 0, 3, 5, 7, 1]
], dtype=torch.long)

# Create labels and masks
y = torch.randint(0, num_classes, (num_nodes,))
train_mask = torch.tensor([True, True, True, True, False, False, False, False])
val_mask = torch.tensor([False, False, False, False, True, True, False, False])
test_mask = torch.tensor([False, False, False, False, False, False, True, True])

# Create data object with all required attributes
data = Data(
    x=x,
    edge_index=edge_index,
    y=y,
    train_mask=train_mask,
    val_mask=val_mask,
    test_mask=test_mask
)

ARGS = {
    'input_dim': input_dim,
    'hidden_dim': hidden_dim,
    'fcn_dim': fcn_dim,
    'num_classes': num_classes,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DAGAD_GCN — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DAGAD_GCN output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GCN Ran
ran on a synthesized input · constructed an object; no result was computed
LouisDumont/GCN---re-implementation/gcn.py
pointer only (licence: NONE) · get_code("c58cace7f8be77e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LouisDumont/GCN---re-implementation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GCN Ran
ran on a synthesized input · constructed an object; no result was computed
mahendrathapa/graph-convolution-network/src/model/gcn.py
pointer only (licence: NONE) · get_code("7ad60a09b8387891")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mahendrathapa/graph-convolution-network when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GCN Ran
ran on a synthesized input
HoganZhang/pygcn_python3/pygcn/models.py
code served (permissive licence) · get_code("c6a324398743dc52")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F
import math
from torch.nn.parameter import Parameter
from torch.nn.modules.module import Module

class GraphConvolution(Module):
    """
    Simple GCN layer, similar to https://arxiv.org/abs/1609.02907
    """

    def __init__(self, in_features, out_features, bias=True):
        super(GraphConvolution, self).__init__()
        self.in_features = in_features
        self.out_features = out_features
        self.weight = Parameter(torch.FloatTensor(in_features, out_features))
        if bias:
            self.bias = Parameter(torch.FloatTensor(out_features))
        else:
            self.register_parameter('bias', None)
        self.reset_parameters()

    def reset_parameters(self):
        stdv = 1.0 / math.sqrt(self.weight.size(1))
        self.weight.data.uniform_(-stdv, stdv)
        if self.bias is not None:
            self.bias.data.uniform_(-stdv, stdv)

    def forward(self, input, adj):
        support = torch.mm(input, self.weight)
        output = torch.spmm(adj, support)
        if self.bias is not None:
            return output + self.bias
        else:
            return output

    def __repr__(self):
        return self.__class__.__name__ + ' (' + str(self.in_features) + ' -> ' + str(self.out_features) + ')'

class GCN(nn.Module):

    def __init__(self, nfeat, nhid, nclass, dropout):
        super(GCN, self).__init__()
        self.gc1 = GraphConvolution(nfeat, nhid)
        self.gc2 = GraphConvolution(nhid, nclass)
        self.dropout = dropout

    def forward(self, x, adj):
        x = F.relu(self.gc1(x, adj))
        x = F.dropout(x, self.dropout, training=self.training)
        x = self.gc2(x, adj)
        return F.log_softmax(x, dim=1)


INIT_ARGS = {
    'nfeat': 4,
    'nhid': 8,
    'nclass': 3,
    'dropout': 0.5,
}

num_nodes = 2
num_features = INIT_ARGS['nfeat']
num_classes = INIT_ARGS['nclass']

x = torch.randn(num_nodes, num_features)

indices = torch.LongTensor([[0, 1], [1, 0]])
values = torch.FloatTensor([1.0, 1.0])
adj = torch.sparse_coo_tensor(indices.t(), values, (num_nodes, num_nodes))

ARGS = {
    'x': x,
    'adj': adj,
}

model = GCN(**INIT_ARGS)
model.eval()
output = model(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GCN Ran
ran on a synthesized input
toinesayan/node-classification-and-label-dependencies/models/gcn.py
pointer only (licence: NONE) · get_code("68f1d06e5c89108e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, toinesayan/node-classification-and-label-dependencies when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GCN Ran
ran on a synthesized input
yCobanoglu/infinite-width-gnns/gnn/models/node_classification/gcn.py
pointer only (licence: NONE) · get_code("b28cd994482b4d0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yCobanoglu/infinite-width-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GCNGP Ran
ran on a synthesized input · constructed an object; no result was computed
bepping/non-oversmoothing-gcns/src/GCN_methods/models.py
code served (permissive licence) · get_code("7ce73b453b28e799")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GCNGP: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small adjacency matrix A that is doubly stochastic
# (rows and columns sum to 1)
N = 4
A = np.array([
    [0.4, 0.2, 0.2, 0.2],
    [0.2, 0.4, 0.2, 0.2],
    [0.2, 0.2, 0.4, 0.2],
    [0.2, 0.2, 0.2, 0.4]
], dtype=np.float64)

# Verify A is doubly stochastic
assert np.allclose(np.sum(A, axis=0), 1.0)
assert np.allclose(np.sum(A, axis=1), 1.0)

# Create input feature matrix X with shape (N, n_in)
n_in = 3
X = np.random.RandomState(42).randn(N, n_in).astype(np.float64)

# Define parameters
L = 2
sigma_b_sq = 0.1
sigma_w_sq = 1.0

ARGS = {
    'X': X,
    'A': A,
    'L': L,
    'sigma_b_sq': sigma_b_sq,
    'sigma_w_sq': sigma_w_sq,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GCNGP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GCNGP output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GCNNode Ran
ran on a synthesized input · constructed an object; no result was computed
nnaakkaaii/g2-MLP/gnn/src/models/networks/gcn_node.py
code served (permissive licence) · get_code("f57b15b48db1c0bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GCNNode: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a small graph data object
num_nodes = 2
num_features = 4
num_classes = 3
num_edges = 2

x = torch.randn(num_nodes, num_features)
edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()

data = Data(x=x, edge_index=edge_index)

ARGS = {
    "num_features": 4,
    "num_classes": 3,
    "hidden_dim": 5,
    "n_layers": 2,
    "dropout_rate": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GCNNode — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GCNNode output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GraphConv Ran
ran on a synthesized input · constructed an object; no result was computed
selmiss/gp-tlstgcn/model/layers.py
pointer only (licence: LGPL-2.1) · get_code("b60e4872344aa92f")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, selmiss/gp-tlstgcn, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GraphConv Ran
ran on a synthesized input
yCobanoglu/infinite-width-gnns/gnn/models/node_classification/gcn.py
pointer only (licence: NONE) · get_code("660520aacc4ae7f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yCobanoglu/infinite-width-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GraphConvolution Ran
ran on a synthesized input · constructed an object; no result was computed
mahsa91/RA-GCN/code/layer.py
pointer only (licence: GPL-3.0) · get_code("834a39735e8891ef")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, mahsa91/RA-GCN, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GraphConvolution Ran
ran on a synthesized input · constructed an object; no result was computed
negarhdr/PGCN/pgcn/layers.py
code served (permissive licence) · get_code("2babbec8f9e467b8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GraphConvolution: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch
from torch.nn.parameter import Parameter
from torch.nn.modules.module import Module

torch.manual_seed(0)

# Define the GraphConvolution class (from the problem statement)
class GraphConvolution(Module):
    """
    Simple GCN layer, similar to https://arxiv.org/abs/1609.02907
    """

    def __init__(self, in_features, topology, bsize, i, n_class, bias=True):
        super(GraphConvolution, self).__init__()
        if i == 0:
            self.in_features = in_features
        else:
            self.in_features = topology[i - 1] * bsize
        if i == len(topology):
            self.out_features = n_class
        else:
            self.out_features = topology[i] * bsize
        self.weight = Parameter(torch.FloatTensor(self.in_features, self.out_features))
        if bias:
            self.bias = Parameter(torch.FloatTensor(self.out_features))
        else:
            self.register_parameter('bias', None)
        self.reset_parameters()

    def reset_parameters(self):
        stdv = 1.0 / math.sqrt(self.weight.size(1))
        self.weight.data.uniform_(-stdv, stdv)
        if self.bias is not None:
            self.bias.data.uniform_(-stdv, stdv)

    def forward(self, input, adj):
        support = torch.mm(input, self.weight)
        output = torch.spmm(adj, support)
        if self.bias is not None:
            return output + self.bias
        else:
            return output

    def __repr__(self):
        return self.__class__.__name__ + ' (' + str(self.in_features) + ' -> ' + str(self.out_features) + ')'

# Set up parameters for GraphConvolution initialization
in_features = 8
topology = [4, 3]
bsize = 2
i = 0
n_class = 5
bias = True

ARGS = {
    'in_features': in_features,
    'topology': topology,
    'bsize': bsize,
    'i': i,
    'n_class': n_class,
    'bias': bias
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GraphConvolution — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GraphConvolution output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GraphConvolution Ran
ran on a synthesized input
kiharalab/gnn_pocket/model/layers.py
pointer only (licence: GPL-3.0) · get_code("6a8bc2a8609d02b6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, kiharalab/gnn_pocket, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GraphConvolution Ran
ran on a synthesized input · constructed an object; no result was computed
nieci2024/pyglcn/glcn/layers.py
code served (permissive licence) · get_code("d42e565640a66336")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GraphConvolution: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np

torch.manual_seed(0)

# Create tiny test tensors
batch_size = 2
input_dim = 4
output_dim = 3
num_nodes = 2

# Create a sparse adjacency matrix (COO format)
indices = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()
values = torch.tensor([1.0, 1.0], dtype=torch.float)
adj_sparse = torch.sparse_coo_tensor(indices, values, (num_nodes, num_nodes))

ARGS = {
    'input_dim': 4,
    'output_dim': 3,
    'dropout_rate': 0.5,
    'act': F.relu,
    'bias': True,
    'sparse_inputs': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GraphConvolution — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GraphConvolution output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GraphConvolution Ran
ran on a synthesized input
mahendrathapa/graph-convolution-network/src/model/gcn.py
pointer only (licence: NONE) · get_code("da1862d885b56f90")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mahendrathapa/graph-convolution-network when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GraphConvolution Ran
ran on a synthesized input
HoganZhang/pygcn_python3/pygcn/models.py
code served (permissive licence) · get_code("87d10d793f9fe9bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch
from torch.nn.parameter import Parameter
from torch.nn.modules.module import Module

class GraphConvolution(Module):
    """
    Simple GCN layer, similar to https://arxiv.org/abs/1609.02907
    """

    def __init__(self, in_features, out_features, bias=True):
        super(GraphConvolution, self).__init__()
        self.in_features = in_features
        self.out_features = out_features
        self.weight = Parameter(torch.FloatTensor(in_features, out_features))
        if bias:
            self.bias = Parameter(torch.FloatTensor(out_features))
        else:
            self.register_parameter('bias', None)
        self.reset_parameters()

    def reset_parameters(self):
        stdv = 1.0 / math.sqrt(self.weight.size(1))
        self.weight.data.uniform_(-stdv, stdv)
        if self.bias is not None:
            self.bias.data.uniform_(-stdv, stdv)

    def forward(self, input, adj):
        support = torch.mm(input, self.weight)
        output = torch.spmm(adj, support)
        if self.bias is not None:
            return output + self.bias
        else:
            return output

    def __repr__(self):
        return self.__class__.__name__ + ' (' + str(self.in_features) + ' -> ' + str(self.out_features) + ')'


INIT_ARGS = {
    'in_features': 4,
    'out_features': 3,
    'bias': True,
}

num_nodes = 5
ARGS = {
    'input': torch.randn(num_nodes, 4),
    'adj': torch.sparse_coo_tensor(
        indices=torch.tensor([[0, 1, 2, 3, 4], [1, 2, 3, 4, 0]]),
        values=torch.ones(5),
        size=(num_nodes, num_nodes)
    ),
}

gcn = GraphConvolution(**INIT_ARGS)
output = gcn(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (5, 3) — shape (5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GraphConvolution Ran
ran on a synthesized input
basiralab/RG-Select/models_gcn.py
pointer only (licence: NONE) · get_code("2c8ae246b26bbe8a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, basiralab/RG-Select when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

InductiveCriticNetwork Ran
ran on a synthesized input
cybermonic/cage-4-submission/models/cage4.py
pointer only (licence: GPL-2.0) · get_code("85bd4acab3d8c054")
How it ran

The body of this sample is withheld: GPL-2.0, as GitHub detects it on this paper's repository, cybermonic/cage-4-submission, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Layer Ran
ran on a synthesized input
abi-kothapalli/minimumdominatingsets/gcn/layers.py
code served (permissive licence) · get_code("69193fc7101cf090")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned EagerTensor, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

_LAYER_UIDS = {}

def get_layer_uid(layer_name=''):
    """Helper function, assigns unique layer IDs."""
    if layer_name not in _LAYER_UIDS:
        _LAYER_UIDS[layer_name] = 1
        return 1
    else:
        _LAYER_UIDS[layer_name] += 1
        return _LAYER_UIDS[layer_name]

class Layer(object):
    """Base layer class. Defines basic API for all layer objects.
    Implementation inspired by keras (http://keras.io).

    # Properties
        name: String, defines the variable scope of the layer.
        logging: Boolean, switches Tensorflow histogram logging on/off

    # Methods
        _call(inputs): Defines computation graph of layer
            (i.e. takes input, returns output)
        __call__(inputs): Wrapper for _call()
        _log_vars(): Log all variables
    """

    def __init__(self, **kwargs):
        allowed_kwargs = {'name', 'logging'}
        for kwarg in kwargs.keys():
            assert kwarg in allowed_kwargs, 'Invalid keyword argument: ' + kwarg
        name = kwargs.get('name')
        if not name:
            layer = self.__class__.__name__.lower()
            name = layer + '_' + str(get_layer_uid(layer))
        self.name = name
        self.vars = {}
        logging = kwargs.get('logging', False)
        self.logging = logging
        self.sparse_inputs = False

    def _call(self, inputs):
        return inputs

    def __call__(self, inputs):
        with tf.name_scope(self.name):
            if self.logging and (not self.sparse_inputs):
                tf.summary.histogram(self.name + '/inputs', inputs)
            outputs = self._call(inputs)
            if self.logging:
                tf.summary.histogram(self.name + '/outputs', outputs)
            return outputs

    def _log_vars(self):
        for var in self.vars:
            tf.summary.histogram(self.name + '/vars/' + var, self.vars[var])


INIT_ARGS = {
    'name': 'test_layer',
    'logging': False
}

ARGS = {
    'inputs': tf.constant(np.random.randn(2, 4).astype(np.float32))
}

METHOD = '__call__'

if __name__ == '__main__':
    layer = Layer(**INIT_ARGS)
    output = layer(**ARGS)
    print("Layer name:", layer.name)
    print("Output shape:", output.shape)
    print("Output:", output.numpy())
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Linearized_GP Ran
ran on a synthesized input · constructed an object; no result was computed
bepping/non-oversmoothing-gcns/src/GCN_methods/models.py
code served (permissive licence) · get_code("086f2aa4471b98ee")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Linearized_GP: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small doubly stochastic matrix A (rows and columns sum to 1)
N = 3
A = np.array([
    [0.5, 0.3, 0.2],
    [0.2, 0.5, 0.3],
    [0.3, 0.2, 0.5]
], dtype=float)

# Verify A is doubly stochastic
assert np.allclose(np.sum(A, axis=0), 1.0), "Column sums should be 1"
assert np.allclose(np.sum(A, axis=1), 1.0), "Row sums should be 1"

# Create linearization_K as a constant matrix (all entries equal)
# The code checks that all entries are close to the first entry
K_value = 0.3
linearization_K = np.full((N, N), K_value, dtype=float)

# Set sigma_w_sq parameter
sigma_w_sq = 0.1

ARGS = {
    "A": A,
    "N": N,
    "sigma_w_sq": sigma_w_sq,
    "linearization_K": linearization_K,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Linearized_GP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Linearized_GP output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Net Ran
ran on a synthesized input · constructed an object; no result was computed
udlf/wsef/gcn.py
pointer only (licence: GPL-2.0) · get_code("8ff00a5cb292d5b8")
How it ran

The body of this sample is withheld: GPL-2.0, as GitHub detects it on this paper's repository, udlf/wsef, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Residual Ran
ran on a synthesized input · constructed an object; no result was computed
nnaakkaaii/g2-MLP/gnn/src/models/networks/gcn_node.py
code served (permissive licence) · get_code("1f6d95f2dbf139ad")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Residual: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x, *args, **kwargs):
        return self.linear(x)
    
    def reset_parameters(self):
        self.linear.reset_parameters()

fn = SimpleModule()

ARGS = {
    'fn': fn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Residual — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Residual output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
SimpleSelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
cybermonic/cage-4-submission/models/cage4.py
pointer only (licence: GPL-2.0) · get_code("054b6e15933ec96b")
How it ran

The body of this sample is withheld: GPL-2.0, as GitHub detects it on this paper's repository, cybermonic/cage-4-submission, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Two_Layer_GCN Ran
ran on a synthesized input
ykrmm/sota_gnn/GCN/gcn.py
pointer only (licence: NONE) · get_code("81656e9a45a5892b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ykrmm/sota_gnn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

alignment Ran
ran on a synthesized input
darnbi/pygcn/pygcn/alignment.py
code served (permissive licence) · get_code("b56b9aade0ebad51")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# The function expects two numpy arrays (or array-like objects)
# It computes the matrix product of embed_1 with the transpose of embed_2
# embed_1 shape: (batch_1, dim)
# embed_2 shape: (batch_2, dim)
# Result S will be (batch_1, batch_2)

embed_1 = np.random.randn(2, 4).astype(np.float32)
embed_2 = np.random.randn(3, 4).astype(np.float32)

ARGS = {
    "embed_1": embed_1,
    "embed_2": embed_2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_onehot Ran
ran; our contract draft was wrong, not the code
clin366/pygcn/pygcn/utils.py
code served (permissive licence) · get_code("3ab88254add4c192")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (6, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function encode_onehot takes labels as input
# labels should be an array-like of class labels (integers, strings, etc.)
# The function creates a one-hot encoding mapping for unique classes

# Create sample labels with multiple distinct classes
labels = np.array([0, 1, 2, 1, 0, 2], dtype=int)

ARGS = {
    "labels": labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (6, 3) — shape (6, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_onehot Ran
ran on a synthesized input
darnbi/pygcn/pygcn/utils.py
code served (permissive licence) · get_code("880de3ec87607e47")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (7, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes labels as input
# labels should be an array-like of class labels
# The function will find unique classes and create one-hot encodings

# Create a simple label array with a few distinct classes
labels = np.array([0, 1, 2, 0, 1, 2, 0])

ARGS = {
    "labels": labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (7, 3) — shape (7, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate Ran
ran on a synthesized input
KimMeen/GCN/train_citeseer.py
code served (permissive licence) · get_code("e16659d9314db70e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal model that takes (graph, features) and returns logits
class SimpleGNNModel(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, graph, features):
        # The function calls model(graph, features) and indexes the result with mask
        # So it needs to return a tensor of shape (num_nodes, num_classes)
        return self.linear(features)

# Create model
model = SimpleGNNModel(input_dim=4, output_dim=3)

# Create a simple graph object (minimal - just needs to exist)
class SimpleGraph:
    pass

graph = SimpleGraph()

# Create features: shape (num_nodes, input_dim)
num_nodes = 5
features = torch.randn(num_nodes, 4)

# Create labels: shape (num_nodes,) with class indices
labels = torch.tensor([0, 1, 2, 0, 1])

# Create mask: boolean tensor to select subset of nodes
mask = torch.tensor([True, True, True, False, False])

ARGS = {
    "model": model,
    "graph": graph,
    "features": features,
    "labels": labels,
    "mask": mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_hosts Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cybermonic/cage-4-submission/models/cage4.py
pointer only (licence: GPL-2.0) · get_code("70ca1b92d45e9b26")
How it ran

The body of this sample is withheld: GPL-2.0, as GitHub detects it on this paper's repository, cybermonic/cage-4-submission, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_mapping Ran
ran on a synthesized input
zhiqiang00/Hon-GCN/pygcn/utils.py
code served (permissive licence) · get_code("c261fb3b4b4f0f06")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with sample node data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("node1 node2\n")
temp_file.write("node3 node4\n")
temp_file.write("node1 node5\n")
temp_file.close()

ARGS = {
    "Path": temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_data Ran
ran on a synthesized input
lipingcoding/pygcn/pygcn/utils.py
code served (permissive licence) · get_code("0503d0e1f92b51c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import scipy.sparse as sp
import torch
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and minimal dataset files
temp_dir = tempfile.mkdtemp()
dataset_name = 'cora'

# Create .content file: node_id feature1 feature2 ... featureN label
num_nodes = 100
num_features = 10
num_classes = 7

content_data = []
for i in range(num_nodes):
    node_id = i
    features = [str(np.random.randint(0, 2)) for _ in range(num_features)]
    label = str(np.random.randint(0, num_classes))
    content_data.append([str(node_id)] + features + [label])

content_path = os.path.join(temp_dir, f'{dataset_name}.content')
np.savetxt(content_path, content_data, fmt='%s')

# Create .cites file: source_node target_node
num_edges = 150
cites_data = []
for _ in range(num_edges):
    source = np.random.randint(0, num_nodes)
    target = np.random.randint(0, num_nodes)
    if source != target:
        cites_data.append([source, target])

cites_path = os.path.join(temp_dir, f'{dataset_name}.cites')
np.savetxt(cites_path, cites_data, fmt='%d')

ARGS = {
    'path': temp_dir + '/',
    'dataset': dataset_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_data Ran
ran on a synthesized input
thanhtrunghuynh93/pygcn/pygcn/utils.py
code served (permissive licence) · get_code("830bf7e364f5b571")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import scipy.sparse as sp
import torch

torch.manual_seed(0)

# Create mock data files by monkey-patching np.genfromtxt
original_genfromtxt = np.genfromtxt

def mock_genfromtxt(fname, dtype=None, **kwargs):
    if '.content' in fname:
        # Create mock content file: [id, feature1, feature2, ..., label]
        n_samples = 10
        n_features = 5
        ids = np.arange(n_samples).astype(str)
        features = np.random.rand(n_samples, n_features)
        labels = np.array(['class_A', 'class_B'] * (n_samples // 2))
        content = np.column_stack([ids, features, labels])
        return content.astype(dtype if dtype else str)
    elif '.cites' in fname:
        # Create mock cites file: [citing_id, cited_id]
        edges = np.array([
            [0, 1],
            [1, 2],
            [2, 3],
            [3, 4],
            [4, 5],
            [5, 6],
            [6, 7],
            [7, 8],
            [8, 9],
        ], dtype=np.int32)
        return edges.astype(dtype if dtype else np.int32)
    return original_genfromtxt(fname, dtype=dtype, **kwargs)

np.genfromtxt = mock_genfromtxt

ARGS = {
    'path': '../data/cora/',
    'dataset': 'cora'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
naive_alignment Ran
ran on a synthesized input
darnbi/pygcn/pygcn/alignment.py
code served (permissive licence) · get_code("da98b40a03dbd482")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create two embedding matrices with distinct shapes for clarity
embed_1 = np.random.randn(4, 3)  # 4 nodes, 3-dimensional embeddings
embed_2 = np.random.randn(2, 3)  # 2 nodes, 3-dimensional embeddings

ARGS = {
    "embed_1": embed_1,
    "embed_2": embed_2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 2) — shape (4, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize Ran
ran, violated the contract we drafted
clin366/pygcn/pygcn/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from songw-sw/x-fnc, is pointer only (licence: NONE) · get_code("aa9c29936dee40a7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from songw-sw/x-fnc, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_adj Ran
ran on a synthesized input
tkipf/keras-gcn/kegra/utils.py
code served (permissive licence) · get_code("835dff62cae2e799")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned csr_matrix. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import scipy.sparse as sp
import numpy as np

# Create a small sparse adjacency matrix
# Using a 4x4 matrix for simplicity
rows = np.array([0, 1, 2, 3, 0, 1])
cols = np.array([1, 2, 3, 0, 2, 3])
data = np.array([1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
adj = sp.csr_matrix((data, (rows, cols)), shape=(4, 4))

ARGS = {
    'adj': adj,
    'symmetric': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pad_sequence Ran
ran; our contract draft was wrong, not the code
cybermonic/cage-4-submission/models/cage4.py
pointer only (licence: GPL-2.0) · get_code("8df101e74bcddcca")
How it ran

The body of this sample is withheld: GPL-2.0, as GitHub detects it on this paper's repository, cybermonic/cage-4-submission, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

select_nonlinearity Ran
ran; our contract draft was wrong, not the code
yCobanoglu/infinite-width-gnns/gnn/models/node_classification/gcn.py
pointer only (licence: NONE) · get_code("478cb05c26a9d740")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yCobanoglu/infinite-width-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sparse_dropout Ran
ran; our contract draft was wrong, not the code
nieci2024/pyglcn/glcn/layers.py
code served (permissive licence) · get_code("3df97104adae129f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small sparse tensor for testing
# Using COO (coordinate) format sparse tensor
indices = torch.tensor([[0, 1, 2], [0, 2, 1]], dtype=torch.long)
values = torch.tensor([1.0, 2.0, 3.0], dtype=torch.float32)
sparse_x = torch.sparse_coo_tensor(indices, values, (3, 4))

ARGS = {
    "x": sparse_x,
    "p": 0.5,
    "training": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, shape (3, 4) — shape (3, 4) as a later run recorded it
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GCN Not yet run
unverified (harvested, no recorded run)
1075225782/GCN/GCN/gcnpy/models.py
pointer only (licence: NONE) · get_code("9ae4971fbc72a790")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 1075225782/GCN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

GCN Not yet run
unverified (harvested, no recorded run)
bepping/non-oversmoothing-gcns/src/GCN_methods/models.py
code served (permissive licence) · get_code("33c9884171e760fd")
How it ran

no invocation recorded.

GCN Not yet run
unverified (harvested, no recorded run)
hazdzz/GCN/model/models.py
pointer only (licence: LGPL-2.1) · get_code("c8a2116bdd54211d")
How it ran

The body of this sample is withheld: LGPL-2.1, as GitHub detects it on this paper's repository, hazdzz/GCN, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

GCN Not yet run
unverified (harvested, no recorded run)
HamzaGbada/GCN-Numpy/core/GCN_scratch/model.py
code served (permissive licence) · get_code("720119c339f1a7f9")
How it ran

no invocation recorded.

GCN Not yet run
unverified (harvested, no recorded run)
basiralab/RG-Select/models_gcn.py
pointer only (licence: NONE) · get_code("0a27b9c97ef96c4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, basiralab/RG-Select when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

GCNLayer Not yet run
unverified (harvested, no recorded run)
HamzaGbada/GCN-Numpy/core/GCN_scratch/model.py
code served (permissive licence) · get_code("f35bf2b12ecf1db2")
How it ran

no invocation recorded.

GraphConvolution Not yet run
unverified (harvested, no recorded run)
abi-kothapalli/minimumdominatingsets/gcn/layers.py
code served (permissive licence) · get_code("0613cab4515d9b95")
How it ran

no invocation recorded.

GraphConvolution Not yet run
unverified (harvested, no recorded run)
jiangboahu/glcn-tf/glcn/layers.py
pointer only (licence: NONE) · get_code("143da86eef0cba06")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jiangboahu/glcn-tf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

GraphUtils Not yet run
unverified (harvested, no recorded run)
HamzaGbada/GCN-Numpy/core/GCN_scratch/model.py
code served (permissive licence) · get_code("0946cf496cae35a2")
How it ran

no invocation recorded.

MPNNLayer Not yet run
unverified (harvested, no recorded run)
HamzaGbada/GCN-Numpy/core/GCN_scratch/model.py
code served (permissive licence) · get_code("ca2f06ead4240f62")
How it ran

no invocation recorded.

get_Graph Not yet run
unverified (harvested, no recorded run)
zhiqiang00/Hon-GCN/pygcn/data_processed.py
code served (permissive licence) · get_code("7db7621c20669aaf")
How it ran

no invocation recorded.

get_Graph Not yet run
unverified (harvested, no recorded run)
zhiqiang00/Hon-GCN/pygcn/utils.py
code served (permissive licence) · get_code("3e60fd78554aece2")
How it ran

no invocation recorded.

get_Graph2 Not yet run
unverified (harvested, no recorded run)
zhiqiang00/Hon-GCN/pygcn/data_processed.py
code served (permissive licence) · get_code("41f2caabfb1e3cb4")
How it ran

no invocation recorded.

get_degrees Not yet run
unverified (harvested, no recorded run)
zhiqiang00/Hon-GCN/pygcn/data_processed.py
code served (permissive licence) · get_code("e9baa5a7abb70e2e")
How it ran

no invocation recorded.

glorot_init Not yet run
unverified (harvested, no recorded run)
nieci2024/pyglcn/glcn/layers.py
code served (permissive licence) · get_code("ea40475de51187a2")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
clin366/pygcn/pygcn/utils.py
code served (permissive licence) · get_code("bf19a66cd72d43f2")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
darnbi/pygcn/pygcn/utils.py
code served (permissive licence) · get_code("65a9d7324cc70e83")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
tkipf/keras-gcn/kegra/utils.py
code served (permissive licence) · get_code("a1c464c0fd79d7cb")
How it ran

no invocation recorded.

zeros_init Not yet run
unverified (harvested, no recorded run)
nieci2024/pyglcn/glcn/layers.py
code served (permissive licence) · get_code("ce80770a1e139cfc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 58 samples lifted from this paper's linked repositories, 58 carry a function identity and 0 do not. Of the 55 distinct functions with an identity, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 7 later) and 47 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize 24 other papers
24 later
1803.03735 (2018-03)
Attention-based Graph Neural Network for Semi-supervised Learning
1805.09112 (2018-05)
Hyperbolic Neural Networks
1906.02174 (2019-06)
Break the Ceiling: Stronger Multi-scale Deep Graph Convolutional Networks
and 21 more not named here
encode_onehot 12 other papers
12 later
1710.10903 (2017-10)
Graph Attention Networks
1803.03735 (2018-03)
Attention-based Graph Neural Network for Semi-supervised Learning
2002.04784 (2020-02)
Graph Universal Adversarial Attacks: A Few Bad Actors Ruin Graph Learning Models
and 9 more not named here
GraphConvolution
brick of this paper's assembly: entry, model
3 other papers
3 later · 2 only as an assembly brick
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
2407.16168 (2024-07)
Progressively Modality Freezing for Multi-Modal Entity Alignment
2605.19738 (2026-05)
TERGAD: Structure-Aware Text-Enhanced Representations for Graph Anomaly Detection
GCN
brick of this paper's assembly: entry
1 other paper
1 later
2112.04159 (2021-12)
Garment4D: Garment Reconstruction from Point Cloud Sequences
GraphConvolution
brick of this paper's assembly: entry
1 other paper
1 dated earlier
1606.09375 (2016-06)
Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering
Layer
brick of this paper's assembly: helper
1 other paper
1 later
2405.11198 (2024-05)
Adaptive Stabilization Based on Machine Learning for Column Generation
Residual
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
1710.10903 (2017-10)
Graph Attention Networks
load_data 1 other paper
1 later
2109.14285 (2021-09)
Be Confident! Towards Trustworthy Graph Neural Networks via Confidence Calibration

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

More are linked than shown here.

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present a scalable approach for semi-supervised learning on graph-structured data that is based on an efficient variant of convolutional neural networks which operate directly on graphs. We motivate the choice of our convolutional architecture via a localized first-order approximation of spectral graph convolutions. Our model scales linearly in the number of graph edges and learns hidden layer representations that encode both local graph structure and features of nodes. In a number of experiments on citation networks and on a knowledge graph dataset we demonstrate that our approach outperforms related methods by a significant margin.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1609.02907")
get_code_for_paper("1609.02907")
have("1609.02907")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1609.02907.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1609.02907.svg)](https://syntology.ai/paper/1609.02907)

Connect an agent — have() is free.