SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.00826 · ICML · 2023

In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation

Matthias Hein, Julian Bitterwolf, Maximilian Üller

arXiv · PDF · Open in the Atlas

Code that ran

15 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; 1 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 1 failure of our instrument; 4 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/2306.00826.json · badge: /api/ran/2306.00826.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
j-cb/NINCO canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
robertsi20/Conceptualizing-Uncertainty community (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
all_equal Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
j-cb/NINCO/detection_methods.py
code served (permissive licence) · get_code("9d74dcf8506e1770")
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) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from itertools import groupby

def all_equal(iterable):
    g = groupby(iterable)
    return next(g, True) and (not next(g, False))

# Test case 1: All elements equal
iterable_all_equal = [1, 1, 1, 1]

ARGS = {
    "iterable": iterable_all_equal
}
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 bool, 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
auroc_ood Ran
ran on a synthesized input
j-cb/NINCO/utils.py
code served (permissive licence) · get_code("e4dd80a716476cad")
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

# Create sample confidence scores for in-domain data
# These should be higher values (closer to 1) representing high confidence
values_in = np.array([0.95, 0.87, 0.92, 0.88, 0.91])

# Create sample confidence scores for out-of-domain data
# These should be lower values (closer to 0) representing low confidence
values_out = np.array([0.15, 0.23, 0.18, 0.12, 0.25])

