| FanBeamGeometry |
Ran ran on a synthesized input · constructed an object; no result was computed |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("58b610e52744cedc") 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 an instance of its own class, FanBeamGeometry: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import math
from dataclasses import dataclass
from torch import Tensor
torch.manual_seed(0)
ARGS = {
"image_size": 256,
"num_views": 90,
"detector_bins": 512,
"angular_range_degrees": 360.0,
"source_to_iso_mm": 541.0,
"source_to_detector_mm": 949.0,
"detector_pixel_mm": 0.248,
}
- 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 FanBeamGeometry — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FanBeamGeometry 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
|
| KernelRidgePredictor |
Ran ran on a synthesized input · constructed an object; no result was computed |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("6becd42848887da5") 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 an instance of its own class, KernelRidgePredictor: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Construct tiny tensors for the KernelRidgePredictor
# X: shape (image_size^2, N) - maps from feature space to image space
# Y: shape (sino_flat_dim, N) - maps from sinogram space to feature space
# image_size: int - dimension of output image (image_size x image_size)
image_size = 4
N = 3 # number of basis functions
sino_flat_dim = 8 # flattened sinogram dimension
image_flat_dim = image_size * image_size # 16
# Create X: (16, 3) - maps features to image pixels
X = torch.randn(image_flat_dim, N)
# Create Y: (8, 3) - maps sinogram to features
Y = torch.randn(sino_flat_dim, N)
# Lambda for regularization
lam = 0.1
ARGS = {
"X": X,
"Y": Y,
"lam": lam,
"image_size": image_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 KernelRidgePredictor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KernelRidgePredictor 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
|
| fan_beam_forward |
Ran ran; our contract draft was wrong, not the code |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("8f8ca781f4f477b6") 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 (3, 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 torch
import math
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self):
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self):
"""Half-width of the reconstructed FOV in mm."""
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
# Create a small test image: 4x4 tensor
image = torch.randn(4, 4, dtype=torch.float32)
# Create geometry with reasonable fan-beam parameters
geometry = FanBeamGeometry(
image_size=4,
num_views=3,
detector_bins=5,
angular_range_degrees=180.0,
source_to_iso_mm=500.0,
source_to_detector_mm=1000.0,
detector_pixel_mm=1.0
)
ARGS = {
"image": image,
"geometry": geometry
}
- 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 (3, 5) — shape (3, 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
|
| fit_kernel_ridge_from_pool |
Ran ran; our contract draft was wrong, not the code |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("8dd27deea375a4b8") 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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 math
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self):
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self) -> float:
"""Half-width of the reconstructed FOV in mm."""
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
# Create a small geometry object
geometry = FanBeamGeometry(
image_size=4,
num_views=3,
detector_bins=5,
angular_range_degrees=180.0,
source_to_iso_mm=500.0,
source_to_detector_mm=1000.0,
detector_pixel_mm=0.5
)
# Create a small pool of (image, sinogram) tuples
# image: (4, 4) flattened to 16
# sinogram: (3, 5) flattened to 15
pool = [
(torch.randn(4, 4), torch.randn(3, 5)),
(torch.randn(4, 4), torch.randn(3, 5))
]
# Small regularization parameter
lam = 0.01
# CPU device
device = torch.device('cpu')
ARGS = {
'geometry': geometry,
'pool': pool,
'lam': lam,
'device': device
}
- 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 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
|
| fit_ridge_from_pool |
Ran ran; our contract draft was wrong, not the code |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("f3c10d74c41ce629") 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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 math
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self):
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self):
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
geometry = FanBeamGeometry(
image_size=4,
num_views=3,
detector_bins=5,
angular_range_degrees=180.0,
source_to_iso_mm=500.0,
source_to_detector_mm=1000.0,
detector_pixel_mm=1.0
)
num_measurements = geometry.num_views * geometry.detector_bins
num_pixels = geometry.image_size ** 2
batch_size = 2
pool = [
(torch.randn(geometry.image_size, geometry.image_size), torch.randn(geometry.num_views, geometry.detector_bins))
for _ in range(batch_size)
]
lam = 0.1
device = torch.device('cpu')
ARGS = {
'geometry': geometry,
'pool': pool,
'lam': lam,
'device': device
}
- 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 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
|
| iter_slice_dataset |
Ran ran; our contract draft was wrong, not the code |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("3d7fa89e0b638a96") 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 generator. 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 math
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self):
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self) -> float:
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
geometry = FanBeamGeometry(
image_size=4,
num_views=3,
detector_bins=5,
angular_range_degrees=180.0,
source_to_iso_mm=500.0,
source_to_detector_mm=1000.0,
detector_pixel_mm=1.0
)
ARGS = {
"geometry": geometry,
"num_slices": 2,
"seed": 42,
"ellipses_per_slice": (1, 3),
"device": torch.device("cpu")
}
- 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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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_geom |
Ran ran; our contract draft was wrong, not the code |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("d14529e2c3bd5177") 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 FanBeamGeometry. 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 math
from dataclasses import dataclass
torch.manual_seed(0)
ARGS = {
'cfg': {
'geometry': {
'image_size': 512,
'num_views': 180,
'detector_bins': 672,
'angular_range_degrees': 360.0,
'source_to_iso_mm': 541.0,
'source_to_detector_mm': 1085.6,
'detector_pixel_mm': 0.194
}
}
}
- 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 FanBeamGeometry — a FanBeamGeometry output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FanBeamGeometry 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
|
| materialize_pool |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("0a62beeb1e581b98") 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 list. 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 math
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self):
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self):
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
geom = FanBeamGeometry(
image_size=4,
num_views=3,
detector_bins=5,
angular_range_degrees=180.0,
source_to_iso_mm=500.0,
source_to_detector_mm=1000.0,
detector_pixel_mm=1.0
)
ARGS = {
'geom': geom,
'n': 2,
'seed': 42,
'ellipses': (1, 2),
'device': torch.device('cpu')
}
- 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 list — a list 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
|
| parameter_counts |
Ran ran, honoured the contract we drafted |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("98e93d417e2b332e") 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 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 math
from dataclasses import dataclass
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self):
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self) -> float:
"""Half-width of the reconstructed FOV in mm."""
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
torch.manual_seed(0)
geometry = FanBeamGeometry(
image_size=8,
num_views=16,
detector_bins=32,
angular_range_degrees=180.0,
source_to_iso_mm=600.0,
source_to_detector_mm=1000.0,
detector_pixel_mm=0.5
)
ARGS = {
"geometry": geometry
}
- 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 tuple, ndim 1, dtype family int — 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
|
| parker_cosine_weights |
Ran ran, honoured the contract we drafted |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("b40238223f2eb637") 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 (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 math
from dataclasses import dataclass
from torch import Tensor
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self) -> Tensor:
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self) -> float:
"""Half-width of the reconstructed FOV in mm."""
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
geometry = FanBeamGeometry(
image_size=64,
num_views=4,
detector_bins=3,
angular_range_degrees=200.0,
source_to_iso_mm=600.0,
source_to_detector_mm=1200.0,
detector_pixel_mm=0.5
)
ARGS = {
"geometry": geometry
}
- 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 (4, 3) — shape (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
|
| predict_fc |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("fd17fc6eccdabdff") 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 (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
torch.manual_seed(0)
# Analyze the function:
# - M: torch.Tensor, used with @ operator (matrix multiplication) with sino.flatten()
# - sino: torch.Tensor, flattened and used with @ operator
# - image_size: int, used to view output and create square image
# - use_relu: bool, optional parameter
# M @ sino.flatten() suggests:
# - sino.flatten() produces a 1D tensor
# - M must be a 2D tensor where M's columns match sino's flattened size
# - Result is reshaped to (image_size, image_size)
# So if output is (image_size, image_size), M should be (image_size*image_size, sino_flattened_size)
image_size = 4
sino_height = 2
sino_width = 3
# sino when flattened will have size sino_height * sino_width = 6
sino_flattened_size = sino_height * sino_width
# M should be (image_size * image_size, sino_flattened_size)
# which is (16, 6) for our case
M = torch.randn(image_size * image_size, sino_flattened_size)
# sino should be (sino_height, sino_width)
sino = torch.randn(sino_height, sino_width)
ARGS = {
"M": M,
"sino": sino,
"image_size": image_size,
"use_relu": True,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (4, 4) — shape (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
|
| ramp_filter |
Ran ran, honoured the contract we drafted |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("253bb3e433387c9e") 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 (8,) 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
from torch import Tensor
torch.manual_seed(0)
ARGS = {
"num_bins": 8
}
- 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 1, dtype family float, shape (8,) — shape (8,) 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
|
| random_phantom |
Ran ran, honoured the contract we drafted |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("ae2fa44c68d48f77") 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 (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 math
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class FanBeamGeometry:
image_size: int
num_views: int
detector_bins: int
angular_range_degrees: float
source_to_iso_mm: float
source_to_detector_mm: float
detector_pixel_mm: float
@property
def angles_rad(self) -> torch.Tensor:
end = self.angular_range_degrees * math.pi / 180.0
return torch.linspace(0.0, end, self.num_views, dtype=torch.float32)
@property
def fov_radius_mm(self) -> float:
"""Half-width of the reconstructed FOV in mm."""
return 0.5 * self.detector_bins * self.detector_pixel_mm * self.source_to_iso_mm / self.source_to_detector_mm
geometry = FanBeamGeometry(
image_size=4,
num_views=3,
detector_bins=5,
angular_range_degrees=180.0,
source_to_iso_mm=100.0,
source_to_detector_mm=200.0,
detector_pixel_mm=1.0
)
rng = torch.Generator()
rng.manual_seed(42)
ARGS = {
"geometry": geometry,
"rng": rng,
"ellipses_min": 2,
"ellipses_max": 5
}
- 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 (4, 4) — shape (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
|
| rrmse |
Ran ran, honoured the contract we drafted |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("d8fbfea2aeec52f3") 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 numpy as np
# Create small numpy arrays for pred and target
np.random.seed(0)
pred = np.random.randn(4, 3)
target = np.random.randn(4, 3) + 1.0 # offset to ensure non-zero values
ARGS = {
"pred": pred,
"target": target
}
- 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
|
| KnownOperatorReconstructor |
Not yet run unverified (harvested, no recorded run) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("b384a5e6de3ea02b") How it ran |
| main |
Not yet run unverified (harvested, no recorded run) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("5e43fdee48655eb5") How it ran |
| parse_args |
Not yet run unverified (harvested, no recorded run) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("0ef737f2c45b013b") How it ran |
| predict_fc_kernel |
Not yet run unverified (harvested, no recorded run) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("9261d984a06e9772") How it ran |
| train_ko_sgd |
Not yet run unverified (harvested, no recorded run) |
akmaier/KnownOperatorCT/src/fc_ko_sample_efficiency.py code served (permissive licence) · get_code("390414501da02da9") How it ran |