SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.15407 · 2022

Shifts 2.0: Extending The Dataset of Real Distributional Shifts

arXiv · PDF · Open in the Atlas

Code that ran

18 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 18 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2206.15407.json · badge: /api/ran/2206.15407.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
shifts-project/shifts canonical (classifier label)
classifier basis not recorded on the link
18 ran · 1 no recorded run
FunctionStatusWhere it lives
calc_aucs Ran
ran on a synthesized input
shifts-project/shifts/weather/assessment.py
code served (permissive licence) · get_code("32f31d880069ea9d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small numpy arrays for errors and uncertainty
np.random.seed(0)
errors = np.array([0.1, 0.2, 0.15, 0.25])
uncertainty = np.array([0.3, 0.1, 0.4, 0.2])

ARGS = {
    "errors": errors,
    "uncertainty": uncertainty,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
calc_uncertainty_regection_curve Ran
ran on a synthesized input
shifts-project/shifts/weather/assessment.py
code served (permissive licence) · get_code("2787e52d21a2bf7e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (6,) 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 pandas as pd

# Create small sample data
np.random.seed(0)

# errors: array of error values, shape (n_objects,)
errors = np.array([0.1, 0.2, 0.15, 0.3, 0.05])

# uncertainty: array of uncertainty values, shape (n_objects,)
uncertainty = np.array([0.5, 0.3, 0.6, 0.2, 0.7])

ARGS = {
    "errors": errors,
    "uncertainty": uncertainty,
    "group_by_uncertainty": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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 (6,) — shape (6,) 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
construct_full_dev_sets Ran
ran on a synthesized input
shifts-project/shifts/sdc/sdc/cache_metadata.py
code served (permissive licence) · get_code("a99c182ce1216b6f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample data matching the expected structure
dataset_key_to_arrs = {
    'moscow__development': {
        'predictions': np.random.randn(2, 4),
        'plan_conf_scores': np.random.randn(2, 3),
        'gt_trajectories': np.random.randn(2, 5),
        'request_ids': np.array([101, 102]),
    },
    'ood__development': {
        'predictions': np.random.randn(3, 4),
        'plan_conf_scores': np.random.randn(3, 3),
        'gt_trajectories': np.random.randn(3, 5),
        'request_ids': np.array([201, 202, 203]),
    },
    'full__development': {}
}

ARGS = {
    'dataset_key_to_arrs': dataset_key_to_arrs
}
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
dice_metric Ran
ran on a synthesized input
shifts-project/shifts/mswml/metrics.py
code served (permissive licence) · get_code("fc31ff56fab222ef")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned 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

# Create small binary 3D segmentation masks
np.random.seed(0)

# ground_truth: binary segmentation, shape [W, H, D]
ground_truth = np.random.randint(0, 2, size=(4, 5, 3)).astype(np.float32)

# predictions: binary segmentation, shape [W, H, D]
predictions = np.random.randint(0, 2, size=(4, 5, 3)).astype(np.float32)

ARGS = {
    "ground_truth": ground_truth,
    "predictions": predictions,
}
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
dice_norm_metric Ran
ran on a synthesized input
shifts-project/shifts/mswml/metrics.py
code served (permissive licence) · get_code("a7902a9714cafd0b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned 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

# Create small binary 3D segmentation masks
np.random.seed(0)

# ground_truth: binary segmentation mask [H, W, D]
ground_truth = np.random.randint(0, 2, size=(4, 5, 3)).astype(np.uint8)

# predictions: binary segmentation mask [H, W, D]
predictions = np.random.randint(0, 2, size=(4, 5, 3)).astype(np.uint8)

ARGS = {
    "ground_truth": ground_truth,
    "predictions": predictions,
}
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
ensemble_uncertainties_classification Ran
ran on a synthesized input
shifts-project/shifts/weather/uncertainty.py
code served (permissive licence) · get_code("d992fc481289f284")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small valid input for ensemble_uncertainties_classification
# probs should be [num_models, num_examples, num_classes]
# Let's use: 3 models, 2 examples, 4 classes

num_models = 3
num_examples = 2
num_classes = 4

# Create valid probability distributions (sum to 1 along class dimension)
np.random.seed(0)
probs_data = np.random.dirichlet(np.ones(num_classes), size=(num_models, num_examples))

ARGS = {
    'probs': probs_data,
    'epsilon': 1e-10
}
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
entropy_of_expected Ran
ran on a synthesized input
shifts-project/shifts/mswml/uncertainty.py
code served (permissive licence) · get_code("e4c7c0e0df8531fc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (3, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct a small valid probability array
# Shape: [num_models, num_voxels_X, num_voxels_Y, num_voxels_Z, num_classes]
# Using small distinct dimensions: 2 models, 3x4x5 voxels, 6 classes
num_models = 2
num_voxels_X = 3
num_voxels_Y = 4
num_voxels_Z = 5
num_classes = 6

# Create random probabilities that sum to 1 along the class dimension
probs = np.random.dirichlet(np.ones(num_classes), 
                             size=(num_models, num_voxels_X, num_voxels_Y, num_voxels_Z))
# Reshape to match expected format
probs = probs.transpose(0, 1, 2, 3, 4)  # [num_models, X, Y, Z, num_classes]

ARGS = {
    "probs": probs,
    "epsilon": 1e-10
}
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 3, dtype family float, shape (3, 4, 5) — shape (3, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
entropy_of_expected_class Ran
ran on a synthesized input
shifts-project/shifts/weather/uncertainty.py
code served (permissive licence) · get_code("8c257ee78c6af4b0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (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 numpy as np

# Create sample probability arrays
# Shape: [num_models, num_examples, num_classes]
# Using distinct dimensions: 3 models, 2 examples, 4 classes
np.random.seed(0)
probs = np.random.dirichlet(np.ones(4), size=(3, 2))  # [3, 2, 4] - valid probability distributions

ARGS = {
    "probs": probs,
    "epsilon": 1e-10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (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
expected_entropy_class Ran
ran on a synthesized input
shifts-project/shifts/weather/uncertainty.py
code served (permissive licence) · get_code("ac5749939a4c2e43")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (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 numpy as np

# Create a small example of probability predictions
# Shape: [num_models, num_examples, num_classes]
num_models = 3
num_examples = 2
num_classes = 4

# Generate valid probability distributions (sum to 1 across classes)
np.random.seed(0)
probs = np.random.dirichlet(np.ones(num_classes), size=(num_models, num_examples))
# probs shape: (3, 2, 4)

ARGS = {
    "probs": probs,
    "epsilon": 1e-10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (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
filter_top_d_plans Ran
ran on a synthesized input
shifts-project/shifts/sdc/sdc/analyze_metadata.py
code served (permissive licence) · get_code("b36ada5e86b4525d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample data for model_preds and model_conf_scores
# model_preds should be a list of arrays containing predictions
# model_conf_scores should be a list of arrays containing confidence scores

# Create 2 batches with 4 predictions each
batch_size = 2
num_predictions = 4
prediction_dim = 3

model_preds = [
    np.random.rand(num_predictions, prediction_dim),
    np.random.rand(num_predictions, prediction_dim)
]

model_conf_scores = [
    np.array([0.9, 0.7, 0.5, 0.3]),
    np.array([0.8, 0.6, 0.4, 0.2])
]

d = 5

ARGS = {
    "model_preds": model_preds,
    "model_conf_scores": model_conf_scores,
    "d": d
}
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
get_plotting_style_metric_name Ran
ran on a synthesized input
shifts-project/shifts/sdc/plot_retention_curves.py
code served (permissive licence) · get_code("0c9ae6c1b138f23e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned 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

torch.manual_seed(0)

def get_plotting_style_metric_name(metric_name):
    return metric_name.split('_')[0]

ARGS = {
    'metric_name': 'loss_train_epoch'
}
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_sparsification_factor Ran
ran on a synthesized input
shifts-project/shifts/sdc/plot_retention_curves.py
code served (permissive licence) · get_code("83495554aedb7d95")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    "arr_len": 50000
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_dataset_key_to_arrs Ran
ran on a synthesized input
shifts-project/shifts/sdc/sdc/cache_metadata.py
code served (permissive licence) · get_code("1f5326db4a7bbe88")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned defaultdict. 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 tempfile
import numpy as np
from collections import defaultdict

# Create a temporary directory with mock .npy files
temp_dir = tempfile.mkdtemp()

# Create mock .npy files matching the expected naming convention
# Format: {is_ood}__{dataset_split}__{arr_type}.npy
mock_files = [
    'moscow__development__embeddings.npy',
    'moscow__development__labels.npy',
    'ood__development__embeddings.npy',
    'ood__development__labels.npy',
    'moscow__test__embeddings.npy',  # Won't be loaded (not in chosen_dataset_keys)
]

for file_name in mock_files:
    file_path = os.path.join(temp_dir, file_name)
    # Create small dummy arrays
    dummy_array = np.array([1, 2, 3, 4], dtype=np.float32)
    np.save(file_path, dummy_array)

ARGS = {
    'metadata_cache_dir': temp_dir,
    'chosen_dataset_keys': ('moscow__development', 'ood__development'),
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
load_request_df Ran
ran on a synthesized input
shifts-project/shifts/sdc/sdc/cache_metadata.py
code served (permissive licence) · get_code("9f7420e10d09842f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. 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 pandas as pd
import tempfile

# Create a temporary directory and a mock request.tsv file
temp_dir = tempfile.mkdtemp()
request_tsv_path = os.path.join(temp_dir, 'request.tsv')

# Create a sample TSV file with some data
sample_data = pd.DataFrame({
    'request_id': [1, 2, 3],
    'timestamp': ['2024-01-01', '2024-01-02', '2024-01-03'],
    'status': ['completed', 'pending', 'failed']
})
sample_data.to_csv(request_tsv_path, sep='\t', index=False)

ARGS = {
    'metadata_cache_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
ndsc_aac_metric Ran
ran on a synthesized input
shifts-project/shifts/mswml/metrics.py
code served (permissive licence) · get_code("8c63b918b61bb33d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from joblib import Parallel

# Set random seed for reproducibility
np.random.seed(0)

# Create small synthetic data for testing
# ground_truth: binary segmentation target, shape [H * W * D]
ground_truth = np.random.randint(0, 2, size=100).astype(np.float32)

# predictions: binary segmentation predictions, shape [H * W * D]
predictions = np.random.randint(0, 2, size=100).astype(np.float32)

# uncertainties: voxel-wise uncertainties, shape [H * W * D]
uncertainties = np.random.rand(100).astype(np.float32)

# parallel_backend: joblib.Parallel instance for parallel computation
parallel_backend = Parallel(n_jobs=1)

ARGS = {
    'ground_truth': ground_truth,
    'predictions': predictions,
    'uncertainties': uncertainties,
    'parallel_backend': parallel_backend,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
joblib, numpy, sklearn — 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
prr_classification Ran
ran on a synthesized input
shifts-project/shifts/weather/assessment.py
code served (permissive licence) · get_code("d2ee41704e0bf321")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Create small sample data
batch_size = 2
num_classes = 4

# labels: class indices for each sample
labels = np.array([0, 2], dtype=np.int64)

# probs: probability distributions over classes (batch_size x num_classes)
probs = np.array([
    [0.7, 0.1, 0.1, 0.1],
    [0.1, 0.1, 0.6, 0.2]
], dtype=np.float32)

# measure: uncertainty scores for each sample (same length as batch_size)
measure = np.array([0.3, 0.8], dtype=np.float32)

# rev: boolean flag to reverse the measure
rev = False

ARGS = {
    'labels': labels,
    'probs': probs,
    'measure': measure,
    'rev': rev
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
renyi_entropy_of_expected Ran
ran on a synthesized input
shifts-project/shifts/mswml/uncertainty.py
code served (permissive licence) · get_code("2d472c7f8fa5769d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (3, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small test array with shape [num_models, num_voxels_X, num_voxels_Y, num_voxels_Z, num_classes]
# Using distinct dimensions: 2 models, 3 voxels_X, 4 voxels_Y, 5 voxels_Z, 6 classes
num_models = 2
num_voxels_X = 3
num_voxels_Y = 4
num_voxels_Z = 5
num_classes = 6

# Create random probability arrays (values between 0 and 1, summing to 1 along last axis)
probs = np.random.rand(num_models, num_voxels_X, num_voxels_Y, num_voxels_Z, num_classes)
# Normalize so that probabilities sum to 1 along the class axis (last dimension)
probs = probs / probs.sum(axis=-1, keepdims=True)

alpha = 0.8

ARGS = {
    "probs": probs,
    "alpha": alpha,
}
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 3, dtype family float, shape (3, 4, 5) — shape (3, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
renyi_expected_entropy Ran
ran on a synthesized input
shifts-project/shifts/mswml/uncertainty.py
code served (permissive licence) · get_code("936046ea2d77b177")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (3, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small probability array
# Shape: [num_models=2, num_voxels_X=3, num_voxels_Y=4, num_voxels_Z=5, num_classes=6]
num_models = 2
num_voxels_X = 3
num_voxels_Y = 4
num_voxels_Z = 5
num_classes = 6

# Generate random probabilities that sum to 1 along the class dimension
probs = np.random.dirichlet(np.ones(num_classes), size=(num_models, num_voxels_X, num_voxels_Y, num_voxels_Z))

ARGS = {
    "probs": probs,
    "alpha": 0.8
}
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 3, dtype family float, shape (3, 4, 5) — shape (3, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_model_name_helper Not yet run
unverified (harvested, no recorded run)
shifts-project/shifts/sdc/plot_retention_curves.py
code served (permissive licence) · get_code("65521763be938fc5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 13 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
calc_aucs 1 other paper
1 dated earlier
2107.07455 (2021-07)
Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Tasks
calc_uncertainty_regection_curve 1 other paper
1 dated earlier
2107.07455 (2021-07)
Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Tasks
ensemble_uncertainties_classification 1 other paper
1 dated earlier
2107.07455 (2021-07)
Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Tasks
entropy_of_expected_class 1 other paper
1 dated earlier
2107.07455 (2021-07)
Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Tasks
expected_entropy_class 1 other paper
1 dated earlier
2107.07455 (2021-07)
Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Tasks
prr_classification 1 other paper
1 dated earlier
2107.07455 (2021-07)
Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Tasks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Distributional shift, or the mismatch between training and deployment data, is a significant obstacle to the usage of machine learning in high-stakes industrial applications, such as autonomous driving and medicine. This creates a need to be able to assess how robustly ML models generalize as well as the quality of their uncertainty estimates. Standard ML baseline datasets do not allow these properties to be assessed, as the training, validation and test data are often identically distributed. Recently, a range of dedicated benchmarks have appeared, featuring both distributionally matched and shifted data. Among these benchmarks, the Shifts dataset stands out in terms of the diversity of tasks as well as the data modalities it features. While most of the benchmarks are heavily dominated by 2D image classification tasks, Shifts contains tabular weather forecasting, machine translation, and vehicle motion prediction tasks. This enables the robustness properties of models to be assessed on a diverse set of industrial-scale tasks and either universal or directly applicable task-specific conclusions to be reached. In this paper, we extend the Shifts Dataset with two datasets sourced from industrial, high-risk applications of high societal importance. Specifically, we consider the tasks of segmentation of white matter Multiple Sclerosis lesions in 3D magnetic resonance brain images and the estimation of power consumption in marine cargo vessels. Both tasks feature ubiquitous distributional shifts and a strict safety requirement due to the high cost of errors. These new datasets will allow researchers to further explore robust generalization and uncertainty estimation in new situations. In this work, we provide a description of the dataset and baseline results for both tasks.

For agents

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

get_harvested_code_for_paper("2206.15407")
get_code_for_paper("2206.15407")
have("2206.15407")

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

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

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

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

Connect an agent — have() is free.