ARGS = {
    "values_in": values_in,
    "values_out": values_out,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
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
entropy_uncertainty Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/lm_experiment_helper_functions.py
code served (permissive licence) · get_code("9e50d4327bb54248")
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 2, 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 a small probability matrix for testing
# Shape: (batch_size=2, num_classes=4, extra_dim=3)
# The function expects probs where:
# - axis=1 is summed (num_classes dimension)
# - axis=1 again in p_m calculation (this seems to be for averaging across classes)
# We'll create a 3D array of probabilities

np.random.seed(0)

# Create valid probability distributions
# Shape (2, 4, 3) - batch_size=2, num_classes=4, some_feature_dim=3
batch_size = 2
num_classes = 4
feature_dim = 3

probs = np.random.dirichlet(np.ones(num_classes), size=(batch_size, feature_dim))
# Reshape to (batch_size, num_classes, feature_dim) to match expected dimensions
probs = np.transpose(probs, (0, 2, 1))  # Now shape is (2, 3, 4)

ARGS = {
    "probs": probs
}
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, ndim 2, 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
evaluate_MSP Ran
ran on a synthesized input
j-cb/NINCO/detection_methods.py
code served (permissive licence) · get_code("0ce1ea919855558a")
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

np.random.seed(0)

# Create in-distribution softmax probabilities
# Shape: (m, n) where m=2 samples, n=4 classes
softmax_id_val = np.random.dirichlet(np.ones(4), size=2)

# Create out-of-distribution softmax probabilities
# Shape: (p, n) where p=3 samples, n=4 classes
softmax_ood = np.random.dirichlet(np.ones(4), size=3)

ARGS = {
    "softmax_id_val": softmax_id_val,
    "softmax_ood": softmax_ood,
}
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
excerpt_fct Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/lm_experiment_helper_functions.py
code served (permissive licence) · get_code("1d5e0e0880eb3ef5")
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 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 re

def excerpt_fct(raw_dataset):
    excerpt_dataset = []
    sentence_pattern = re.compile('([A-Z][^\\.!?]*[\\.!?])', re.M)
    for review in raw_dataset[:100000]:
        review = str(review)
        sentences = sentence_pattern.findall(review)
        for sentence in sentences:
            sentence = sentence.strip()
            if sentence and sentence[0].isupper():
                excerpt_dataset.append(sentence)
    return excerpt_dataset

raw_dataset = [
    "Hello world. This is a test! What about this?",
    "Another review here. Second sentence! Third one?",
    "Start of review. Middle part! End here.",
    "Single. Two? Three!",
    "No caps at start of this one. But this starts right. And another!",
]

ARGS = {
    "raw_dataset": raw_dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 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
filter_dataset_by_classes Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/.ipynb_checkpoints/experiment_helper_functions-checkpoint.py
code served (permissive licence) · get_code("479e0fc1207ac1f5")
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 Subset. 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 random
from torch.utils.data import Dataset

torch.manual_seed(0)

class MockImageDataset(Dataset):
    """Mock dataset that mimics torchvision.datasets.ImageFolder structure"""
    def __init__(self, num_samples=10, num_classes=5):
        self.num_samples = num_samples
        self.num_classes = num_classes
        # Create class names
        self.classes = [f'class_{i}' for i in range(num_classes)]
        self.class_to_idx = {cls: idx for idx, cls in enumerate(self.classes)}
        # Create random labels for samples
        self.labels = [random.randint(0, num_classes - 1) for _ in range(num_samples)]
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return (image_tensor, label)
        image = torch.randn(3, 4, 4)
        label = self.labels[idx]
        return image, label

# Create a mock dataset with 10 samples and 5 classes
dataset = MockImageDataset(num_samples=10, num_classes=5)

ARGS = {
    'dataset': dataset,
    'num_classes': 3
}
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 Subset — a Subset 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
kl Ran
ran on a synthesized input
j-cb/NINCO/detection_methods.py
code served (permissive licence) · get_code("d0fbaed8e9101241")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The kl function takes two parameters: p and q
# Both are used with np.where and np.log operations
# They should be probability distributions (arrays that sum to 1)
# Keep them small: 1D arrays with 4 elements each

p = np.array([0.1, 0.2, 0.3, 0.4])
q = np.array([0.15, 0.25, 0.25, 0.35])

ARGS = {
    "p": p,
    "q": q
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
likelyhood Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/Uncertainty_Functions/unc_functions.py
code served (permissive licence) · get_code("f2493ae6234060d7")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - p: used in exponentiation (teta ** p) and division (p / (n + p))
# - n: used in exponentiation ((1 - teta) ** n) and division (n / (n + p))
# - teta: used in exponentiation (teta ** p) and (1 - teta) ** n
# All parameters are numeric values used in arithmetic operations

# Create scalar numeric arguments
p = 2
n = 3
teta = 0.7

ARGS = {
    "p": p,
    "n": n,
    "teta": teta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
noise_pixel_permutation Ran
ran on a synthesized input
j-cb/NINCO/noise_functions.py
code served (permissive licence) · get_code("6249856e2176ac62")
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 a small raw datapoint that mimics an image
# The function expects datapoint[0] to be an array-like object
# It reshapes it to (-1, image.shape[-1]), so it needs at least 2 dimensions
# Let's create a small image: 4x3x3 (height x width x channels)
image_array = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)
raw_datapoint = (image_array,)

ARGS = {
    "raw_datapoint": raw_datapoint
}
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
noise_rademacher Ran
ran on a synthesized input
j-cb/NINCO/noise_functions.py
code served (permissive licence) · get_code("ccb68389c662d0c5")
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

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

# Create a minimal raw datapoint
# The function expects datapoint[0] to be array-like that can be divided by 255
# A small image-like array works well
raw_datapoint = [np.array([[100, 150, 200, 250],
                           [50, 75, 125, 175]])]

ARGS = {
    'raw_datapoint': raw_datapoint
}
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
noise_uniform Ran
ran on a synthesized input
j-cb/NINCO/noise_functions.py
code served (permissive licence) · get_code("a60d7c4d12e684cd")
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
import torch

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

# Construct a raw datapoint
# The function expects datapoint[0] to be array-like that can be divided by 255
# This simulates an image with pixel values in range [0, 255]
raw_datapoint = (np.array([[100, 150, 200, 50],
                            [75, 125, 175, 225]]), )

ARGS = {
    "raw_datapoint": raw_datapoint
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
norm Ran
ran, honoured the contract we drafted
robertsi20/Conceptualizing-Uncertainty/concept_helpers/disc_nmf.py
code served (permissive licence) · get_code("5eadcd84551df892")
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 math import sqrt
from sklearn.utils.extmath import randomized_svd, safe_sparse_dot, squared_norm

def norm(x):
    """Dot product-based Euclidean norm implementation.

    See: http://fa.bianp.net/blog/2011/computing-the-vector-norm/

    Parameters
    ----------
    x : array-like
        Vector for which to compute the norm.
    """
    return sqrt(squared_norm(x))

# Create a small vector for testing
x_vector = np.array([1.0, 2.0, 3.0, 4.0])

ARGS = {
    "x": x_vector
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
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
predict_with_uncertainty_batched Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/.ipynb_checkpoints/experiment_helper_functions-checkpoint.py
code served (permissive licence) · get_code("1e531fa3df0ff008")
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 Tensor, ndim 3, dtype family float, shape (10, 6, 3) as a later run recorded it. 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, 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
from torch.utils.data import DataLoader, TensorDataset

torch.manual_seed(0)

# Build a simple model with dropout for stochastic predictions
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.fc1 = nn.Linear(input_dim, 8)
        self.dropout = nn.Dropout(p=0.5)
        self.fc2 = nn.Linear(8, num_classes)
    
    def forward(self, x):
        x = self.fc1(x)
        x = self.dropout(x)
        x = self.fc2(x)
        return x

# Create model
f_model = SimpleModel(input_dim=4, num_classes=3)
f_model.eval()

# Create tiny dataset with 6 samples, 4 features, 3 classes
X = torch.randn(6, 4)
y = torch.randint(0, 3, (6,))
dataset = TensorDataset(X, y)

# Create data loader with batch size 2
data_loader = DataLoader(dataset, batch_size=2, shuffle=False)

ARGS = {
    'f_model': f_model,
    'data_loader': data_loader,
    'n_iter': 10,
    '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 Tensor, ndim 3, dtype family float, shape (10, 6, 3) — shape (10, 6, 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
prob_neg Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/Uncertainty_Functions/unc_functions.py
code served (permissive licence) · get_code("e13469045ccef417")
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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function prob_neg takes a single parameter 'teta' and computes 1 - 2 * teta
# From the body, teta is used in arithmetic operations, so it can be a scalar, numpy array, or tensor
# We'll use a small tensor to be safe

teta = torch.tensor(0.3)

ARGS = {
    'teta': teta
}
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 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
prob_pos Ran
ran on a synthesized input
robertsi20/Conceptualizing-Uncertainty/Uncertainty_Functions/unc_functions.py
code served (permissive licence) · get_code("24a16cd8049665b6")
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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function prob_pos takes a parameter 'teta' and returns 2 * teta - 1
# This is a simple mathematical operation that works on numeric types
# We'll provide a small tensor as the argument

teta = torch.tensor(0.5)

ARGS = {
    "teta": teta
}
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 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
activation_transform Not yet run
unverified (harvested, no recorded run)
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/experiment_helper_functions.py
code served (permissive licence) · get_code("3d6e8aba845cd198")
How it ran

no invocation recorded.

normalize_matrices Not yet run
unverified (harvested, no recorded run)
robertsi20/Conceptualizing-Uncertainty/concept_helpers/disc_nmf.py
code served (permissive licence) · get_code("832caef4ff71bb80")
How it ran

no invocation recorded.

preprocess_images_in_batches Not yet run
unverified (harvested, no recorded run)
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/.ipynb_checkpoints/experiment_helper_functions-checkpoint.py
code served (permissive licence) · get_code("9e910a1703b00aee")
How it ran

no invocation recorded.

uncertainty_matrices Not yet run
unverified (harvested, no recorded run)
robertsi20/Conceptualizing-Uncertainty/experiment_helpers/lm_experiment_helper_functions.py
code served (permissive licence) · get_code("f9ffd38002957cca")
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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 17 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
all_equal 1 other paper
1 dated earlier
2305.10588 (2023-05)
A Better Way to Do Masked Language Model Scoring
norm 1 other paper
1 dated earlier
2004.05209 (2020-04)
Estimating a Brain Network Predictive of Stress and Genotype with Supervised Autoencoders

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

Out-of-distribution (OOD) detection is the problem of identifying inputs which are unrelated to the in-distribution task. The OOD detection performance when the in-distribution (ID) is ImageNet-1K is commonly being tested on a small range of test OOD datasets. We find that most of the currently used test OOD datasets, including datasets from the open set recognition (OSR) literature, have severe issues: In some cases more than 50% of the dataset contains objects belonging to one of the ID classes. These erroneous samples heavily distort the evaluation of OOD detectors. As a solution, we introduce with NINCO a novel test OOD dataset, each sample checked to be ID free, which with its fine-grained range of OOD classes allows for a detailed analysis of an OOD detector's strengths and failure modes, particularly when paired with a number of synthetic "OOD unit-tests". We provide detailed evaluations across a large set of architectures and OOD detection methods on NINCO and the unit-tests, revealing new insights about model weaknesses and the effects of pretraining on OOD detection performance. We provide code and data at https://github.com/j-cb/NINCO.

For agents

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

get_harvested_code_for_paper("2306.00826")
get_code_for_paper("2306.00826")
have("2306.00826")

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

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

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

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

Connect an agent — have() is free.