SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1806.01261 · 2018

Relational inductive biases, deep learning, and graph networks

Vinicius Zambaldi, Nicolas Heess, Alvaro Sanchez-Gonzalez, Peter Battaglia, Jessica Hamrick, Razvan Pascanu, Oriol Vinyals, Caglar Gulcehre, Yujia Li, Pushmeet Kohli, Victor Bapst, Chris Dyer, and 15 more

arXiv · PDF · Open in the Atlas

Code that ran

39 of 51 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 6 honoured the contract we drafted, 0 violated it and 29 have no contract verdict; 4 failures of our instrument; 12 no recorded run), measured 2026-11-24; 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/1806.01261.json · badge: /api/ran/1806.01261.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
TQCAI/graph_nets_pytorch community
Papers with Code archive
9 ran · 1 no recorded run
mylonasc/tf-gnns community (classifier label)
classifier basis not recorded on the link
7 ran · 6 no recorded run
davidtangGT/MEGNET community (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
machine-reasoning-ufrgs/graph-neural-networks community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
deepmind/jraph community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
Rowing0914/Graph_Nets community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
amaleki2/graph_networks community
Papers with Code archive
0 ran · 5 no recorded run
FunctionStatusWhere it lives
Aggregator Ran
ran on a synthesized input · constructed an object; no result was computed
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("33a8530945e1ca58")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

EdgeBlock Ran
ran on a synthesized input · constructed an object; no result was computed
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("7ff65c09e83a289d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

GlobalBlock Ran
ran on a synthesized input · constructed an object; no result was computed
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("2449c07f88cb5df0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

GraphMapFeatures Ran
ran; our contract draft was wrong, not the code
deepmind/jraph/jraph/_src/models.py
code served (permissive licence) · get_code("083fdc1346d4a41f")
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 function. 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 jax.numpy as jnp
import numpy as np

# Define simple embedding functions
def embed_edge_fn(edges):
    """Simple embedding function for edges"""
    if isinstance(edges, jnp.ndarray):
        return edges * 2
    return edges

def embed_node_fn(nodes):
    """Simple embedding function for nodes"""
    if isinstance(nodes, jnp.ndarray):
        return nodes + 1
    return nodes

def embed_global_fn(globals_):
    """Simple embedding function for globals"""
    if isinstance(globals_, jnp.ndarray):
        return globals_ - 0.5
    return globals_

# Create simple JAX arrays for testing
edges_array = jnp.array([[1.0, 2.0, 3.0, 4.0],
                          [5.0, 6.0, 7.0, 8.0]])
nodes_array = jnp.array([[0.1, 0.2, 0.3, 0.4],
                          [0.5, 0.6, 0.7, 0.8]])
globals_array = jnp.array([[0.9, 0.1, 0.2, 0.3]])

ARGS = {
    'embed_edge_fn': embed_edge_fn,
    'embed_node_fn': embed_node_fn,
    'embed_global_fn': embed_global_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
GraphsTuple Ran
ran on a synthesized input · constructed an object; no result was computed
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("71e81adbbb88a6bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

NodeBlock Ran
ran on a synthesized input · constructed an object; no result was computed
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("023b96c5f1ca64d0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

accuracy Ran
ran on a synthesized input
davidtangGT/MEGNET/megnet/utils/metrics.py
code served (permissive licence) · get_code("793d95f974b73be9")
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 float64, ndim 0, 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 numpy as np

# Create small numpy arrays for testing
# y_true: binary labels (0s and 1s)
y_true = np.array([0, 1, 1, 0, 1, 1])

# y_pred: sigmoid predictions (values between 0 and 1)
y_pred = np.array([0.1, 0.9, 0.8, 0.2, 0.7, 0.6])

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
base_graph Ran
ran on a synthesized input
Rowing0914/Graph_Nets/graph_nets/my_example/physics.py
code served (permissive licence) · get_code("bab3c705163c083f")
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 numpy as np

torch_seed = 0

ARGS = {
    'n': 5,
    'd': 2.0,
}
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 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
broadcast_globals_to_edges Ran
ran, honoured the contract we drafted
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("050689c96b6e52e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

broadcast_globals_to_nodes Ran
ran, honoured the contract we drafted
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("84ee378d07f846fe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

broadcast_receiver_nodes_to_edges Ran
ran, honoured the contract we drafted
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("049b1bb616f6d97d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

broadcast_sender_nodes_to_edges Ran
ran, honoured the contract we drafted
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("f296fbbdafe6167f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

concat Ran
ran on a synthesized input
mylonasc/tf-gnns/tf_gnns/backend_ops.py
code served (permissive licence) · get_code("b433f1f94987c049")
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 EagerTensor, ndim 2, dtype family float, shape (2, 12) 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 numpy as np
import keras

torch.manual_seed(0)

# Create small tensors to concatenate
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(2, 3)
tensor3 = torch.randn(2, 5)

# Convert to numpy arrays (keras.ops.concatenate works with array-like inputs)
xs = [tensor1.numpy(), tensor2.numpy(), tensor3.numpy()]

ARGS = {
    "xs": xs,
    "axis": -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, torch — 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, shape (2, 12) — shape (2, 12) 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
create_batchCNF Ran
ran on a synthesized input
machine-reasoning-ufrgs/graph-neural-networks/neurosat/cnf.py
code served (permissive licence) · get_code("67bfb69a00d165f3")
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 BatchCNF. 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

class SimpleCNF:
    """Minimal stand-in CNF instance with required attributes"""
    def __init__(self, n, m, clauses, sat, filename):
        self.n = n
        self.m = m
        self.clauses = clauses
        self.sat = sat
        self.filename = filename

# Create first CNF instance
# n=3 variables, m=2 clauses
cnf1 = SimpleCNF(
    n=3,
    m=2,
    clauses=[
        [1, -2],      # clause 1: var1 OR NOT var2
        [2, 3, -1]    # clause 2: var2 OR var3 OR NOT var1
    ],
    sat=True,
    filename="test1.cnf"
)

# Create second CNF instance
# n=4 variables, m=3 clauses
cnf2 = SimpleCNF(
    n=4,
    m=3,
    clauses=[
        [1, 2],           # clause 1: var1 OR var2
        [-2, 3],          # clause 2: NOT var2 OR var3
        [4, -1, -3]       # clause 3: var4 OR NOT var1 OR NOT var3
    ],
    sat=False,
    filename="test2.cnf"
)

instances = [cnf1, cnf2]

ARGS = {
    "instances": instances
}
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 BatchCNF — a BatchCNF output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BatchCNF 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
dense_to_sparse Ran
ran on a synthesized input
machine-reasoning-ufrgs/graph-neural-networks/util.py
code served (permissive licence) · get_code("c78d05675edb4799")
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 torch
import numpy as np

torch.manual_seed(0)

# Create a small dense matrix with some zeros and non-zeros
M = torch.tensor([
    [1.0, 0.0, 3.0],
    [0.0, 2.0, 0.0],
    [4.0, 0.0, 5.0],
    [0.0, 0.0, 6.0]
], dtype=torch.float32)

# Define check and val functions
check_fn = lambda x: x != 0
val_fn = lambda x: x

ARGS = {
    "M": M,
    "check": check_fn,
    "val": val_fn
}
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 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
euler_integration Ran
ran on a synthesized input
Rowing0914/Graph_Nets/graph_nets/my_example/physics.py
code served (permissive licence) · get_code("41b325265ab294e1")
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, ndim 2, dtype family float, shape (2, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Construct the arguments for euler_integration

# nodes: Ex5 tensor of [x, y, v_x, v_y, is_fixed] features for each node
# E is the number of nodes, let's use 2 nodes
nodes = torch.randn(2, 5)

# force_per_node: Ex2 tensor of force [f_x, f_y] acting on each node
# E should match the first dimension of nodes
force_per_node = torch.randn(2, 2)

# step_size: scalar
step_size = 0.1

ARGS = {
    "nodes": nodes,
    "force_per_node": force_per_node,
    "step_size": step_size,
}
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, ndim 2, dtype family float, shape (2, 2) — shape (2, 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
expand_1st Ran
ran on a synthesized input
davidtangGT/MEGNET/megnet/utils/general.py
code served (permissive licence) · get_code("4fc6585b7b5fce76")
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 4, dtype family float, shape (1, 3, 4, 5) 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 a small numpy array with distinct dimensions for testing
x = np.random.randn(3, 4, 5)

ARGS = {
    "x": x
}
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 4, dtype family float, shape (1, 3, 4, 5) — shape (1, 3, 4, 5) 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
fast_label_binarize Ran
ran, honoured the contract we drafted
davidtangGT/MEGNET/megnet/utils/general.py
code served (permissive licence) · get_code("88f0e66d192714e6")
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 list, ndim 1, dtype family int; 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 torch
import numpy as np

# Analyze the function:
# - value: List - used with == comparison and checked if "in labels"
# - labels: List - used with len(), .index(), and iteration
# The function encodes a value against a list of possible labels

# Test case 1: Binary classification (len(labels) == 2)
value_1 = ["cat"]
labels_1 = ["cat", "dog"]

# Test case 2: Multi-class (len(labels) > 2)
value_2 = "class_b"
labels_2 = ["class_a", "class_b", "class_c"]

# Use the multi-class case as it exercises more code paths
ARGS = {
    "value": value_2,
    "labels": labels_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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
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
first_dim Ran
ran on a synthesized input
mylonasc/tf-gnns/tf_gnns/backend_ops.py
code served (permissive licence) · get_code("deebc52fd00d5008")
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 int, ndim 0, dtype family int, 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 keras
import numpy as np

def first_dim(x):
    return keras.ops.shape(x)[0]

# Create a small tensor/array to pass to the function
# The function extracts the first dimension using keras.ops.shape
x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
gather Ran
ran on a synthesized input
mylonasc/tf-gnns/tf_gnns/backend_ops.py
code served (permissive licence) · get_code("0064a27d6d3cb322")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 keras
import numpy as np

# Create a small tensor to use as params
params = keras.ops.convert_to_tensor(np.arange(12, dtype=np.float32).reshape(3, 4))

# Create indices to gather from params
indices = np.array([0, 2], dtype=np.int32)

# Define ARGS dict with all parameters of the gather function
ARGS = {
    'params': params,
    'indices': indices,
    'axis': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — 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, shape (2, 4) — shape (2, 4) 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
get_graph_data_dict Ran
ran on a synthesized input
Rowing0914/Graph_Nets/graph_nets/my_example/ex_2.py
code served (permissive licence) · get_code("6c8e3bafab6c39b9")
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 numpy as np

GLOBAL_SIZE = 4
NODE_SIZE = 5
EDGE_SIZE = 6

def get_graph_data_dict(num_nodes, num_edges):
    return {'globals': np.random.rand(GLOBAL_SIZE).astype(np.float32), 'nodes': np.random.rand(num_nodes, NODE_SIZE).astype(np.float32), 'edges': np.random.rand(num_edges, EDGE_SIZE).astype(np.float32), 'senders': np.random.randint(num_nodes, size=num_edges, dtype=np.int32), 'receivers': np.random.randint(num_nodes, size=num_edges, dtype=np.int32)}

ARGS = {
    'num_nodes': 3,
    'num_edges': 5
}
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 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
hookes_law Ran
ran on a synthesized input
Rowing0914/Graph_Nets/graph_nets/my_example/physics.py
code served (permissive licence) · get_code("c843d356064d8658")
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 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 numpy as np
import tensorflow as tf

# Create small test data for hookes_law
# receiver_nodes: Ex5 tensor of [x, y, v_x, v_y, is_fixed]
receiver_nodes = tf.constant([
    [1.0, 2.0, 0.1, 0.2, 0.0],
    [3.0, 4.0, 0.3, 0.4, 1.0]
], dtype=tf.float32)

# sender_nodes: Ex5 tensor of [x, y, v_x, v_y, is_fixed]
sender_nodes = tf.constant([
    [2.0, 3.0, 0.15, 0.25, 0.0],
    [4.0, 5.0, 0.35, 0.45, 0.0]
], dtype=tf.float32)

# k: Spring constant for each edge (E,)
k = tf.constant([0.5, 1.0], dtype=tf.float32)

# x_rest: Rest length of each edge (E,)
x_rest = tf.constant([1.0, 1.5], dtype=tf.float32)

ARGS = {
    "receiver_nodes": receiver_nodes,
    "sender_nodes": sender_nodes,
    "k": k,
    "x_rest": x_rest
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 recorded SymbolicTensor ndim 2, which disagrees with the fixture run
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
list_topics Ran
ran on a synthesized input
mylonasc/tf-gnns/tf_gnns/agent_docs.py
code served (permissive licence) · get_code("1bc1b5ac372ed56e")
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 int, ndim 0, dtype family int, 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 argparse

_args = argparse.Namespace()

ARGS = {
    '_args': _args
}
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 int, ndim 0, dtype family int, 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
load_ogbg_molhiv Ran
ran on a synthesized input
mylonasc/tf-gnns/benchmarks/ogbg_molhiv/data.py
code served (permissive licence) · get_code("e9c5142e7cbd84c4")
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, ndim 1, 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 os
import numpy as np
from dataclasses import dataclass

# Mock the OGB dataset to avoid network calls
class MockGraphPropPredDataset:
    def __init__(self, name, root):
        self.name = name
        self.root = root
    
    def get_idx_split(self):
        return {
            'train': np.arange(0, 100),
            'valid': np.arange(100, 120),
            'test': np.arange(120, 140)
        }

# Mock the ogb module
class MockOGB:
    class graphproppred:
        @staticmethod
        def GraphPropPredDataset(name, root):
            return MockGraphPropPredDataset(name, root)

import sys
ogb_mock = MockOGB()
sys.modules['ogb'] = ogb_mock
sys.modules['ogb.graphproppred'] = ogb_mock.graphproppred

# Define arguments
ARGS = {
    'root': 'dataset'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, ogb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
mae Ran
ran on a synthesized input
davidtangGT/MEGNET/megnet/utils/metrics.py
code served (permissive licence) · get_code("7cd70353cde137d0")
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 numpy as np

# Create small numpy arrays for ground truth and predictions
y_true = np.array([1.0, 2.0, 3.0, 4.0])
y_pred = np.array([1.1, 2.2, 2.9, 3.8])

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
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 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
make_embed_fn Ran
ran on a synthesized input
deepmind/jraph/jraph/ogb_examples/train_flax.py
code served (permissive licence) · get_code("7c803bc1dbe9c38f")
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 function. 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 jax
import jax.numpy as jnp
from flax import linen as nn

ARGS = {
    "latent_size": 8,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
make_mlp Ran
ran on a synthesized input
mylonasc/tf-gnns/tf_gnns/graphnet_utils.py
code served (permissive licence) · get_code("489a7393def35150")
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 Functional. 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 keras
import numpy as np

# Create input tensors
input_tensor_1 = keras.Input(shape=(4,), name='input_1')
input_tensor_2 = keras.Input(shape=(3,), name='input_2')
input_tensor_list = [input_tensor_1, input_tensor_2]

# Define arguments
ARGS = {
    'units': [16, 32, 16],
    'input_tensor_list': input_tensor_list,
    'output_shape': (8,),
    'activation': 'relu',
    'activate_last_layer': False,
    'layernorm_last_layer': False,
    'model_name': 'test_mlp'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Functional — a Functional output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Functional 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
mean_squared_error_with_scale Ran
ran on a synthesized input
davidtangGT/MEGNET/megnet/losses.py
code served (permissive licence) · get_code("310cd70b817b692c")
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 SymbolicTensor. 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 tensorflow as tf
import numpy as np

# Create small tensors for y_true and y_pred
# Using batch size 2, dimension 4
y_true = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)
y_pred = tf.constant([[1.1, 2.1, 3.1, 4.1], [5.1, 6.1, 7.1, 8.1]], dtype=tf.float32)

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "scale": 10000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
plot_graph_networkx Ran
ran on a synthesized input
Rowing0914/Graph_Nets/graph_nets/my_example/ex_2.py
code served (permissive licence) · get_code("3eb164551e02b4d4")
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 torch
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np

torch.manual_seed(0)

# Create a directed graph with node, edge, and graph features
graph = nx.DiGraph()

# Add nodes with features
graph.add_node(0, features=np.array([0.5]))
graph.add_node(1, features=np.array([0.7]))
graph.add_node(2, features=np.array([0.3]))

# Add edges with features
graph.add_edge(0, 1, features=np.array([0.2]))
graph.add_edge(1, 2, features=np.array([0.8]))
graph.add_edge(0, 2, features=np.array([0.4]))

# Add graph-level features
graph.graph['features'] = np.array([0.6])

# Create matplotlib axis
fig, ax = plt.subplots(figsize=(6, 6))

ARGS = {
    'graph': graph,
    'ax': ax,
    'pos': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, networkx, numpy, torch — 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
reindex_matrix Ran
ran on a synthesized input
machine-reasoning-ufrgs/graph-neural-networks/util.py
code served (permissive licence) · get_code("795cf0cae79b3a4c")
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 zip. 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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - n: integer (used as n + s in tuple construction)
# - m: integer (used as m + t in tuple construction)
# - M: iterable/indexable with M[0] and M[1], where:
#   - M[0] contains tuples (s, t)
#   - M[1] contains values v
#   - They are zipped together

n = 5
m = 3

# M should be a tuple/list with two elements:
# M[0] = list of index tuples (s, t)
# M[1] = list of values
M = (
    [(0, 1), (1, 2), (2, 0)],  # M[0]: index tuples
    [10, 20, 30]                # M[1]: values
)

ARGS = {
    "n": n,
    "m": m,
    "M": M
}
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 zip — a zip output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a zip 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
repeat_with_index Ran
ran, honoured the contract we drafted
davidtangGT/MEGNET/megnet/utils/layer.py
code served (permissive licence) · get_code("2d4a31854d09c4ab")
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 EagerTensor, ndim 3, dtype family float, shape (2, 3, 4) 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 tensorflow as tf

# Create small test tensors
# x should be a 3D tensor (N, M, K)
# N=2 (batch), M=3 (middle axis to repeat), K=4 (last dimension)
x = tf.constant([
    [[1.0, 2.0, 3.0, 4.0],
     [5.0, 6.0, 7.0, 8.0],
     [9.0, 10.0, 11.0, 12.0]],
    [[13.0, 14.0, 15.0, 16.0],
     [17.0, 18.0, 19.0, 20.0],
     [21.0, 22.0, 23.0, 24.0]]
], dtype=tf.float32)

# index should be a 1D tensor indicating which group each element belongs to
# For example: [0, 0, 0, 1, 2, 2] means first element repeated 3 times, second 1 time, third 2 times
# We'll use a simpler case: [0, 1, 2] for 3 unique indices
index = tf.constant([0, 1, 2], dtype=tf.int32)

# axis for repetition (default is 1 for the middle axis)
axis = 1

ARGS = {
    "x": x,
    "index": index,
    "axis": axis
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) 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
segment_mean Ran
ran; our contract draft was wrong, not the code
deepmind/jraph/jraph/_src/utils.py
code served (permissive licence) · get_code("6c720ecf7652656d")
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 ArrayImpl, ndim 1, dtype family float, shape (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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update("jax_platform_name", "cpu")

# Create small test data
data = jnp.arange(6, dtype=jnp.float32)  # [0, 1, 2, 3, 4, 5]
segment_ids = jnp.array([0, 0, 1, 1, 2, 2], dtype=jnp.int32)
num_segments = 3
indices_are_sorted = False
unique_indices = False

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
    "indices_are_sorted": indices_are_sorted,
    "unique_indices": unique_indices,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (3,) — shape (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
segment_sum Ran
ran; our contract draft was wrong, not the code
deepmind/jraph/jraph/_src/utils.py
code served (permissive licence) · get_code("b02dcff8929a613b")
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 ArrayImpl, ndim 1, dtype family float, shape (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 jax.numpy as jnp

ARGS = {
    "data": jnp.arange(5, dtype=jnp.float32),
    "segment_ids": jnp.array([0, 0, 1, 1, 2], dtype=jnp.int32),
    "num_segments": 3,
    "indices_are_sorted": False,
    "unique_indices": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (3,) — shape (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
segment_variance Ran
ran; our contract draft was wrong, not the code
deepmind/jraph/jraph/_src/utils.py
code served (permissive licence) · get_code("fa85b4d47d64d575")
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 ArrayImpl, ndim 1, dtype family float, shape (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 jax.numpy as jnp

# Create small test data
data = jnp.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0])
segment_ids = jnp.array([0, 0, 1, 1, 2, 2])
num_segments = 3

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
    "indices_are_sorted": False,
    "unique_indices": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (3,) — shape (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
sigmoid Ran
ran on a synthesized input
machine-reasoning-ufrgs/graph-neural-networks/neurosat/logutil.py
code served (permissive licence) · get_code("c6a8334164beb95f")
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 1, dtype family float, shape (4,) 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 sigmoid function takes two parameters:
# - x: numeric input (tested with derivative=False and derivative=True)
# - derivative: boolean flag to compute derivative

# Create test inputs
x_input = np.array([0.2, 0.5, 0.8, 0.3])

ARGS = {
    "x": x_input,
    "derivative": False,
}
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 1, dtype family float, shape (4,) — shape (4,) 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
softplus2 Ran
ran on a synthesized input
davidtangGT/MEGNET/megnet/activations.py
code served (permissive licence) · get_code("b72502cbc4652705")
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 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 tensorflow.keras.backend as kb
import numpy as np

# Create a small test tensor
# The function uses kb.relu, kb.log, kb.exp, kb.abs which all work on tensors
x_input = tf.constant([[-2.0, -1.0, 0.0, 1.0],
                       [2.0, 0.5, -0.5, 3.0]], dtype=tf.float32)

ARGS = {
    "x": x_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 could not observe it (import:TypeError)
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
sparse_to_dense Ran
ran on a synthesized input
machine-reasoning-ufrgs/graph-neural-networks/util.py
code served (permissive licence) · get_code("7994f503ff3f8886")
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 (3, 4) 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

# Construct a sparse matrix representation
# M_sparse = (M_i, M_v, M_shape)
# M_i: list of (i, j) index tuples
# M_v: list of values corresponding to those indices
# M_shape: (n, m) shape of the resulting dense matrix

M_i = [(0, 0), (0, 2), (1, 1), (2, 3)]
M_v = [1.5, 2.3, 4.1, 3.7]
M_shape = (3, 4)

M_sparse = (M_i, M_v, M_shape)

ARGS = {
    "M_sparse": M_sparse,
    "default": 0.0
}
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 (3, 4) — shape (3, 4) 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
summarize_times Ran
ran on a synthesized input
mylonasc/tf-gnns/benchmarks/ogbg_molhiv/common.py
code served (permissive licence) · get_code("444ab2a8d8818a53")
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 numpy as np

# Construct valid arguments for summarize_times
step_times_ms = [10.5, 12.3, 11.8, 10.2, 13.1, 9.9, 11.5, 12.7]

ARGS = {
    'step_times_ms': step_times_ms
}
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 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
to_matrix Ran
ran on a synthesized input
machine-reasoning-ufrgs/graph-neural-networks/neurosat/generator.py
code served (permissive licence) · get_code("9391c2ef8916602d")
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 (6, 4) 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

# Construct a small SAT instance in list format
# n = 3 variables (x0, x1, x2)
# m = 4 clauses
# Each clause is a list of literals
# Literal format: positive integer i means xi, negative integer -i means ¬xi

n = 3
m = 4

# Formula F with 4 clauses:
# C0: x0 ∨ ¬x1           -> [1, -2]
# C1: ¬x0 ∨ x2           -> [-1, 3]
# C2: x1 ∨ x2            -> [2, 3]
# C3: ¬x1 ∨ ¬x2          -> [-2, -3]

F = [
    [1, -2],
    [-1, 3],
    [2, 3],
    [-2, -3]
]

ARGS = {
    "n": n,
    "m": m,
    "F": F
}
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 (6, 4) — shape (6, 4) 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
BaseModel Not yet run
unverified (harvested, no recorded run)
amaleki2/graph_networks/src/modules.py
pointer only (licence: NONE) · get_code("690a776c071f826a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amaleki2/graph_networks 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.

EdgeModel Not yet run
unverified (harvested, no recorded run)
amaleki2/graph_networks/src/modules.py
pointer only (licence: NONE) · get_code("eca4d5c0e04f01b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amaleki2/graph_networks 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.

GlobalModel Not yet run
unverified (harvested, no recorded run)
amaleki2/graph_networks/src/modules.py
pointer only (licence: NONE) · get_code("c79feac3c63518bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amaleki2/graph_networks 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.

GraphNetwork Not yet run
unverified (harvested, no recorded run)
TQCAI/graph_nets_pytorch/modules.py
pointer only (licence: NONE) · get_code("6fd107ff14ac86bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TQCAI/graph_nets_pytorch 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.

GraphNetwork Not yet run
unverified (harvested, no recorded run)
amaleki2/graph_networks/src/modules.py
pointer only (licence: NONE) · get_code("5bbc9573fbe03c59")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amaleki2/graph_networks 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.

NodeModel Not yet run
unverified (harvested, no recorded run)
amaleki2/graph_networks/src/modules.py
pointer only (licence: NONE) · get_code("c4aeeb542f565ba2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amaleki2/graph_networks 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.

get_topic Not yet run
unverified (harvested, no recorded run)
mylonasc/tf-gnns/tf_gnns/agent_docs.py
code served (permissive licence) · get_code("866272bf984241cd")
How it ran

no invocation recorded.

make_framework_samples Not yet run
unverified (harvested, no recorded run)
mylonasc/tf-gnns/benchmarks/ogbg_molhiv/data.py
code served (permissive licence) · get_code("77730fffb44065a5")
How it ran

no invocation recorded.

make_graph_tuple_from_graph_list Not yet run
unverified (harvested, no recorded run)
mylonasc/tf-gnns/tf_gnns/tfgnns_datastructures.py
code served (permissive licence) · get_code("acc81d203eb667dc")
How it ran

no invocation recorded.

search Not yet run
unverified (harvested, no recorded run)
mylonasc/tf-gnns/tf_gnns/agent_docs.py
code served (permissive licence) · get_code("bba2920bf9e6ce2d")
How it ran

no invocation recorded.

unsorted_segment_max_or_zero Not yet run
unverified (harvested, no recorded run)
mylonasc/tf-gnns/tf_gnns/graphnet_utils.py
code served (permissive licence) · get_code("30dd2468e72fd7e4")
How it ran

no invocation recorded.

unsorted_segment_min_or_zero Not yet run
unverified (harvested, no recorded run)
mylonasc/tf-gnns/tf_gnns/graphnet_utils.py
code served (permissive licence) · get_code("9ee2d09dfb917e7d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 51 samples lifted from this paper's linked repositories, 51 carry a function identity and 0 do not. Of the 51 distinct functions with an identity, 11 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 11 later) and 40 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
mean_squared_error_with_scale 2 other papers
2 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
2206.04968 (2022-06)
What Information is Necessary and Sufficient to Predict Materials Properties using Machine Learning?
softplus2 2 other papers
2 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
2206.04968 (2022-06)
What Information is Necessary and Sufficient to Predict Materials Properties using Machine Learning?
GraphMapFeatures 1 other paper
1 later
2606.17022 (2026-06)
Learning the Geometry of Data: A Mathematical Review of Shape Space Analysis
accuracy 1 other paper
1 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
expand_1st 1 other paper
1 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
fast_label_binarize 1 other paper
1 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
mae 1 other paper
1 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
repeat_with_index 1 other paper
1 later
1812.05055 (2018-12)
Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals
segment_mean 1 other paper
1 later
2606.17022 (2026-06)
Learning the Geometry of Data: A Mathematical Review of Shape Space Analysis
segment_sum 1 other paper
1 later
2606.17022 (2026-06)
Learning the Geometry of Data: A Mathematical Review of Shape Space Analysis
segment_variance 1 other paper
1 later
2606.17022 (2026-06)
Learning the Geometry of Data: A Mathematical Review of Shape Space Analysis

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-24.

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

Artificial intelligence (AI) has undergone a renaissance recently, making major progress in key domains such as vision, language, control, and decision-making. This has been due, in part, to cheap data and cheap compute resources, which have fit the natural strengths of deep learning. However, many defining characteristics of human intelligence, which developed under much different pressures, remain out of reach for current approaches. In particular, generalizing beyond one's experiences-a hallmark of human intelligence from infancy-remains a formidable challenge for modern AI. The following is part position paper, part review, and part unification. We argue that combinatorial generalization must be a top priority for AI to achieve human-like abilities, and that structured representations and computations are key to realizing this objective. Just as biology uses nature and nurture cooperatively, we reject the false choice between "hand-engineering" and "end-to-end" learning, and instead advocate for an approach which benefits from their complementary strengths. We explore how using relational inductive biases within deep learning architectures can facilitate learning about entities, relations, and rules for composing them. We present a new building block for the AI toolkit with a strong relational inductive bias-the graph network -which generalizes and extends various approaches for neural networks that operate on graphs, and provides a straightforward interface for manipulating structured knowledge and producing structured behaviors. We discuss how graph networks can support relational reasoning and combinatorial generalization, laying the foundation for more sophisticated, interpretable, and flexible patterns of reasoning. As a companion to this paper, we have also released an open-source software library for building graph networks, with demonstrations of how to use them in practice.

For agents

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

get_harvested_code_for_paper("1806.01261")
get_code_for_paper("1806.01261")
have("1806.01261")

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

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

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

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

Connect an agent — have() is free.