SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1605.07723 · 2016

Data Programming: Creating Large Training Sets, Quickly

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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 6 have no contract verdict; 0 failures of our instrument; 2 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/1605.07723.json · badge: /api/ran/1605.07723.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
HazyResearch/snorkel community (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
FunctionStatusWhere it lives
cross_entropy_with_probs Ran
ran on a synthesized input
HazyResearch/snorkel/snorkel/classification/loss.py
code served (permissive licence) · get_code("512345b35b221e44")
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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for testing
num_points = 2
num_classes = 4

# input: [num_points, num_classes] tensor of logits
input_tensor = torch.randn(num_points, num_classes)

# target: [num_points, num_classes] tensor of probabilistic target labels
# These should sum to 1 across classes for each point
target_tensor = torch.zeros(num_points, num_classes)
target_tensor[0] = torch.tensor([0.7, 0.2, 0.1, 0.0])
target_tensor[1] = torch.tensor([0.1, 0.3, 0.4, 0.2])

# weight: optional [num_classes] tensor of per-class weights
weight_tensor = torch.ones(num_classes)

# reduction: one of "none", "mean", "sum"
reduction_str = "mean"

ARGS = {
    "input": input_tensor,
    "target": target_tensor,
    "weight": weight_tensor,
    "reduction": reduction_str,
}
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
get_hashable Ran
ran on a synthesized input
HazyResearch/snorkel/snorkel/map/core.py
code served (permissive licence) · get_code("07a59a1416da68da")
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
import numpy as np
import pandas as pd
from types import SimpleNamespace
from collections.abc import Hashable

torch.manual_seed(0)

# Test with various types of objects that get_hashable should handle

# 1. Hashable object (int)
hashable_int = 42

# 2. SimpleNamespace object
simple_ns = SimpleNamespace(a=1, b="test", c=3.14)

# 3. Dict object
dict_obj = {"x": 10, "y": 20, "z": "value"}

# 4. pandas.Series object
series_obj = pd.Series([1, 2, 3, 4], index=["a", "b", "c", "d"])

# 5. List object
list_obj = [1, 2, 3, "test", 4.5]

# 6. Tuple object
tuple_obj = (5, 10, 15, "nested")

# 7. numpy.ndarray object
np_array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int32)

# We'll test with a simple hashable object for the primary test
ARGS = {
    "obj": hashable_int
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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
get_parameters Ran
ran on a synthesized input
HazyResearch/snorkel/snorkel/map/core.py
code served (permissive licence) · get_code("9daba8a219f31d0d")
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 inspect
from typing import Any, Callable, Dict, List, Mapping, Optional

torch_imported = False
try:
    import torch
    torch_imported = True
    torch.manual_seed(0)
except ImportError:
    pass


def simple_function(a, b):
    """A simple function with two parameters."""
    return a + b


def function_with_args(a, *args):
    """A function with *args."""
    return a


def function_with_kwargs(a, **kwargs):
    """A function with **kwargs."""
    return a


def function_with_all(a, b, *args, **kwargs):
    """A function with all parameter types."""
    return a + b


ARGS = {
    "f": simple_function,
    "allow_args": False,
    "allow_kwargs": False,
}
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 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
is_hashable Ran
ran on a synthesized input
HazyResearch/snorkel/snorkel/map/core.py
code served (permissive licence) · get_code("0dec48119b40e4e3")
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
import numpy as np

torch.manual_seed(0)

# The function is_hashable tests if an object is hashable by attempting to hash it.
# It takes a single parameter 'obj' of type Any and returns a bool.
# We need to provide a value for 'obj' that will be passed to the function.

# Let's create various test objects to demonstrate:
# - Some hashable objects (int, str, tuple, frozenset)
# - Some non-hashable objects (list, dict, set, tensor)

hashable_int = 42
hashable_str = "test"
hashable_tuple = (1, 2, 3)
hashable_frozenset = frozenset([1, 2, 3])

non_hashable_list = [1, 2, 3]
non_hashable_dict = {"a": 1}
non_hashable_set = {1, 2, 3}
non_hashable_tensor = torch.randn(2, 4)
non_hashable_numpy = np.array([1, 2, 3])

# For the function execution, we'll use a simple hashable object as the primary test case
test_obj = hashable_tuple

ARGS = {
    "obj": test_obj
}
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 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
preds_to_probs Ran
ran on a synthesized input
HazyResearch/snorkel/snorkel/utils/core.py
code served (permissive licence) · get_code("43b0055f130323d8")
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 (5, 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 a small array of predictions (class indices)
# Shape [num_datapoints] or [num_datapoints, 1]
preds = np.array([0, 1, 2, 1, 0])

# Number of classes
num_classes = 3

ARGS = {
    "preds": preds,
    "num_classes": num_classes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 3) — shape (5, 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
to_int_label_array Ran
ran on a synthesized input
HazyResearch/snorkel/snorkel/utils/core.py
code served (permissive licence) · get_code("6d6a7b0071d97035")
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 int, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Test case 1: 2D array with shape [n, 1] that should be flattened
X1 = np.array([[1.0], [2.0], [3.0], [4.0]])

# Test case 2: 1D array
X2 = np.array([5.0, 6.0, 7.0])

# Test case 3: scalar that will be expanded
X3 = np.array(8.0)

# Test case 4: 2D array that won't flatten properly (should fail with flatten_vector=True)
X4 = np.array([[1.0, 2.0], [3.0, 4.0]])

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

no invocation recorded.

probs_to_preds Not yet run
unverified (harvested, no recorded run)
HazyResearch/snorkel/snorkel/utils/core.py
code served (permissive licence) · get_code("0a0cd678df3dfdc0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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

Large labeled training sets are the critical building blocks of supervised learning methods and are key enablers of deep learning techniques. For some applications, creating labeled training sets is the most time-consuming and expensive part of applying machine learning. We therefore propose a paradigm for the programmatic creation of training sets called data programming in which users express weak supervision strategies or domain heuristics as labeling functions, which are programs that label subsets of the data, but that are noisy and may conflict. We show that by explicitly representing this training set labeling process as a generative model, we can "denoise" the generated training set, and establish theoretically that we can recover the parameters of these generative models in a handful of settings. We then show how to modify a discriminative loss function to make it noise-aware, and demonstrate our method over a range of discriminative models including logistic regression and LSTMs. Experimentally, on the 2014 TAC-KBP Slot Filling challenge, we show that data programming would have led to a new winning score, and also show that applying data programming to an LSTM model leads to a TAC-KBP score almost 6 F1 points over a state-of-the-art LSTM baseline (and into second place in the competition). Additionally, in initial user studies we observed that data programming may be an easier way for non-experts to create machine learning models when training data is limited or unavailable.

For agents

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

get_harvested_code_for_paper("1605.07723")
get_code_for_paper("1605.07723")
have("1605.07723")

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

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

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

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

Connect an agent — have() is free.