| analyze_traffic_light_with_clip |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/crop_traffic_lights.py code served (permissive licence) · get_code("a64dcc826fd7beed") 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 str. 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 numpy as np
import torch
import torch.nn as nn
from PIL import Image
from torchvision import transforms
torch.manual_seed(0)
# Create a minimal CLIP-like model that takes an image tensor and outputs logits
class MinimalCLIPModel(nn.Module):
def __init__(self):
super().__init__()
# Simple model that takes image tensor and outputs 5 class logits
self.fc = nn.Linear(3 * 32 * 32, 5)
def forward(self, x):
# x shape: (batch, 3, 32, 32)
batch_size = x.shape[0]
x = x.reshape(batch_size, -1)
logits = self.fc(x)
return logits
# Create a minimal transform that resizes and normalizes
transform = transforms.Compose([
transforms.Resize((32, 32)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
])
# Create a dummy traffic light image (RGB, 64x64)
dummy_image_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
dummy_image = Image.fromarray(dummy_image_array)
# Instantiate the model
model = MinimalCLIPModel()
model.eval()
# Class names for traffic light states
class_names = ['green', 'unknown', 'red', 'unknown', 'yellow']
# Use CPU device
device = 'cpu'
ARGS = {
'image': dummy_image,
'model': model,
'transform': transform,
'class_names': class_names,
'device': device
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_object |
Ran ran on a synthesized input |
nvidia-cosmos/cosmos-transfer1/cosmos_transfer1/checkpointer/safe_broadcast.py code served (permissive licence) · get_code("6b17f23178a2868f") 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.distributed as dist
import io
import pickle
torch.manual_seed(0)
# Mock the distributed process group since we're not in a real distributed setting
class MockProcessGroup:
pass
# We need to mock dist functions to avoid actual distributed operations
original_get_rank = dist.get_rank
original_broadcast = dist.broadcast
def mock_get_rank():
return 0
def mock_broadcast(tensor, src, group=None, async_op=False):
pass
dist.get_rank = mock_get_rank
dist.broadcast = mock_broadcast
# Create a simple object to broadcast
test_obj = {
"tensor": torch.randn(2, 4),
"list": [1, 2, 3],
"string": "test",
"nested": {"a": torch.ones(3, 2)}
}
# Define the arguments
ARGS = {
"obj": test_obj,
"src_rank": 0,
"group": dist.group.WORLD,
"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 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
|
| calculate_metrics |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/train_light_model.py code served (permissive licence) · get_code("55d080a2eba4d6b7") 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
# Set random seed for reproducibility
np.random.seed(0)
# Create sample data for classification metrics
y_true = [0, 1, 2, 1, 0, 2, 1, 0]
y_pred = [0, 1, 1, 1, 0, 2, 2, 0]
class_names = ['cat', 'dog', 'bird']
ARGS = {
'y_true': y_true,
'y_pred': y_pred,
'class_names': class_names
}
- 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
|
| estimate_ground_height |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/visualize_rds_hq.py code served (permissive licence) · get_code("7e236dc4ecb21240") 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 float32, 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
# Construct front_camera_pose as a 4x4 transformation matrix
# This represents the camera's position and orientation in world coordinates
front_camera_pose = np.array([
[1.0, 0.0, 0.0, 5.0], # x position = 5.0
[0.0, 1.0, 0.0, 3.0], # y position = 3.0
[0.0, 0.0, 1.0, 2.0], # z position = 2.0
[0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)
# Construct lane_lines as [N, 2, 3] array
# N=4 lane line segments, each with 2 points, each point has 3 coordinates (x, y, z)
lane_lines = np.array([
[[4.5, 2.8, 0.1], [4.2, 3.1, 0.15]], # lane line 1
[[5.2, 3.5, 0.2], [5.0, 3.2, 0.18]], # lane line 2
[[6.0, 2.0, 0.12], [5.8, 2.3, 0.14]], # lane line 3
[[4.0, 4.0, 0.11], [4.3, 3.8, 0.13]] # lane line 4
], dtype=np.float32)
ARGS = {
"front_camera_pose": front_camera_pose,
"lane_lines": lane_lines
}
- 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 float32, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| extract_clip_id_from_image_name |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/crop_traffic_lights_for_training.py code served (permissive licence) · get_code("af33c328c499d24b") 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 str. 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
# Construct valid arguments for extract_clip_id_from_image_name
# The function takes an image_name parameter and splits it by '.' to extract the clip ID
ARGS = {
"image_name": "clip_001.jpg"
}
- 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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
|
| get_nearest_lidar_indices |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/render_from_rds_hq.py code served (permissive licence) · get_code("574a2f62de49c221") 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 2, 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
torch.manual_seed(0)
# Analyzing the function:
# - high_indices: used in a for loop with int(round(hi / step))
# This suggests it's an iterable of numeric values
# - step: numeric value used as divisor, default=3
# Construct valid arguments
high_indices = [5, 10, 15, 22, 30] # list of integers representing high-res indices
ARGS = {
"high_indices": high_indices,
"step": 3
}
- 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 2, 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
|
| get_rectification_image_grid |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/rectify_ftheta_to_pinhole.py code served (permissive licence) · get_code("14680804773f0813") 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 3, dtype family float, shape (4, 3, 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)
class FThetaCamera(nn.Module):
def __init__(self, height=4, width=3):
super().__init__()
self.height = height
self.width = width
def ray2pixel(self, rays):
# rays: [N, 3]
# returns: [N, 2] pixel coordinates
batch_size = rays.shape[0]
return torch.randn(batch_size, 2)
def pixel2uv(self, pixels):
# pixels: [N, 2]
# returns: [N, 2] uv coordinates in range [0, 1]
batch_size = pixels.shape[0]
return torch.rand(batch_size, 2)
class PinholeCamera(nn.Module):
def __init__(self, height=4, width=3):
super().__init__()
self.height = height
self.width = width
def get_rays(self):
# returns: [H, W, 3] ray directions
return torch.randn(self.height, self.width, 3)
ftheta_camera_model = FThetaCamera(height=4, width=3)
pinhole_camera_model = PinholeCamera(height=4, width=3)
ARGS = {
"ftheta_camera_model": ftheta_camera_model,
"pinhole_camera_model": pinhole_camera_model,
}
- 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 3, dtype family float, shape (4, 3, 2) — shape (4, 3, 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
|
| grounding_pose |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/visualize_rds_hq.py code served (permissive licence) · get_code("39b2df8191427550") 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 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 numpy as np
# Create a valid 4x4 pose matrix (camera to world transformation)
# A valid pose matrix has rotation in top-left 3x3 and translation in top-right 3x1
input_pose = np.array([
[1.0, 0.0, 0.0, 5.0], # forward direction (1,0,0), x translation
[0.0, 1.0, 0.0, 3.0], # left direction (0,1,0), y translation
[0.0, 0.0, 1.0, 2.0], # up direction (0,0,1), z translation (height)
[0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)
# Reference height - optional float parameter
reference_height = 1.5
# Convention - either 'flu' or 'opencv'
convention = 'flu'
ARGS = {
'input_pose': input_pose,
'reference_height': reference_height,
'convention': convention
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (4, 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
|
| interpolate_pose |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/utils/bbox_utils.py code served (permissive licence) · get_code("0bf9492cb31ff028") 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 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 numpy as np
from scipy.spatial.transform import Rotation as R
# Create two valid 4x4 pose matrices (homogeneous transformation matrices)
# Each has a 3x3 rotation matrix in the top-left and a 3x1 translation vector in the right column
# Previous pose: identity with some translation
prev_pose = np.eye(4, dtype=np.float32)
prev_pose[:3, 3] = np.array([1.0, 2.0, 3.0], dtype=np.float32)
# Next pose: rotated and translated
next_pose = np.eye(4, dtype=np.float32)
rotation = R.from_euler('xyz', [10, 20, 30], degrees=True)
next_pose[:3, :3] = rotation.as_matrix().astype(np.float32)
next_pose[:3, 3] = np.array([4.0, 5.0, 6.0], dtype=np.float32)
# Interpolation factor
t = 0.5
ARGS = {
"prev_pose": prev_pose,
"next_pose": next_pose,
"t": t
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, 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
|
| load_clip_model |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/crop_traffic_lights.py code served (permissive licence) · get_code("2f19456eeaab8957") 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 torch.nn as nn
from torchvision import transforms
import tempfile
import os
torch.manual_seed(0)
# Create a minimal checkpoint file
checkpoint_data = {
'config': {
'clip_model': 'openai/clip-vit-base-patch32',
'hidden_dim': 512,
'dropout': 0.3
},
'class_names': ['red', 'yellow', 'green', 'off', 'unknown'],
'model_state_dict': {}
}
# Create a temporary file to hold the checkpoint
temp_dir = tempfile.gettempdir()
model_path = os.path.join(temp_dir, 'test_clip_model.pt')
torch.save(checkpoint_data, model_path)
ARGS = {
'model_path': model_path,
'device': 'cpu'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, torchvision, transformers — 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
|
| load_qwen_model |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/crop_traffic_lights.py code served (permissive licence) · get_code("6e674ab7a391a0d2") 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
from unittest.mock import Mock, MagicMock
import sys
torch.manual_seed(0)
# Create a minimal mock model that satisfies the function's usage
class MockQwen2_5_VLModel(torch.nn.Module):
def __init__(self):
super().__init__()
self.linear = torch.nn.Linear(4, 4)
@classmethod
def from_pretrained(cls, model_name, torch_dtype=None, device_map=None):
return cls()
def forward(self, input_ids):
return self.linear(input_ids)
# Create a minimal mock processor
class MockProcessor:
def __init__(self):
pass
@classmethod
def from_pretrained(cls, model_name):
return cls()
# Patch the transformers imports before the function is defined
sys.modules['transformers'].Qwen2_5_VLForConditionalGeneration = MockQwen2_5_VLModel
sys.modules['transformers'].AutoProcessor = MockProcessor
sys.modules['transformers'].AutoTokenizer = Mock()
sys.modules['transformers'].AutoModel = Mock()
ARGS = {
'device': 'cpu'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, transformers — 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
|
| quaternion_uniform_flip |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/utils/animation_utils.py code served (permissive licence) · get_code("7e675e35b8ade959") 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, 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
from copy import deepcopy
class Quaternion:
"""Stand-in class for quaternion objects with a .q attribute."""
def __init__(self, q_array):
self.q = q_array
# Create a list of quaternion objects
q1 = Quaternion(np.array([1.0, 0.0, 0.0, 0.0]))
q2 = Quaternion(np.array([0.707, 0.707, 0.0, 0.0]))
q3 = Quaternion(np.array([0.0, 1.0, 0.0, 0.0]))
q_list = [q1, q2, q3]
ARGS = {
"q_list": q_list
}
- 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 list, ndim 1, dtype family float — 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
|
| simple_confusion_matrix |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/train_light_model.py code served (permissive licence) · get_code("8381210aed1abe7f") 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 2, dtype family int, shape (3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Construct arguments for simple_confusion_matrix
y_true = np.array([0, 1, 2, 1, 0, 2, 1, 0], dtype=int)
y_pred = np.array([0, 1, 1, 1, 0, 2, 0, 0], dtype=int)
num_classes = 3
ARGS = {
"y_true": y_true,
"y_pred": y_pred,
"num_classes": num_classes,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family int, shape (3, 3) — shape (3, 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
|
| simple_train_test_split |
Ran ran on a synthesized input |
nv-tlabs/cosmos-drive-dreams/cosmos-drive-dreams-toolkits/train_light_model.py code served (permissive licence) · get_code("c7633667302f3088") 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 random
# Set seeds for reproducibility
random.seed(42)
np.random.seed(42)
# Create sample data
# indices: a list of indices (typically 0, 1, 2, ...)
indices = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
# labels: a list of class labels corresponding to each index
# Using 3 classes with stratified distribution
labels = [0, 0, 0, 1, 1, 1, 2, 2, 2, 2]
# Define arguments for the function
ARGS = {
"indices": indices,
"labels": labels,
"test_size": 0.2,
"random_state": 42
}
- 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 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
|
| scatter_full_optim_state_dict |
Not yet run unverified (harvested, no recorded run) |
nvidia-cosmos/cosmos-transfer1/cosmos_transfer1/checkpointer/fsdp_optim_fix.py code served (permissive licence) · get_code("00c0672f3febbf9f") How it ran |