| check_model_name |
Ran ran; our contract draft was wrong, not the code |
prisma-multimodal/vit-prisma/src/vit_prisma/models/model_loader.py code served (permissive licence) · get_code("a1fc8248bd1ad1ba") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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 logging
# Test with a model name that exists in MODELS_MISSING_CONFIG
ARGS = {
"model_name": "open-clip:laion/CLIP-ViT-B-32-xlm-roberta-base-laion5B-s13B-b90k",
"allow_failing": False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| create_train_info |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/model_eval/evaluate_clip_benchmark.py code served (permissive licence) · get_code("44243798f6173648") 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
from typing import Any, Dict, Optional
torch.manual_seed(0)
# Minimal arguments for create_train_info
ARGS = {
"model_name": "vit-prisma-base",
"checkpoint_path": None,
"model_kwargs": None
}
- 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
|
| draw_circle |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/induction.py code served (permissive licence) · get_code("d41780f7d4f76a23") 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 (32, 32) 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)
# Create a small image (32x32 as per default im_size)
image = torch.zeros(32, 32)
# Define arguments for draw_circle
ARGS = {
"image": image,
"center_row": 16,
"center_col": 16,
"radius": 2,
"im_size": 32
}
- 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 (32, 32) — shape (32, 32) 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
|
| draw_circle_with_points |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/circle.py code served (permissive licence) · get_code("cd3823f34b47e5a7") 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 (3, 224, 224) 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)
# Create metadata dictionary with required keys
metadata = {
'image_size': 32,
'center': (16, 16),
'radius': 10,
'multiplier': 1,
'angle_range': np.array([0, 45, 90, 135, 180, 225, 270, 315])
}
# Define arguments for the function
ARGS = {
'angle1': 45,
'angle2': 90,
'metadata': metadata,
'model_type': 'pretrained_transformer'
}
- 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 Tensor, ndim 3, dtype family float, shape (3, 224, 224) — shape (3, 224, 224) 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
|
| draw_line |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/induction.py code served (permissive licence) · get_code("92ed88c91dec647a") 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 (32, 32) 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)
# Create a small image tensor (32x32 as per default im_size)
image = torch.zeros(32, 32)
# Define arguments for draw_line function
ARGS = {
'image': image,
'center_row': 16,
'center_col': 16,
'line_length': 4,
'im_size': 32
}
- 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 (32, 32) — shape (32, 32) 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
|
| draw_x |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/induction.py code served (permissive licence) · get_code("187a24f916bfbe42") 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 (32, 32) 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 modifies a 2D image array/tensor by drawing an X pattern
# It uses indexing with integer positions, so we need a 2D array
# The function expects:
# - image: a 2D array that supports indexing and assignment
# - center_row, center_col: integers for center position
# - x_length: integer for the length of the X
# - im_size: integer for image size (used as default, not directly in function body)
# Create a 2D numpy array (image) with im_size dimensions
im_size = 32
image = np.zeros((im_size, im_size), dtype=np.float32)
# Set center position safely within bounds
center_row = im_size // 2
center_col = im_size // 2
# Set x_length
x_length = 5
ARGS = {
"image": image,
"center_row": center_row,
"center_col": center_col,
"x_length": x_length,
"im_size": im_size
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (32, 32) — shape (32, 32) 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_and_parse_text_labels |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/imagenet_dataset.py code served (permissive licence) · get_code("ee86a4895f763cc5") 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 torch
import numpy as np
# Analyze the function: extract_and_parse_text_labels
# - Takes imagenet_index parameter
# - Iterates over imagenet_index.values()
# - Checks if value is a list with len > 1
# - Accesses value[1] and calls .replace('_', ' ').split() on it
# - Capitalizes each word and joins them
# - Returns list of parsed strings
# imagenet_index should be a dict where:
# - values are lists with at least 2 elements
# - the second element (index 1) is a string containing underscores or spaces
imagenet_index = {
'n00000001': ['synset1', 'dog_breed_small', 'description1'],
'n00000002': ['synset2', 'cat_type_large', 'description2'],
'n00000003': ['synset3', 'single'], # This should be skipped (len == 1)
'n00000004': ['synset4', 'bird_species_exotic', 'description4'],
}
ARGS = {
'imagenet_index': imagenet_index
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family 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
|
| get_activation_fn |
Ran ran; our contract draft was wrong, not the code |
prisma-multimodal/vit-prisma/src/vit_prisma/sae/sae.py code served (permissive licence) · get_code("bd6e1088e609f3eb") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned TopK. 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
from torch import nn
import logging
torch.manual_seed(0)
# Test case 1: 'relu' activation
ARGS_1 = {
'activation_fn': 'relu',
}
# Test case 2: 'tanh-relu' activation
ARGS_2 = {
'activation_fn': 'tanh-relu',
}
# Test case 3: 'topk' activation with k parameter
ARGS_3 = {
'activation_fn': 'topk',
'k': 2,
'postact_fn': nn.ReLU(),
}
# Test case 4: 'topk' activation with custom postact_fn
ARGS_4 = {
'activation_fn': 'topk',
'k': 3,
'postact_fn': nn.Tanh(),
}
# Use the most comprehensive test case as the main ARGS
ARGS = ARGS_3
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type TopK — a TopK output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TopK 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_cc_dataloaders |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/conceptual_captions.py code served (permissive licence) · get_code("0d68e4cb26762d11") 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 torch
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
from PIL import Image
import pandas as pd
from pathlib import Path
import tempfile
import os
torch.manual_seed(0)
# Create a temporary directory structure for the mock dataset
temp_dir = tempfile.mkdtemp()
root_dir = temp_dir
# Create Train and Validation subdirectories
train_dir = Path(root_dir) / 'Train'
val_dir = Path(root_dir) / 'Validation'
train_dir.mkdir(exist_ok=True)
val_dir.mkdir(exist_ok=True)
# Create nested directories for image organization (first 3 chars of image_id)
for subdir in ['000', '001']:
(train_dir / subdir).mkdir(exist_ok=True)
(val_dir / subdir).mkdir(exist_ok=True)
# Create mock images
def create_mock_image(path):
img = Image.new('RGB', (224, 224), color='red')
img.save(path)
# Create training images and labels
train_labels = []
for i in range(2):
img_id = f'{i:09d}'
subdir = img_id[:3]
img_path = train_dir / subdir / f'{img_id}-0.jpg'
create_mock_image(img_path)
train_labels.append({'image_id': img_id, 'caption': f'A training image {i}'})
train_df = pd.DataFrame(train_labels)
train_labels_path = Path(root_dir) / 'Image_Labels_Subset_Train_GCC-Labels-training.tsv'
train_df.to_csv(train_labels_path, sep='\t', index=False, header=False)
# Create validation images and labels
val_labels = []
for i in range(2):
img_id = f'{100 + i:09d}'
subdir = img_id[:3]
img_path = val_dir / subdir / f'{img_id}-0.jpg'
create_mock_image(img_path)
val_labels.append({'image_id': img_id, 'caption': f'A validation image {i}'})
val_df = pd.DataFrame(val_labels)
val_labels_path = Path(root_dir) / 'Image_Labels_Subset_Val_GCC-Labels-validation.tsv'
val_df.to_csv(val_labels_path, sep='\t', index=False, header=False)
ARGS = {
'root_dir': root_dir,
'batch_size': 2,
'num_workers': 0,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, pandas, torch, torchvision — 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
|
| get_imagenet_index_to_name |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/imagenet_dataset.py code served (permissive licence) · get_code("b62018180f976b10") 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 os
import json
import tempfile
# Create a temporary directory with a mock imagenet_index.json file
temp_dir = tempfile.mkdtemp()
imagenet_json_path = os.path.join(temp_dir, 'imagenet_index.json')
# Create a small mock imagenet index file
mock_index = {
"0": ["n01440764", "tench"],
"1": ["n01443537", "goldfish"],
"2": ["n01484850", "great_white_shark"]
}
with open(imagenet_json_path, 'w') as f:
json.dump(mock_index, f)
# Define ARGS with both test cases: with and without imagenet_path
# We'll use the path version since it's more concrete
ARGS = {
'imagenet_path': temp_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- vit_prisma — 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
|
| get_imagenet_transforms_clip |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/imagenet_dataset.py code served (permissive licence) · get_code("d1b187c5b98793b5") 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 Compose. 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
from torchvision import transforms
from PIL import Image
import numpy as np
torch.manual_seed(0)
# Create a minimal mock processor that has the required attributes
class MockImageProcessor:
def __init__(self):
self.image_mean = [0.485, 0.456, 0.406]
self.image_std = [0.229, 0.224, 0.225]
class MockDinoProcessor:
def __init__(self):
self.image_mean = [0.5, 0.5, 0.5]
self.image_std = [0.5, 0.5, 0.5]
class MockCLIPProcessor:
def __init__(self):
self.image_processor = MockImageProcessor()
# Mock the from_pretrained methods
def mock_vit_processor_from_pretrained(model_name):
return MockDinoProcessor()
def mock_clip_processor_from_pretrained(model_name):
return MockCLIPProcessor()
# Patch transformers module before importing
import sys
from unittest.mock import MagicMock
mock_transformers = MagicMock()
mock_transformers.ViTImageProcessor.from_pretrained = mock_vit_processor_from_pretrained
mock_transformers.CLIPProcessor.from_pretrained = mock_clip_processor_from_pretrained
sys.modules['transformers'] = mock_transformers
ARGS = {
"model_name": "openai/clip-vit-base-patch32",
"size": 224
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy, torch, torchvision, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
|
| plot_four_objects |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/polygenic_induction.py code served (permissive licence) · get_code("6237c44a5a1559b3") 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 (64, 64) 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
def draw_circle(image, x, y, im_size=64):
"""Stand-in drawing function that modifies image in place"""
y_int, x_int = int(y), int(x)
if 0 <= y_int < im_size and 0 <= x_int < im_size:
image[y_int, x_int] = 1.0
def draw_square(image, x, y, im_size=64):
"""Stand-in drawing function that modifies image in place"""
y_int, x_int = int(y), int(x)
if 0 <= y_int < im_size and 0 <= x_int < im_size:
image[y_int, x_int] = 0.5
def draw_triangle(image, x, y, im_size=64):
"""Stand-in drawing function that modifies image in place"""
y_int, x_int = int(y), int(x)
if 0 <= y_int < im_size and 0 <= x_int < im_size:
image[y_int, x_int] = 0.8
def draw_line(image, x, y, im_size=64):
"""Stand-in drawing function that modifies image in place"""
y_int, x_int = int(y), int(x)
if 0 <= y_int < im_size and 0 <= x_int < im_size:
image[y_int, x_int] = 0.3
ARGS = {
"A": draw_circle,
"B": draw_square,
"C": draw_triangle,
"D": draw_line,
"Ax": 10,
"Ay": 15,
"Bx": 25,
"By": 30,
"Cx": 40,
"Cy": 45,
"Dx": 55,
"Dy": 50,
"vertical": False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (64, 64) — shape (64, 64) 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_test_dataset |
Ran ran on a synthesized input |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/dsprites.py code served (permissive licence) · get_code("627da91f7fee55bf") 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
from torch.utils.data import Dataset, Subset
from sklearn.model_selection import train_test_split
torch.manual_seed(0)
class SimpleDataset(Dataset):
def __init__(self, size=10):
self.size = size
self.data = torch.randn(size, 4)
self.labels = torch.randint(0, 2, (size,))
def __len__(self):
return self.size
def __getitem__(self, idx):
return self.data[idx], self.labels[idx]
dataset = SimpleDataset(size=10)
ARGS = {
'dataset': dataset,
'test_split': 0.25
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, sklearn, 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
|
| accuracy |
Not yet run unverified (harvested, no recorded run) |
soniajoseph/vit-prisma/src/vit_prisma/model_eval/evaluate_imagenet.py code served (permissive licence) · get_code("6ab336cad19fdbae") How it ran |
| get_train_test_data |
Not yet run unverified (harvested, no recorded run) |
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/circle.py code served (permissive licence) · get_code("0f946c7b88043fde") How it ran |
| run |
Not yet run unverified (harvested, no recorded run) |
soniajoseph/vit-prisma/src/vit_prisma/model_eval/evaluate_imagenet.py code served (permissive licence) · get_code("f265fd87ea3c65a9") How it ran |