| acc |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/mbchern.py code served (permissive licence) · get_code("c9a29725eb376391") How it ranRan 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
import numpy as np
torch.manual_seed(0)
# Create a simple binary classification model
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 1)
def forward(self, x):
return self.linear(x)
# Create model instance
model = SimpleModel()
# Create small sample data
# X: batch of 6 samples with 4 features
X = torch.randn(6, 4)
# y: binary labels (0 or 1) for 6 samples
y = torch.tensor([0, 1, 0, 1, 1, 0], dtype=torch.long)
# Device (CPU only)
device = 'cpu'
# Batch size
bs = 2
ARGS = {
'model': model,
'X': X,
'y': y,
'device': device,
'bs': bs
}
- 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 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
|
| build_torus_sparse |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/phase_a.py code served (permissive licence) · get_code("9d83776b7f7968aa") How it ranRan 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 numpy as np
torch.manual_seed(0)
ARGS = {
'L': 2,
'device': 'cpu',
'dtype': torch.float64,
}
- 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 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
|
| cast_complex |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/phase_a.py code served (permissive licence) · get_code("24fcc4b6d0905aed") How it ranRan 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
torch.manual_seed(0)
# Create sparse tensors for B1, cob1, B3
# These need to be sparse COO tensors that can be coalesced
nE = 4
nF = 3
# B1: sparse tensor of shape (nF, nE)
indices_B1 = torch.tensor([[0, 1, 2], [0, 1, 2]])
values_B1 = torch.randn(3)
B1 = torch.sparse_coo_tensor(indices_B1, values_B1, (nF, nE), dtype=torch.float64)
# cob1: sparse tensor of shape (nF, nE)
indices_cob1 = torch.tensor([[0, 1, 2], [1, 2, 3]])
values_cob1 = torch.randn(3)
cob1 = torch.sparse_coo_tensor(indices_cob1, values_cob1, (nF, nE), dtype=torch.float64)
# B3: sparse tensor of shape (nE, nF)
indices_B3 = torch.tensor([[0, 1, 2], [0, 1, 2]])
values_B3 = torch.randn(3)
B3 = torch.sparse_coo_tensor(indices_B3, values_B3, (nE, nF), dtype=torch.float64)
# w: dense tensor of shape (nE, 1)
w = torch.randn(nE, 1, dtype=torch.float64)
# Build the K dictionary
K = {
'B1': B1,
'cob1': cob1,
'B3': B3,
'w': w,
'nE': nE,
}
# dtype parameter for casting
dtype = torch.float32
ARGS = {
'K': K,
'dtype': dtype,
}
- 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 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
|
| chern_scalar |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/haldane.py code served (permissive licence) · get_code("0034950fca0dface") How it ranRan 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, 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 math
torch.manual_seed(0)
# Create a small complex tensor for the scalar field
# Shape: (batch_size, channels, height, width)
# The function uses torch.roll on dimensions 2 and 3, so we need at least 4D
s = torch.randn(2, 3, 4, 5, dtype=torch.complex64)
ARGS = {
"s": s,
"wrap": True
}
- 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 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: none by the harness; any seed is in the setup block
|
| curl |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/phase_b.py code served (permissive licence) · get_code("414763c3192e7e4a") How it ranRan 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 5, dtype family float, shape (2, 4, 3, 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 torch
import numpy as np
torch.manual_seed(0)
# The function curl takes a tensor u with shape (..., 3)
# where the last dimension contains [ux, uy, uz] components
# and performs finite difference operations along axes 1, 2, 3
# This suggests u should have at least 4 dimensions: (batch, x, y, z, 3)
# Create a small test tensor with shape (2, 4, 3, 5, 3)
# Dimensions: batch=2, x=4, y=3, z=5, components=3
u = torch.randn(2, 4, 3, 5, 3)
ARGS = {
'u': u
}
- 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 Tensor, ndim 5, dtype family float, shape (2, 4, 3, 5, 3) — shape (2, 4, 3, 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: none by the harness; any seed is in the setup block
|
| dA |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
nssprogrammer/cup-nn/experiments/phase_a.py code served (permissive licence) · get_code("42d9caab33ffccb3") How it ranRan 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, 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 torch
torch.manual_seed(0)
# The function dA takes K and A as parameters
# K is a dict with key 'cob1' that should be a sparse matrix
# A is a tensor that will be transposed and used in sparse matrix multiplication
# Create a small sparse matrix for K['cob1']
# sparse.mm expects (M, N) x (N, P) -> (M, P)
# Let's make it 4x3 sparse matrix
indices = torch.tensor([[0, 1, 2, 3], [0, 1, 2, 0]])
values = torch.tensor([1.0, 2.0, 3.0, 4.0])
cob1_sparse = torch.sparse_coo_tensor(indices, values, (4, 3))
K = {'cob1': cob1_sparse}
# Create A as a regular tensor
# A.t() will transpose it, so if A is (2, 4), A.t() is (4, 2)
# For sparse.mm(K['cob1'], A.t()).t() to work:
# K['cob1'] is (4, 3), A.t() should be (3, 2), so A should be (2, 3)
A = torch.randn(2, 3)
ARGS = {
'K': K,
'A': A
}
- 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, 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
|
| gauss_link |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
nssprogrammer/cup-nn/experiments/d4_link.py code served (permissive licence) · get_code("b27e3b3df3f7acd6") How it ranRan 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
import torch
import torch.nn as nn
import math
torch.manual_seed(0)
# Create two curves as numpy arrays
# Each curve is represented as N points in 3D space
# c1 and c2 should be 2D arrays where each row is a point coordinate
c1 = np.array([
[0.0, 0.0, 0.0],
[1.0, 0.5, 0.2],
[2.0, 1.0, 0.5],
[3.0, 1.2, 0.8]
], dtype=np.float64)
c2 = np.array([
[0.1, 0.1, 0.0],
[1.1, 0.6, 0.3],
[2.1, 1.1, 0.6]
], dtype=np.float64)
ARGS = {
"c1": c1,
"c2": c2
}
- 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 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
|
| gen_fields |
Ran ran, honoured the contract we drafted |
nssprogrammer/cup-nn/experiments/noise_ood.py code served (permissive licence) · get_code("c670aac43c3dac65") How it ranRan 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 5, dtype family float, shape (2, 3, 4, 4, 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 torch
import numpy as np
torch.manual_seed(0)
ARGS = {
"N": 2,
"L": 4,
"ell": 1.5,
"seed": 42,
}
- 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 Tensor, ndim 5, dtype family float, shape (2, 3, 4, 4, 4) — shape (2, 3, 4, 4, 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
|
| helicity |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/noise_ood.py code served (permissive licence) · get_code("f19019aca906c1e8") How it ranRan 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 1, dtype family float, shape (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 numpy as np
torch.manual_seed(0)
# The function `helicity` takes a single parameter `u`
# Looking at the function body:
# - u.shape[-1] is accessed, so u needs a last dimension
# - u has shape (batch, 3, L, L, L) based on how it's used in spec_curl
# - U[:, 0], U[:, 1], U[:, 2] are accessed, so dimension 1 has size 3 (velocity components)
# - operations happen on dims (2, 3, 4) which are the spatial dimensions
# - u needs to be a real tensor that can be FFT'd
# Create a small velocity field: batch_size=2, 3 components, spatial_size=4
batch_size = 2
spatial_size = 4
u = torch.randn(batch_size, 3, spatial_size, spatial_size, spatial_size, dtype=torch.float32)
ARGS = {
'u': u
}
- 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 Tensor, ndim 1, dtype family float, shape (2,) — shape (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
|
| helicity |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/phase_b.py code served (permissive licence) · get_code("e811e880b9741c4a") How it ranRan 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 1, dtype family float, shape (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 numpy as np
torch.manual_seed(0)
# The function 'helicity' takes a single parameter 'u'
# Looking at the function body:
# - u is indexed as u[..., 0], u[..., 1], u[..., 2] (last dimension has 3 components)
# - curl(u) operates on u with operations on axes 1, 2, 3, 4
# - The result is summed over dim=(1, 2, 3, 4)
# So u needs shape (batch, dim1, dim2, dim3, 3) where 3 is the vector component
# With batch=2, and distinct dimensions for probing: (2, 4, 5, 6, 3)
u = torch.randn(2, 4, 5, 6, 3)
ARGS = {
'u': u
}
- 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 Tensor, ndim 1, dtype family float, shape (2,) — shape (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
|
| make_dataset |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/d4_link.py code served (permissive licence) · get_code("3bd1fe1adf0e50f2") How it ranRan 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 torch
import torch.nn as nn
torch.manual_seed(0)
ARGS = {
"N": 2,
"L": 4,
"seed": 0,
"tol": 0.08
}
- 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
|
| make_dataset |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/haldane.py code served (permissive licence) · get_code("34a459642a874ddf") How it ranRan 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 torch
import torch.nn as nn
torch.manual_seed(0)
np.random.seed(0)
ARGS = {
"N": 2,
"L": 16,
"L_ref": 32,
"K": 2,
"seed": 42,
"scramble": 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 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
|
| make_dataset |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/mbchern.py code served (permissive licence) · get_code("b1dd489cc90adc6e") How it ranRan 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 torch
import torch.nn as nn
torch.manual_seed(0)
np.random.seed(0)
ARGS = {
"Nsamp": 2,
"N": 3,
"L": 4,
"seed": 0,
}
- 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
|
| mean_ci |
Ran ran, honoured the contract we drafted |
nssprogrammer/cup-nn/experiments/seedstats.py code served (permissive licence) · get_code("3a5341576d3b08fd") How it ranRan 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 numpy as np
import torch
import math
torch.manual_seed(0)
# mean_ci takes xs (array-like) and conf (confidence level)
# The function converts xs to numpy array, computes mean, std, and t-critical value
# It returns a tuple of (mean, std, margin_of_error)
# Create a small list of numeric values for xs
xs = [1.2, 2.3, 3.1, 4.5, 2.8]
# Confidence level (default is 0.95)
conf = 0.95
ARGS = {
"xs": xs,
"conf": conf
}
- 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, 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
|
| mutual_helicity |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/d4_link.py code served (permissive licence) · get_code("27ef96ba32eef420") How it ranRan 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 1, dtype family float, shape (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 numpy as np
import math
torch.manual_seed(0)
# J is indexed as J[:, 0:3] and J[:, 3:6], so it needs at least 6 channels
# Shape: (batch, 6, depth, height, width)
J = torch.randn(2, 6, 4, 4, 4)
# K is used as K[0], K[1], K[2] - appears to be wavenumber components
# Shape: (3, depth, height, width)
K = torch.randn(3, 4, 4, 4)
# k2 is used in division, so it's a scalar or tensor
# Represents k-squared (wavenumber magnitude squared)
k2 = torch.randn(4, 4, 4)
# inv_curl is a boolean flag
inv_curl = True
ARGS = {
"J": J,
"K": K,
"k2": k2,
"inv_curl": inv_curl
}
- 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 Tensor, ndim 1, dtype family float, shape (2,) — shape (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
|
| paired_t |
Ran ran, honoured the contract we drafted |
nssprogrammer/cup-nn/experiments/seedstats.py code served (permissive licence) · get_code("75e7be5921c31050") How it ranRan 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 numpy as np
import torch
import math
torch.manual_seed(0)
# paired_t takes two array-like arguments: a and b
# It converts them to numpy arrays of floats and computes a paired t-test
# The function doesn't call any methods on a or b directly; it just passes them to np.asarray()
# Create two small numpy arrays with distinct values for testing
a = np.array([1.2, 2.5, 3.1, 4.8])
b = np.array([1.0, 2.2, 2.9, 4.5])
ARGS = {
'a': a,
'b': b
}
- 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, 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
|
| plaquettes |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/phase_c.py code served (permissive licence) · get_code("435b795632404125") How it ranRan 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
import torch
import torch.nn as nn
torch.manual_seed(0)
# theta:(M,L,L,L,L,4) - batch size M=2, spatial dims L=4, 4 angle components
theta = torch.randn(2, 4, 4, 4, 4, 4)
ARGS = {
"theta": theta
}
- 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 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
|
| run_seeds |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/seedstats.py code served (permissive licence) · get_code("f6bcf1a6027ea803") How it ranRan 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 torch.nn as nn
torch.manual_seed(0)
# Define a simple build_eval function that takes a seed and returns
# a dict mapping model names to test accuracies
def build_eval(seed):
"""
Simulates building and evaluating models for a given seed.
Returns a dict with model names as keys and test accuracies as values.
"""
# Use seed to generate reproducible but different results
torch.manual_seed(seed)
# Return a dict with some model names and accuracy values
return {
"model_a": 0.85 + seed * 0.01,
"model_b": 0.90 + seed * 0.005,
"model_c": 0.78 + seed * 0.02,
}
# Define seeds as a list of integers
seeds = [0, 1, 2]
ARGS = {
"seeds": seeds,
"build_eval": build_eval,
}
- 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 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
|
| spec_curl |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/noise_ood.py code served (permissive licence) · get_code("b9a9e0b640213c0e") How it ranRan 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 5, dtype family float, shape (2, 3, 4, 4, 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 torch
import torch.nn as nn
import numpy as np
torch.manual_seed(0)
# spec_curl expects a tensor u with shape (batch, 3, L, L, L)
# where batch is the batch size, 3 is for the 3 velocity components (ux, uy, uz),
# and L is the spatial dimension
batch_size = 2
L = 4 # Small spatial dimension
# Create a random velocity field with shape (batch, 3, L, L, L)
# Each component is initialized with small random values
u = torch.randn(batch_size, 3, L, L, L)
ARGS = {
'u': u
}
- 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 Tensor, ndim 5, dtype family float, shape (2, 3, 4, 4, 4) — shape (2, 3, 4, 4, 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
|
| topo_charge |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/phase_c.py code served (permissive licence) · get_code("c00de7743381d45a") How it ranRan 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 1, dtype family float, shape (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 numpy as np
torch.manual_seed(0)
# theta has shape (M, L, L, L, L, 4)
# M is batch size, L is spatial dimension, last dimension is 4 for mu, nu, rho, sigma angles
M = 2
L = 4
theta = torch.randn(M, L, L, L, L, 4)
ARGS = {
"theta": theta
}
- 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 Tensor, ndim 1, dtype family float, shape (2,) — shape (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
|
| train |
Ran ran; our contract draft was wrong, not the code |
nssprogrammer/cup-nn/experiments/mbchern.py code served (permissive licence) · get_code("e970b3965de044c9") How it ranRan 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
import numpy as np
torch.manual_seed(0)
# Build a simple model that takes input and outputs scalar predictions
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.linear1 = nn.Linear(4, 8)
self.linear2 = nn.Linear(8, 1)
def forward(self, x):
x = torch.relu(self.linear1(x))
x = torch.sigmoid(self.linear2(x))
return x
# Create tiny training and test data
# Xtr shape: (batch_size=6, features=4)
Xtr = torch.randn(6, 4)
ytr = torch.randint(0, 2, (6,))
# Xte shape: (batch_size=4, features=4)
Xte = torch.randn(4, 4)
yte = torch.randint(0, 2, (4,))
# Create model instance
model = SimpleModel()
# Device (CPU only)
device = 'cpu'
ARGS = {
'model': model,
'Xtr': Xtr,
'ytr': ytr,
'Xte': Xte,
'yte': yte,
'device': device,
'steps': 100,
'lr': 0.002,
'bs': 2,
'ev': 20
}
- 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 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
|
| turbulent_fields |
Ran ran, honoured the contract we drafted |
nssprogrammer/cup-nn/experiments/phase_b.py code served (permissive licence) · get_code("fcc71d1c5d6bedf6") How it ranRan 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 5, dtype family float, shape (2, 4, 4, 4, 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 numpy as np
torch.manual_seed(0)
ARGS = {
'M': 2,
'L': 4,
'slope': -5.0 / 3.0,
'k_low': 1,
'k_high': 2,
'seed': 0,
'device': 'cpu'
}
- 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 Tensor, ndim 5, dtype family float, shape (2, 4, 4, 4, 3) — shape (2, 4, 4, 4, 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
|
| wrap |
Ran ran, violated the contract we drafted |
nssprogrammer/cup-nn/experiments/phase_c.py code served (permissive licence) · get_code("a853d9f70bf74b41") How it ranRan 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 (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
import torch
import torch.nn as nn
torch.manual_seed(0)
# The function wrap takes a single parameter 'x' and applies:
# (x + np.pi) % (2 * np.pi) - np.pi
# This works on numpy arrays or scalars
# Create a small numpy array to pass as x
x = np.array([0.5, 1.0, 2.0, -1.5, 3.14])
ARGS = {
"x": x
}
- 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 1, dtype family float, shape (5,) — shape (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
|
| chern_full |
Not yet run unverified (harvested, no recorded run) |
nssprogrammer/cup-nn/experiments/haldane.py code served (permissive licence) · get_code("8411990e631084a2") How it ran |