SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.00068 · 2019

Confident Learning: Estimating Uncertainty in Dataset Labels

arXiv · PDF · Open in the Atlas

Code that ran

21 of 29 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 14 have no contract verdict; 7 failures of our instrument; 8 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/1911.00068.json · badge: /api/ran/1911.00068.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
cgnorthcutt/confidentlearning-reproduce canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
cleanlab/cleanlab canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
chang-yue/ctrl community (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
cleanlab/examples community (classifier label)
classifier basis not recorded on the link
6 ran · 4 no recorded run
FunctionStatusWhere it lives
ResNet18 Ran
ran; our contract draft was wrong, not the code
chang-yue/ctrl/cifar10/models/resnet.py
code served (permissive licence) · get_code("62ec8bcaa46b3dd9")
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 ResNet. 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

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
ResNet34 Ran
ran; our contract draft was wrong, not the code
chang-yue/ctrl/cifar10/models/resnet.py
code served (permissive licence) · get_code("f9bdc20fe8505a75")
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 ResNet. 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

torch.manual_seed(0)

ARGS = {
    "num_classes": 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
ResNet50 Ran
ran; our contract draft was wrong, not the code
chang-yue/ctrl/cifar10/models/resnet.py
code served (permissive licence) · get_code("552c65482043842b")
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 ResNet. 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

torch.manual_seed(0)

ARGS = {
    'num_classes': 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cgnorthcutt/confidentlearning-reproduce/cifar10/cifar10_train_crossval.py
pointer only (licence: NOASSERTION) · get_code("fdaf5cebb0291130")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, cgnorthcutt/confidentlearning-reproduce (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

add_new_annotator Ran
ran on a synthesized input
cleanlab/examples/active_learning_multiannotator/utils/active_learning.py
code served (permissive licence) · get_code("99b009a70defaf35")
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 numpy as np
import pandas as pd

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

# Create multiannotator_labels as a DataFrame with multiple annotators
# Each row represents an example, each column represents an annotator
multiannotator_labels = pd.DataFrame({
    0: [1.0, 2.0, np.nan, 1.0],
    1: [2.0, np.nan, 3.0, 1.0],
    2: [np.nan, 2.0, 3.0, 2.0]
})

# Create extra_labels with shape (4, 3) - 4 examples, 3 possible labels per example
extra_labels = np.array([
    [1.0, 2.0, 3.0],
    [1.0, 2.0, 3.0],
    [1.0, 2.0, 3.0],
    [1.0, 2.0, 3.0]
])

# Define relabel_idx - indices of examples to get new labels for
relabel_idx = np.array([0, 2])

ARGS = {
    "multiannotator_labels": multiannotator_labels,
    "extra_labels": extra_labels,
    "relabel_idx": relabel_idx
}
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 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
compute_mask Ran
ran on a synthesized input
chang-yue/ctrl/clustering.py
code served (permissive licence) · get_code("19c73d208a6decaf")
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 (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from sklearn.cluster import KMeans

# Analyze function to understand parameter requirements
# loss_mtx: numpy array, 2D matrix of losses (samples x time steps)
# loss_thresh: float, threshold for loss values
# ma_size: int, moving average window size
# class_depend: bool, whether to use class-dependent masking
# labels: numpy array, class labels for each sample
# n_clusters: int, number of clusters for KMeans
# n_select_clusters: int, number of clusters to select
# n_windows: int, number of windows to divide time into
# window_thresh: int, threshold for voting across windows
# windows: optional list of (start, end) tuples

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

# loss_mtx: 2D array with 3 samples and 10 time steps
loss_mtx = np.random.rand(3, 10) * 0.5

# loss_thresh: scalar threshold
loss_thresh = 0.6

# ma_size: moving average size (must be < time steps)
ma_size = 2

# class_depend: boolean flag
class_depend = True

# labels: class labels for each sample (3 samples, max 2 classes for diversity)
labels = np.array([0, 0, 1], dtype=int)

# n_clusters: number of clusters for KMeans
n_clusters = 2

# n_select_clusters: number of top clusters to select
n_select_clusters = 1

# n_windows: number of time windows
n_windows = 3

# window_thresh: voting threshold (number of windows that must vote to mask)
window_thresh = 2

# windows: pre-computed windows (optional, set to None to auto-generate)
windows = None

ARGS = {
    "loss_mtx": loss_mtx,
    "loss_thresh": loss_thresh,
    "ma_size": ma_size,
    "class_depend": class_depend,
    "labels": labels,
    "n_clusters": n_clusters,
    "n_select_clusters": n_select_clusters,
    "n_windows": n_windows,
    "window_thresh": window_thresh,
    "windows": windows,
}
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 ndarray, ndim 1, dtype family float, shape (3,) — shape (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
convert_examples_to_features Ran
ran on a synthesized input
cleanlab/examples/entity_recognition/run_ner.py
code served (permissive licence) · get_code("d885b9e5d1082285")
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 logging
from unittest.mock import Mock

logging.basicConfig(level=logging.INFO)

class SimpleTokenizer:
    """Minimal tokenizer mock for testing."""
    def tokenize(self, word):
        # Simple tokenization: split by some pattern or return single token
        return [word]
    
    def convert_tokens_to_ids(self, tokens):
        # Map tokens to IDs (simple mapping)
        token_to_id = {
            '[CLS]': 101,
            '[SEP]': 102,
            '[PAD]': 0,
        }
        return [token_to_id.get(token, hash(token) % 1000 + 103) for token in tokens]

class Example:
    """Minimal example class for testing."""
    def __init__(self, guid, text_a, label):
        self.guid = guid
        self.text_a = text_a
        self.label = label

# Create minimal examples
example1 = Example(
    guid="ex1",
    text_a="hello world test",
    label=["O", "O", "B-PER"]
)

example2 = Example(
    guid="ex2",
    text_a="foo bar baz",
    label=["B-LOC", "O", "B-ORG"]
)

examples = [example1, example2]

# Create label list including special tokens and entity labels
label_list = ["[CLS]", "[SEP]", "O", "B-PER", "B-LOC", "B-ORG"]

# Set max sequence length
max_seq_length = 16

# Create tokenizer
tokenizer = SimpleTokenizer()

ARGS = {
    "examples": examples,
    "label_list": label_list,
    "max_seq_length": max_seq_length,
    "tokenizer": tokenizer,
}
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
get_dataLoader Ran
ran on a synthesized input
chang-yue/ctrl/tabular/neural_net.py
code served (permissive licence) · get_code("c7de0d291388fff4")
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 DataLoader. 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
import torch.utils.data

torch.manual_seed(0)

# Create small numpy arrays for X and y
X = np.random.randn(100, 4).astype(np.float32)  # 100 samples, 4 features
y = np.random.randint(0, 2, 100).astype(np.int64)  # 100 labels (binary classification)

# Define arguments for get_dataLoader
ARGS = {
    "X": X,
    "y": y,
    "isTrain": True,
    "batch_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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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_pred_probs Ran
ran on a synthesized input
cleanlab/examples/entity_recognition/token_classification_tutorial_utils.py
code served (permissive licence) · get_code("82eb499efbc9df49")
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 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample data
# scores: shape (N', K) where N'=5 tokens, K=3 classes
scores = np.array([
    [0.7, 0.2, 0.1],  # token 0
    [0.1, 0.8, 0.1],  # token 1
    [0.2, 0.3, 0.5],  # token 2
    [0.6, 0.3, 0.1],  # token 3
    [0.4, 0.4, 0.2],  # token 4
], dtype=np.float32)

# tokens: list of N'=5 subword tokens generated by tokenizer
tokens = ["he", "llo", "wor", "ld", "!"]

# given_token: list of N=2 word-level tokens from original dataset
# "hello" maps to tokens ["he", "llo"]
# "world!" maps to tokens ["wor", "ld", "!"]
given_token = ["hello", "world!"]

# weighted: boolean flag
weighted = False

ARGS = {
    "scores": scores,
    "tokens": tokens,
    "given_token": given_token,
    "weighted": weighted,
}
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 (2, 3) — shape (2, 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
get_silhouette_score Ran
ran on a synthesized input
chang-yue/ctrl/clustering.py
code served (permissive licence) · get_code("a29df62168676716")
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

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

# Create a small loss matrix (n_samples x n_features)
# Using shape (5, 4) - 5 samples, 4 features
loss_mtx = np.random.rand(5, 4).astype(np.float32)

# Create a mask for clustering (cluster assignments)
# Should have values that represent cluster IDs
mask = np.array([0, 1, 0, 1, 0], dtype=int)

# Create labels for class-dependent scoring
# Should have the same length as mask
labels = np.array([0, 0, 1, 1, 0], dtype=int)

ARGS = {
    "loss_mtx": loss_mtx,
    "mask": mask,
    "class_depend": False,
    "labels": labels,
}
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
make_high_dim_data Ran
ran; our contract draft was wrong, not the code
cleanlab/cleanlab/tests/test_classification.py
code served (permissive licence) · get_code("1c153ef503aaf9eb")
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 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

ARGS = {
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
make_rare_label Ran
ran; our contract draft was wrong, not the code
cleanlab/cleanlab/tests/test_classification.py
code served (permissive licence) · get_code("fd166ad20264e6c5")
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 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
from copy import deepcopy

# Construct a minimal data dict that the function expects
# The function accesses data['labels'] and modifies it
# It looks for class 0 indices and converts some to class 1

# Create a dataset with multiple samples of class 0 and some class 1
labels = np.array([0, 0, 0, 1, 1, 0, 0])
data = {
    'labels': labels,
    'features': np.random.randn(7, 4)  # 7 samples, 4 features
}

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
modified Ran
ran on a synthesized input
cleanlab/examples/entity_recognition/token_classification_tutorial_utils.py
code served (permissive licence) · get_code("ba493b5ddfd2a7d5")
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 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

torch.manual_seed(0)

# Test case 1: Words match tokens exactly (not modified)
given_words_1 = [
    ["hello", "world"],
    ["foo", "bar"]
]
sentence_tokens_1 = [
    ["hello", "world"],
    ["foo", "bar"]
]

# Test case 2: Words have been modified by tokenizer (e.g., subword tokenization)
given_words_2 = [
    ["hello", "world"],
    ["testing"]
]
sentence_tokens_2 = [
    ["hel", "lo", "wor", "ld"],
    ["test", "##ing"]
]

# Using the modified case for testing
ARGS = {
    "given_words": given_words_2,
    "sentence_tokens": sentence_tokens_2
}
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 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
moving_avg Ran
ran on a synthesized input
chang-yue/ctrl/clustering.py
code served (permissive licence) · get_code("b7de9a2eab9a6e44")
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 2, dtype family float, shape (2, 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 matrix for testing
mtx = np.array([
    [1.0, 2.0, 3.0, 4.0, 5.0],
    [6.0, 7.0, 8.0, 9.0, 10.0]
], dtype=np.float32)

# Moving average window size
ma_size = 2

ARGS = {
    "mtx": mtx,
    "ma_size": ma_size
}
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 (2, 5) — shape (2, 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
nn_get_stats Ran
ran on a synthesized input
chang-yue/ctrl/tabular/neural_net.py
code served (permissive licence) · get_code("414063771e92cb73")
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 torch
import torch.nn as nn
import numpy as np
from unittest.mock import Mock

torch.manual_seed(0)

# Build a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self, output_dim=1):
        super().__init__()
        self.output_dim = output_dim
        self.linear = nn.Linear(4, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Create a tiny dataloader (list of batches)
dataLoader = [
    (torch.randn(2, 4), np.array([0, 1])),
    (torch.randn(2, 4), np.array([1, 0])),
]

# Create a model with binary classification (output_dim=1)
model = MinimalModel(output_dim=1)

# Mock the get_stats function since it's not provided
def get_stats(pred, target, metrics, pred_proba):
    return {"accuracy": 0.5, "f1_macro": 0.5}

# Inject the mock into the module namespace
import sys
current_module = sys.modules[__name__]
current_module.get_stats = get_stats

device = 'cpu'
metrics = ['accuracy', 'f1_macro']

ARGS = {
    'dataLoader': dataLoader,
    'model': model,
    'device': device,
    'metrics': metrics
}
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 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
readfile Ran
ran on a synthesized input
cleanlab/examples/entity_recognition/run_ner.py
code served (permissive licence) · get_code("217e4fc276ef67c1")
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 3, 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 tempfile
import os

# Create a temporary file with sample data in the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_filename = temp_file.name

# Write sample data in the format expected by readfile
# Format: word label (space-separated, label at end with newline)
sample_data = """apple NOUN
is VERB
red ADJ

-DOCSTART- O

the DET
cat NOUN
sat VERB
"""

temp_file.write(sample_data)
temp_file.close()

ARGS = {
    'filename': temp_filename
}

# Note: In production, you'd want to clean up the temp file:
# os.unlink(temp_filename)
# But for this setup, we keep it available for the function to read
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 3, 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
shuffle_data Ran
ran on a synthesized input
chang-yue/ctrl/tabular/utils.py
code served (permissive licence) · get_code("9225a7b054268f0b")
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 pandas as pd
import numpy as np
from sklearn.utils import shuffle

# Create a small dataframe for testing
data = {
    'col1': [1, 2, 3, 4],
    'col2': ['a', 'b', 'c', 'd'],
    'col3': [10.5, 20.5, 30.5, 40.5]
}
df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'seed': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — 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
shuffle_split_data Ran
ran on a synthesized input
chang-yue/ctrl/tabular/utils.py
code served (permissive licence) · get_code("6574f335f3554108")
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 pandas as pd
import numpy as np

# Create a small DataFrame with a 'Target' column for stratification
np.random.seed(0)
df = pd.DataFrame({
    'feature_1': np.random.randn(10),
    'feature_2': np.random.randn(10),
    'feature_3': np.random.randn(10),
    'Target': np.random.choice([0, 1], size=10)
})

ARGS = {
    'df': df,
    'train_fraction': 0.7,
    'seed': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — 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
sum_xval_folds Ran
ran on a synthesized input
cleanlab/examples/outlier_detection_cifar10/utils/model_training.py
code served (permissive licence) · get_code("385ff3ba7097eae0")
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 pickle
import tempfile
import os

# Create a temporary directory for pickle files
temp_dir = tempfile.mkdtemp()

# Create mock pickle files for cross-validation splits
num_cv_folds = 5
model_name = "test_model"
results_folder = os.path.join(temp_dir, "results")
os.makedirs(results_folder, exist_ok=True)

for split_num in range(num_cv_folds):
    split_dir = os.path.join(results_folder + f"_{model_name}", f"split_{split_num}")
    os.makedirs(split_dir, exist_ok=True)
    
    # Create test data for this split
    num_samples = 10
    num_classes = 10
    num_features = 4
    
    # Prediction probabilities: (num_samples, num_classes)
    pred_probs = np.random.rand(num_samples, num_classes).astype(np.float32)
    
    # Labels: (num_samples,)
    labels = np.random.randint(0, num_classes, num_samples)
    
    # Features: (num_samples, num_features)
    features = np.random.rand(num_samples, num_features).astype(np.float32)
    
    # Image file paths
    images = [f"image_{i}.jpg" for i in range(num_samples)]
    
    # Indices for this split (simulating cross-validation split)
    indices = np.arange(split_num * num_samples, (split_num + 1) * num_samples)
    
    # Save pickle files
    pickle_prefix = os.path.join(split_dir, f"_")
    
    with open(f"{pickle_prefix}test_pred_probs_split_{split_num}", 'wb') as f:
        pickle.dump(pred_probs, f)
    
    with open(f"{pickle_prefix}test_labels_split_{split_num}", 'wb') as f:
        pickle.dump(labels, f)
    
    with open(f"{pickle_prefix}test_pred_features_split_{split_num}", 'wb') as f:
        pickle.dump(features, f)
    
    with open(f"{pickle_prefix}test_image_files_split_{split_num}", 'wb') as f:
        pickle.dump(images, f)
    
    with open(f"{pickle_prefix}test_indices_split_{split_num}", 'wb') as f:
        pickle.dump(indices, f)

ARGS = {
    "model": model_name,
    "model_results_folder": results_folder,
    "num_cv_folds": num_cv_folds,
    "verbose": 0,
}
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
validate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cgnorthcutt/confidentlearning-reproduce/cifar10/cifar10_train_crossval.py
pointer only (licence: NOASSERTION) · get_code("c2ddc9bead0fdccb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, cgnorthcutt/confidentlearning-reproduce (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

validate Ran
ran on a synthesized input
chang-yue/ctrl/cifar10/cifar10_train.py
code served (permissive licence) · get_code("903f61ae8c27c53b")
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. 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

torch.manual_seed(0)

# Small stand-in model
class SimpleModel(nn.Module):
    def __init__(self, num_classes=10):
        super().__init__()
        self.linear = nn.Linear(4, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Small stand-in args class
class Args:
    def __init__(self):
        self.num_classes = 10
        self.gpu = None
        self.print_freq = 1

# Create validation data loader (list of batches)
val_loader = [
    (torch.randn(2, 4), torch.randint(0, 10, (2,))),
    (torch.randn(2, 4), torch.randint(0, 10, (2,))),
]

# Create model
model = SimpleModel(num_classes=10)

# Create criterion (loss function)
criterion = nn.CrossEntropyLoss()

# Create args
args = Args()

ARGS = {
    'val_loader': val_loader,
    'model': model,
    'criterion': criterion,
    'args': args,
}
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 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
create_folds Not yet run
unverified (harvested, no recorded run)
cleanlab/examples/entity_recognition/token_classification_tutorial_utils.py
code served (permissive licence) · get_code("a3996dd996610e41")
How it ran

no invocation recorded.

data_loader Not yet run
unverified (harvested, no recorded run)
cleanlab/examples/fasttext_amazon_reviews/fasttext_wrapper.py
code served (permissive licence) · get_code("f452766c96419106")
How it ran

no invocation recorded.

get_file_path Not yet run
unverified (harvested, no recorded run)
chang-yue/ctrl/cifar10/cifar10_train.py
code served (permissive licence) · get_code("1eb3b80ba5b9be37")
How it ran

no invocation recorded.

get_probs Not yet run
unverified (harvested, no recorded run)
cgnorthcutt/confidentlearning-reproduce/cifar10/cifar10_train_crossval.py
pointer only (licence: NOASSERTION) · get_code("c84054e10c7be2c8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, cgnorthcutt/confidentlearning-reproduce (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_probs Not yet run
unverified (harvested, no recorded run)
chang-yue/ctrl/cifar10/cifar10_train.py
code served (permissive licence) · get_code("2a12b21504e8e284")
How it ran

no invocation recorded.

setup_next_iter_data Not yet run
unverified (harvested, no recorded run)
cleanlab/examples/active_learning_multiannotator/utils/active_learning.py
code served (permissive licence) · get_code("dff282e739a467b7")
How it ran

no invocation recorded.

sum_xval_folds Not yet run
unverified (harvested, no recorded run)
cleanlab/examples/multiannotator_cifar10/utils/model_training.py
code served (permissive licence) · get_code("40573427c196c6d0")
How it ran

no invocation recorded.

train_NN Not yet run
unverified (harvested, no recorded run)
chang-yue/ctrl/tabular/neural_net.py
code served (permissive licence) · get_code("6fb7710e0e5b9e28")
How it ran

no invocation recorded.

Also present in other papers' code

Of 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 8 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 8 later) and 20 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
accuracy 13 other papers
1 dated earlier, 12 later
1706.02677 (2017-06)
Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour
2011.09157 (2020-11)
Dense Contrastive Learning for Self-Supervised Visual Pre-Training
2103.00020 (2021-03)
Learning Transferable Visual Models From Natural Language Supervision
and 10 more not named here
ResNet18 11 other papers
11 later
2008.00627 (2020-08)
Learning to Purify Noisy Labels via Meta Soft Label Corrector
136850512 (2022 (year only))
Rethinking Confidence Calibration for Failure Prediction
2210.00875 (2022-10)
Untargeted Backdoor Watermark: Towards Harmless and Stealthy Dataset Copyright Protection
and 8 more not named here
ResNet34 3 other papers
3 later
2008.00627 (2020-08)
Learning to Purify Noisy Labels via Meta Soft Label Corrector
2310.18910 (2023-10)
InstanT: Semi-supervised Learning with Instance-dependent Thresholds
2403.06659 (2024-03)
Zero-Shot ECG Classification with Multimodal Learning and Test-time Clinical Knowledge Enhancement
validate 2 other papers
1 dated earlier, 1 later
1901.09321 (2019-01)
Fixup Initialization: Residual Learning Without Normalization
2103.00065 (2021-03)
Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability
ResNet50 1 other paper
1 later
2403.06659 (2024-03)
Zero-Shot ECG Classification with Multimodal Learning and Test-time Clinical Knowledge Enhancement
add_new_annotator 1 other paper
1 later
2210.06812 (2022-10)
CROWDLAB: Supervised learning to infer consensus labels and quality scores for data with multiple annotators
setup_next_iter_data 1 other paper
1 later
2210.06812 (2022-10)
CROWDLAB: Supervised learning to infer consensus labels and quality scores for data with multiple annotators
sum_xval_folds 1 other paper
1 later
2210.06812 (2022-10)
CROWDLAB: Supervised learning to infer consensus labels and quality scores for data with multiple annotators

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

Learning exists in the context of data, yet notions of confidence typically focus on model predictions, not label quality. Confident learning (CL) is an alternative approach which focuses instead on label quality by characterizing and identifying label errors in datasets, based on the principles of pruning noisy data, counting with probabilistic thresholds to estimate noise, and ranking examples to train with confidence. Whereas numerous studies have developed these principles independently, here, we combine them, building on the assumption of a class-conditional noise process to directly estimate the joint distribution between noisy (given) labels and uncorrupted (unknown) labels. This results in a generalized CL which is provably consistent and experimentally performant. We present sufficient conditions where CL exactly finds label errors, and show CL performance exceeding seven recent competitive approaches for learning with noisy labels on the CIFAR dataset. Uniquely, the CL framework is not coupled to a specific data modality or model (e.g., we use CL to find several label errors in the presumed error-free MNIST dataset and improve sentiment classification on text data in Amazon Reviews). We also employ CL on ImageNet to quantify ontological class overlap (e.g., estimating 645 "missile" images are mislabeled as their parent class "projectile"), and moderately increase model accuracy (e.g., for ResNet) by cleaning data prior to training. These results are replicable using the open-source cleanlab release.

For agents

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

get_harvested_code_for_paper("1911.00068")
get_code_for_paper("1911.00068")
have("1911.00068")

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

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

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

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

Connect an agent — have() is free.