SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.12848 · 2019

Unsupervised Data Augmentation for Consistency Training

Quoc Le, Minh-Thang Luong, Eduard Hovy, Zihang Dai, Qizhe Xie

arXiv · PDF · Open in the Atlas

Code that ran

30 of 52 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 18 have no contract verdict; 10 failures of our instrument; 22 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/1904.12848.json · badge: /api/ran/1904.12848.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
google-research/uda canonical (classifier label)
classifier basis: census
10 ran · 14 no recorded run
ildoonet/unsupervised-data-augmentation community (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
lantgabor/Unsupervised-Data-Augmentation-PyTorch community
Papers with Code archive
2 ran · 0 no recorded run
A-Telfer/AugKey community
Papers with Code archive
2 ran · 0 no recorded run
SaraAmd/Semi-Supervised-Learning community
Papers with Code archive
1 ran · 3 no recorded run
joannayu25/NLP_Project_MIDS-W266 community
Papers with Code archive
1 ran · 1 no recorded run
peisuke/UnsupervisedDataAugmentation.pytorch community
Papers with Code archive
1 ran · 0 no recorded run
bhacquin/UDA_pytorch community
Papers with Code archive
1 ran · 0 no recorded run
PhamQuocHuy1101/UDA-Image-classification community
Papers with Code archive
1 ran · 0 no recorded run
SanghunYun/UDA_pytorch community
Papers with Code archive
0 ran · 1 no recorded run
tomgoter/nlp_finalproject community
Papers with Code archive
0 ran · 1 no recorded run
PaulEmmanuelSotir/DeepCV community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
AverageMeter Ran
ran on a synthesized input · constructed an object; no result was computed
lantgabor/Unsupervised-Data-Augmentation-PyTorch/UDA.py
code served (permissive licence) · get_code("9355efdc819d943e")
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 an instance of its own class, AverageMeter: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# AverageMeter only has __init__ method that takes no parameters
# The class itself is instantiated and then update() is called on it
# But the function signature shows __init__ takes only self

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 AverageMeter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AverageMeter 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
MagnitudePolicy Ran
ran on a synthesized input · constructed an object; no result was computed
A-Telfer/AugKey/augkey/randaug.py
code served (permissive licence) · get_code("36741a983d72bd68")
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 an instance of its own class, MagnitudePolicy: the run constructed the object and did not call it, so no result was computed. 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 random seed for reproducibility
np.random.seed(0)

# Test with both policy types
ARGS = {
    'value': 10,
    'policy': 'random'
}
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 MagnitudePolicy — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MagnitudePolicy 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
RGB2RGBA Ran
ran on a synthesized input
SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py
pointer only (licence: NONE) · get_code("1a1dcc06f81c3c75")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SaraAmd/Semi-Supervised-Learning when it was checked. 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.

RandAugment Ran
ran on a synthesized input · constructed an object; no result was computed
A-Telfer/AugKey/augkey/randaug.py
code served (permissive licence) · get_code("5722c1e755019115")
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 an instance of its own class, RandAugment: the run constructed the object and did not call it, so no result was computed. 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 math
import numpy as np

class Operation:
    """Stand-in operation class for RandAugment."""
    def __init__(self, magnitudes=None):
        self.magnitudes = magnitudes if magnitudes is not None else np.linspace(0, 1, 30)
    
    def transform_image(self, image, magnitude, direction):
        """Stand-in transform method."""
        return image
    
    def transform_keypoints(self, keypoints, magnitude, direction, image_shape):
        """Stand-in keypoints transform method."""
        return keypoints

class Identity(Operation):
    pass

class AutoContrast(Operation):
    pass

class Equalize(Operation):
    pass

class Rotate(Operation):
    pass

class Solarize(Operation):
    pass

class Posterize(Operation):
    pass

class Color(Operation):
    pass

class Contrast(Operation):
    pass

class Brightness(Operation):
    pass

class Sharpness(Operation):
    pass

class ShearX(Operation):
    pass

class ShearY(Operation):
    pass

class TranslateX(Operation):
    pass

class TranslateY(Operation):
    pass

class OpsModule:
    """Stand-in module for ops operations."""
    Identity = Identity
    AutoContrast = AutoContrast
    Equalize = Equalize
    Rotate = Rotate
    Solarize = Solarize
    Posterize = Posterize
    Color = Color
    Contrast = Contrast
    Brightness = Brightness
    Sharpness = Sharpness
    ShearX = ShearX
    ShearY = ShearY
    TranslateX = TranslateX
    TranslateY = TranslateY

ops = OpsModule()

class MagnitudePolicy:
    """This class generates magnitude values from a given policy."""

    def __init__(self, value=10, policy='random'):
        assert policy in ['random', 'constant']
        self.policy = policy
        self.value = value

    def __call__(self):
        if self.policy == 'random':
            return np.random.randint(0, self.value + 1)
        elif self.policy == 'constant':
            return self.value
        raise Exception('Magnitude policy not recognized')

class RandAugment:
    def __init__(self, N=2, operations=None, magnitude_policy=None):
        if operations is None:
            self.operations = {
                'identity': ops.Identity(),
                'autocontrast': ops.AutoContrast(),
                'equalize': ops.Equalize(),
                'rotate': ops.Rotate(np.linspace(0, math.radians(30), 30)),
                'solarize': ops.Solarize(np.linspace(0, 256, 30, dtype=int)),
                'posterize': ops.Posterize(np.linspace(4, 8, 30, dtype=int)),
                'color': ops.Color(np.linspace(0, 0.9, 30)),
                'contrast': ops.Contrast(np.linspace(0, 0.9, 30)),
                'brightness': ops.Brightness(np.linspace(0, 0.9, 30)),
                'sharpness': ops.Sharpness(np.linspace(0, 0.9, 30)),
                'shear-x': ops.ShearX(np.linspace(0, 0.3, 30)),
                'shear-y': ops.ShearY(np.linspace(0, 0.3, 30)),
                'translate-x': ops.TranslateX(np.linspace(0, 150, 30)),
                'translate-y': ops.TranslateY(np.linspace(0, 150, 30))
            }
        else:
            self.operations = dict(enumerate(operations))
        if magnitude_policy is None:
            self.magnitude_policy = MagnitudePolicy()
        else:
            self.magnitude_policy = magnitude_policy
        self.augmentation_length = N

    def plan_augment(self):
        magnitude = self.magnitude_policy()
        aug_ops = np.random.choice(list(self.operations.keys()), size=self.augmentation_length)
        directions = np.random.choice([-1, 1], size=self.augmentation_length)
        return (magnitude, aug_ops, directions)

    def apply_image(self, image, magnitude, operation_keys, directions):
        for direction, operation_key in zip(directions, operation_keys):
            operation = self.operations[operation_key]
            image = operation.transform_image(image, magnitude, direction)
        return image

    def apply_keypoints(self, keypoints, magnitude, operation_keys, directions, image_shape):
        for direction, operation_key in zip(directions, operation_keys):
            operation = self.operations[operation_key]
            keypoints = operation.transform_keypoints(keypoints, magnitude, direction, image_shape)
        return keypoints

ARGS = {
    'N': 2,
    'operations': [
        ops.Identity(),
        ops.AutoContrast(),
        ops.Equalize(),
        ops.Rotate(np.linspace(0, math.radians(30), 30))
    ],
    'magnitude_policy': MagnitudePolicy(value=10, policy='random')
}
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 RandAugment — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RandAugment 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
ShearX Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ildoonet/unsupervised-data-augmentation/augmentations.py
code served (permissive licence) · get_code("b92936d1f2ac3e6c")
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 Image. 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 random
import PIL
import PIL.Image
import PIL.ImageOps
import PIL.ImageEnhance
import PIL.ImageDraw

# Create a simple PIL Image for testing
# Create a small 4x3 RGB image
img = PIL.Image.new('RGB', (4, 3), color=(255, 0, 0))

# Define ARGS with all parameters for ShearX
ARGS = {
    'img': img,
    'v': 0.15
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
ShearY Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ildoonet/unsupervised-data-augmentation/augmentations.py
code served (permissive licence) · get_code("008c64b77c4ae4c9")
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 Image. 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 random
import PIL
import PIL.Image
import PIL.ImageOps
import PIL.ImageEnhance
import PIL.ImageDraw

# Create a simple PIL Image for testing
# Create a small RGB image (4x3 pixels)
img = PIL.Image.new('RGB', (4, 3), color='red')

# Define ARGS with all parameters for ShearY
ARGS = {
    'img': img,
    'v': 0.15
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
TranslateX Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ildoonet/unsupervised-data-augmentation/augmentations.py
code served (permissive licence) · get_code("ab50d5bbcf589623")
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 Image. 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 random
import PIL
import PIL.Image
import PIL.ImageOps
import PIL.ImageEnhance
import PIL.ImageDraw

# Create a simple PIL Image for testing
# Create a small RGB image (100x80 pixels)
img = PIL.Image.new('RGB', (100, 80), color='red')

# Define ARGS dict with all parameters
ARGS = {
    'img': img,
    'v': 0.3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
UDALoss Ran
ran on a synthesized input
peisuke/UnsupervisedDataAugmentation.pytorch/train_CIFAR10.py
code served (permissive licence) · get_code("e69c03b0ebf8765a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 torch
import torch.nn as nn
import torch.nn.functional as F

class UDALoss(nn.Module):

    def __init__(self):
        super(UDALoss, self).__init__()

    def forward(self, model, x, x_h):
        batchsize = x.shape[0]
        with torch.no_grad():
            pred_x = F.softmax(model(x), dim=1)
        pred_x_h = F.log_softmax(model(x_h), dim=1)
        lds = F.kl_div(pred_x_h, pred_x, None, None, reduction='sum') / batchsize
        return lds


class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super(SimpleModel, self).__init__()
        self.fc1 = nn.Linear(input_dim, 8)
        self.fc2 = nn.Linear(8, num_classes)
    
    def forward(self, x):
        x = F.relu(self.fc1(x))
        x = self.fc2(x)
        return x


INIT_ARGS = {}

ARGS = {
    'model': SimpleModel(input_dim=4, num_classes=3),
    'x': torch.randn(2, 4),
    'x_h': torch.randn(2, 4),
}

if __name__ == '__main__':
    loss_fn = UDALoss(**INIT_ARGS)
    result = loss_fn(**ARGS)
    print(f"Loss output: {result}")
    print(f"Loss shape: {result.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
argsort Ran
ran on a synthesized input
ildoonet/unsupervised-data-augmentation/samplers/stratified_sampler.py
code served (permissive licence) · get_code("cbc36864ed1d2c42")
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 int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function argsort takes a sequence and returns indices sorted by values
# seq can be a list, tuple, or any iterable of comparable values

# Create a simple sequence of numbers
seq = [3, 1, 4, 1, 5, 9, 2, 6]

ARGS = {
    'seq': seq
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — 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
build_vocab Ran
ran on a synthesized input
google-research/uda/text/preprocess.py
code served (permissive licence) · get_code("98430a824c0f53a8")
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.

class Example:
    def __init__(self, word_list_a, word_list_b=None):
        self.word_list_a = word_list_a
        self.text_b = word_list_b is not None
        self.word_list_b = word_list_b if word_list_b is not None else []

examples = [
    Example(
        word_list_a=["hello", "world", "foo"],
        word_list_b=["bar", "baz"]
    ),
    Example(
        word_list_a=["hello", "test"],
        word_list_b=None
    ),
    Example(
        word_list_a=["unique", "words"],
        word_list_b=["more", "text"]
    )
]

ARGS = {
    "examples": examples
}
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 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
ildoonet/unsupervised-data-augmentation/networks/wideresnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from DaikiTanak/manifold_mixup, is pointer only (licence: NONE) · get_code("00e569acd6b45ef0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from DaikiTanak/manifold_mixup, and GitHub detected no licence in that repository when it was checked. 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.

convert_examplesUDA_to_features Ran
ran; our contract draft was wrong, not the code
bhacquin/UDA_pytorch/run_uda.py
pointer only (licence: NONE) · get_code("df213afe1b71adfd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bhacquin/UDA_pytorch when it was checked. 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.

create_cutout_mask Ran
ran; our contract draft was wrong, not the code
google-research/uda/image/randaugment/augmentation_transforms.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from arcelien/pba, is pointer only (licence: Apache-2.0) · get_code("a7723bf702941670")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from arcelien/pba, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

cross_entropy_smooth Ran
ran on a synthesized input
ildoonet/unsupervised-data-augmentation/metrics.py
code served (permissive licence) · get_code("f018413f261238f7")
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
from torch import nn

torch.manual_seed(0)

# The function expects:
# - input: a tensor of shape (batch_size, num_classes) with logits
# - target: a tensor of shape (batch_size,) with class indices (0-9)
# - size_average: boolean
# - label_smoothing: float

# Create small tensors for batch of 2, with 10 classes (since the function uses torch.eye(10))
batch_size = 2
num_classes = 10

# input: logits tensor, shape (batch_size, num_classes)
input_tensor = torch.randn(batch_size, num_classes)

# target: class indices, shape (batch_size,), values in range [0, 9]
target_tensor = torch.tensor([0, 5], dtype=torch.long)

ARGS = {
    'input': input_tensor,
    'target': target_tensor,
    'size_average': True,
    'label_smoothing': 0.1
}
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
fisherYatesShuffle Ran
ran on a synthesized input
ildoonet/unsupervised-data-augmentation/samplers/stratified_sampler.py
code served (permissive licence) · get_code("406265b8de6d26a2")
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 int; 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 random

# The function takes an array and shuffles it in-place using Fisher-Yates algorithm
# It only needs a mutable sequence that supports:
# - len() to get length
# - indexing with [] for both read and write
# - range iteration

# Create a simple list to shuffle
arr = [1, 2, 3, 4, 5, 6, 7, 8]

ARGS = {
    "arr": arr
}
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 int — 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
float_parameter Ran
ran, honoured the contract we drafted
ildoonet/unsupervised-data-augmentation/archive.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chenchenzong/dpc, is pointer only (licence: NONE) · get_code("40d3c39a403ae1f7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from chenchenzong/dpc, and GitHub detected no licence in that repository when it was checked. 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.

format_sup_filename Ran
ran on a synthesized input
google-research/uda/image/data.py
code served (permissive licence) · get_code("d00f20643f490779")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - split: string parameter that can be 'test', 'train', or 'dev'
# - sup_size: integer parameter with default value -1
# The function uses these parameters in string formatting and conditionals

ARGS = {
    'split': 'train',
    'sup_size': 100
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_sup_filename Ran
ran on a synthesized input
google-research/uda/image/preprocess.py
code served (permissive licence) · get_code("5b70acc56bd3291f")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Analyzing the function:
# - split: string parameter, checked against 'test', 'train', 'dev'
# - sup_size: int parameter, default -1, compared with -1 and used in format string

# Test case 1: split='test' (returns 'test.tfrecord')
ARGS = {
    'split': 'test',
    'sup_size': -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_unsup_filename Ran
ran on a synthesized input
google-research/uda/image/data.py
code served (permissive licence) · get_code("d90af0b30176ac15")
How it ran

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

import torch

ARGS = {
    'aug_copy_num': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logger Ran
ran on a synthesized input
ildoonet/unsupervised-data-augmentation/common.py
code served (permissive licence) · get_code("6066adc7a58afde6")
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 Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging

formatter = logging.Formatter('[%(asctime)s] [%(name)s] [%(levelname)s] %(message)s')

def get_logger(name, level=logging.DEBUG):
    logger = logging.getLogger(name)
    logger.handlers.clear()
    logger.setLevel(level)
    ch = logging.StreamHandler()
    ch.setLevel(level)
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    return logger

ARGS = {
    'name': 'test_logger',
    'level': logging.INFO
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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_unsupervised_loss Ran
ran; our contract draft was wrong, not the code
PhamQuocHuy1101/UDA-Image-classification/engine.py
pointer only (licence: NONE) · get_code("bfec53e668f92651")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PhamQuocHuy1101/UDA-Image-classification when it was checked. 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.

int_parameter Ran
ran, honoured the contract we drafted
ildoonet/unsupervised-data-augmentation/archive.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chenchenzong/dpc, is pointer only (licence: NONE) · get_code("7900a3a6deef908b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from chenchenzong/dpc, and GitHub detected no licence in that repository when it was checked. 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.

kl_for_log_probs Ran
ran on a synthesized input
google-research/uda/text/uda.py
code served (permissive licence) · get_code("1902057ba4826690")
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 SymbolicTensor. 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 tensorflow as tf
import numpy as np

# Set random seeds for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create small log probability tensors
# Shape: (batch_size=2, num_classes=4)
# These represent log probabilities, so values should be negative and sum to ~0 when exponentiated
log_p = tf.constant([
    [-0.5, -1.0, -2.0, -1.5],
    [-1.2, -0.8, -1.5, -0.9]
], dtype=tf.float32)

log_q = tf.constant([
    [-0.6, -0.9, -1.8, -1.7],
    [-1.1, -0.7, -1.6, -1.0]
], dtype=tf.float32)

ARGS = {
    "log_p": log_p,
    "log_q": log_q
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
random_flip Ran
ran on a synthesized input
google-research/uda/image/randaugment/augmentation_transforms.py
code served (permissive licence) · get_code("6e1198a9c8c47438")
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, 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

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

# Create a small 2D array to use as input
# Using shape (2, 4) - batch of 2, width of 4
x = np.random.rand(2, 4)

ARGS = {
    "x": x
}
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, 4) — shape (2, 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
replace_with_length_check Ran
ran; our contract draft was wrong, not the code
joannayu25/NLP_Project_MIDS-W266/augmentation/sent_level_augment.py
pointer only (licence: NONE) · get_code("64a6c97a5657e37a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joannayu25/NLP_Project_MIDS-W266 when it was checked. 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.

split_sent_by_punc Ran
ran on a synthesized input
google-research/uda/back_translate/split_paragraphs.py
code served (permissive licence) · get_code("c6512991cdef483b")
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.

# Analyze the function to understand what arguments it needs
# split_sent_by_punc(sent, punc, offset)
# - sent: a string (the sentence to split)
# - punc: a string or None (punctuation to search for)
# - offset: an integer (starting offset for search)

# The function uses:
# - sent.find(punc, start + offset) - string methods
# - string slicing
# - len(sent)

# Create simple test arguments
sent = "Hello, world! How are you?"
punc = "!"
offset = 0

ARGS = {
    "sent": sent,
    "punc": punc,
    "offset": offset
}
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
spotifyShuffle Ran
ran on a synthesized input
ildoonet/unsupervised-data-augmentation/samplers/stratified_sampler.py
code served (permissive licence) · get_code("6cb91780680fb891")
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 random
from collections import defaultdict

# Set seed for reproducibility
random.seed(42)

# Create simple test data for spotifyShuffle
songs_list = ["Song1", "Song2", "Song3", "Song4", "Song5", "Song6"]
artists_list = ["Artist_A", "Artist_B", "Artist_A", "Artist_C", "Artist_B", "Artist_C"]

ARGS = {
    "songs_list": songs_list,
    "artists_list": artists_list
}
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
uda_train Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lantgabor/Unsupervised-Data-Augmentation-PyTorch/UDA.py
code served (permissive licence) · get_code("a359f54f3b9012c2")
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; no output shape is stated. 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 and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Simple model that accepts input and produces logits
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.fc = nn.Linear(input_dim, num_classes)
    
    def forward(self, x):
        return self.fc(x)

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

# Create criterion for supervised loss (takes logits and labels)
criterion = nn.CrossEntropyLoss()

# Create consistency criterion (KL divergence for consistency between predictions)
consistency_criterion = nn.KLDivLoss(reduction='batchmean')

# Create optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

# Create data loaders as lists of (x, y) tuples
# train_labelled: batch_size=2, input_dim=4, num_classes=3
train_labelled = [
    (torch.randn(2, 4), torch.randint(0, 3, (2,))) for _ in range(5)
]

# train_unlabelled: batch_size=2, input_dim=4
train_unlabelled = [
    (torch.randn(2, 4), torch.zeros(2)) for _ in range(5)
]

# train_unlabelled_aug: batch_size=2, input_dim=4 (augmented version)
train_unlabelled_aug = [
    (torch.randn(2, 4), torch.zeros(2)) for _ in range(5)
]

epoch = 0

ARGS = {
    'train_labelled': train_labelled,
    'train_unlabelled': train_unlabelled,
    'train_unlabelled_aug': train_unlabelled_aug,
    'model': model,
    'criterion': criterion,
    'consistency_criterion': consistency_criterion,
    'optimizer': optimizer,
    'epoch': epoch,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (call:AssertionError)
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
zero_pad Ran
ran on a synthesized input
google-research/uda/image/randaugment/custom_ops.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from arcelien/pba, is pointer only (licence: Apache-2.0) · get_code("563e25e514f4a2a6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from arcelien/pba, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

zero_pad_and_crop Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
google-research/uda/image/randaugment/augmentation_transforms.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from arcelien/pba, is pointer only (licence: Apache-2.0) · get_code("f3f5fce61e36ad06")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from arcelien/pba, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

Classifier Not yet run
unverified (harvested, no recorded run)
SanghunYun/UDA_pytorch/models.py
code served (permissive licence) · get_code("e46d15e93318b254")
How it ran

no invocation recorded.

RandAugment Not yet run
unverified (harvested, no recorded run)
SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py
pointer only (licence: NONE) · get_code("b9d05e119e47da9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SaraAmd/Semi-Supervised-Learning when it was checked. 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.

ReduceChannelwithNormalize Not yet run
unverified (harvested, no recorded run)
SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py
pointer only (licence: NONE) · get_code("41b7d839c5008446")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SaraAmd/Semi-Supervised-Learning when it was checked. 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.

StrongAugmentation Not yet run
unverified (harvested, no recorded run)
SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py
pointer only (licence: NONE) · get_code("3458a17eb1c6c95f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SaraAmd/Semi-Supervised-Learning when it was checked. 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.

accuracy Not yet run
unverified (harvested, no recorded run)
ildoonet/unsupervised-data-augmentation/metrics.py
code served (permissive licence) · get_code("3ccb35170e45f022")
How it ran

no invocation recorded.

back_translation Not yet run
unverified (harvested, no recorded run)
joannayu25/NLP_Project_MIDS-W266/augmentation/sent_level_augment.py
pointer only (licence: NONE) · get_code("2f093dc1c7296f6c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joannayu25/NLP_Project_MIDS-W266 when it was checked. 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.

bert_attention Not yet run
unverified (harvested, no recorded run)
google-research/uda/text/bert/modeling.py
code served (permissive licence) · get_code("63d1e64fcc8da86a")
How it ran

no invocation recorded.

bert_embedding Not yet run
unverified (harvested, no recorded run)
google-research/uda/text/bert/modeling.py
code served (permissive licence) · get_code("4cd09bb78a67af39")
How it ran

no invocation recorded.

bert_pooler Not yet run
unverified (harvested, no recorded run)
google-research/uda/text/bert/modeling.py
code served (permissive licence) · get_code("b041de8f4abb1b10")
How it ran

no invocation recorded.

construct_scalar_host_call Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/utils.py
code served (permissive licence) · get_code("914d0b8791ca87d0")
How it ran

no invocation recorded.

decay_weights Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/utils.py
code served (permissive licence) · get_code("fb66342c3f664ee6")
How it ran

no invocation recorded.

divide_data_for_worker Not yet run
unverified (harvested, no recorded run)
google-research/uda/back_translate/split_paragraphs.py
code served (permissive licence) · get_code("97c1d8a99764fb25")
How it ran

no invocation recorded.

get_TPU_estimator Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/utils.py
code served (permissive licence) · get_code("81e5d3b478f3469c")
How it ran

no invocation recorded.

get_data_for_worker Not yet run
unverified (harvested, no recorded run)
google-research/uda/text/preprocess.py
code served (permissive licence) · get_code("d468fe223b1a25a2")
How it ran

no invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/data.py
code served (permissive licence) · get_code("b417179a5b5e0e14")
How it ran

no invocation recorded.

get_raw_data_filenames Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/preprocess.py
code served (permissive licence) · get_code("89985ecf00256155")
How it ran

no invocation recorded.

get_tsa_threshold Not yet run
unverified (harvested, no recorded run)
google-research/uda/text/uda.py
code served (permissive licence) · get_code("6895a8402ea9ee79")
How it ran

no invocation recorded.

get_uda_classification_loss Not yet run
unverified (harvested, no recorded run)
tomgoter/nlp_finalproject/utils/function_builder.py
pointer only (licence: NONE) · get_code("83a7585173c63bc5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tomgoter/nlp_finalproject when it was checked. 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.

global_avg_pool Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/randaugment/custom_ops.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from arcelien/pba, is pointer only (licence: Apache-2.0) · get_code("17411729594afb42")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from arcelien/pba, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

hidden_to_logits Not yet run
unverified (harvested, no recorded run)
google-research/uda/text/uda.py
code served (permissive licence) · get_code("0175d515a039d4f8")
How it ran

no invocation recorded.

jensen_shannon_divergence_consistency_loss Not yet run
unverified (harvested, no recorded run)
PaulEmmanuelSotir/DeepCV/src/deepcv/meta/contrastive.py
code served (permissive licence) · get_code("36c684d7fa0846c8")
How it ran

no invocation recorded.

variable Not yet run
unverified (harvested, no recorded run)
google-research/uda/image/randaugment/custom_ops.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from arcelien/pba, is pointer only (licence: Apache-2.0) · get_code("f6b18b79eccd8391")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from arcelien/pba, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

Also present in other papers' code

Of 52 samples lifted from this paper's linked repositories, 52 carry a function identity and 0 do not. Of the 52 distinct functions with an identity, 15 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 15 later) and 37 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
conv3x3 74 other papers
6 dated earlier, 1 the same month, 67 later · 5 only as an assembly brick
1605.07146 (2016-05)
Wide Residual Networks
1707.01629 (2017-07)
Dual Path Networks
1802.05668 (2018-02)
Model compression via distillation and quantization
and 71 more not named here
AverageMeter
brick of this paper's assembly: helper
30 other papers
30 later · 25 only as an assembly brick
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2002.10025 (2020-02)
Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inference
2006.08572 (2020-06)
Flexible Dataset Distillation: Learn Labels Instead of Images
and 27 more not named here
float_parameter 15 other papers
3 dated earlier, 12 later
1409.4842 (2014-09)
Going deeper with convolutions
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
1608.06993 (2016-08)
Densely Connected Convolutional Networks
and 12 more not named here
ShearX
brick of this paper's assembly: data_transform
8 other papers
8 later · 1 only as an assembly brick
1905.00397 (2019-05)
Fast AutoAugment
2001.06001 (2020-01)
Curriculum Labeling: Revisiting Pseudo-Labeling for Semi-Supervised Learning
2005.04373 (2020-05)
AutoCLINT: The Winning Method in AutoCV Challenge 2019
and 5 more not named here
ShearY
brick of this paper's assembly: data_transform
8 other papers
8 later · 1 only as an assembly brick
1905.00397 (2019-05)
Fast AutoAugment
2001.06001 (2020-01)
Curriculum Labeling: Revisiting Pseudo-Labeling for Semi-Supervised Learning
2005.04373 (2020-05)
AutoCLINT: The Winning Method in AutoCV Challenge 2019
and 5 more not named here
TranslateX
brick of this paper's assembly: data_transform
8 other papers
8 later · 1 only as an assembly brick
1905.00397 (2019-05)
Fast AutoAugment
2001.06001 (2020-01)
Curriculum Labeling: Revisiting Pseudo-Labeling for Semi-Supervised Learning
2005.04373 (2020-05)
AutoCLINT: The Winning Method in AutoCV Challenge 2019
and 5 more not named here
int_parameter 6 other papers
6 later
1905.00397 (2019-05)
Fast AutoAugment
2001.06001 (2020-01)
Curriculum Labeling: Revisiting Pseudo-Labeling for Semi-Supervised Learning
2003.03780 (2020-03)
DADA: Differentiable Automatic Data Augmentation
and 3 more not named here
create_cutout_mask 3 other papers
1 dated earlier, 2 later
1708.04552 (2017-08)
Improved Regularization of Convolutional Neural Networks with Cutout
1905.05393 (2019-05)
Population Based Augmentation: Efficient Learning of Augmentation Policy Schedules
2008.06775 (2020-08)
Model Patching: Closing the Subgroup Performance Gap with Data Augmentation
random_flip 3 other papers
1 dated earlier, 2 later
1805.09501 (2018-05)
AutoAugment: Learning Augmentation Policies from Data
1905.05393 (2019-05)
Population Based Augmentation: Efficient Learning of Augmentation Policy Schedules
2008.06775 (2020-08)
Model Patching: Closing the Subgroup Performance Gap with Data Augmentation
zero_pad_and_crop 3 other papers
1 dated earlier, 2 later
1805.09501 (2018-05)
AutoAugment: Learning Augmentation Policies from Data
1905.05393 (2019-05)
Population Based Augmentation: Efficient Learning of Augmentation Policy Schedules
2008.06775 (2020-08)
Model Patching: Closing the Subgroup Performance Gap with Data Augmentation
accuracy 2 other papers
2 later
1905.00397 (2019-05)
Fast AutoAugment
2006.13554 (2020-06)
Normalized Loss Functions for Deep Learning with Noisy Labels
get_logger 2 other papers
2 later
1905.00397 (2019-05)
Fast AutoAugment
2106.04732 (2021-06)
A UNIFIED APPROACH TO SEMI-SUPERVISED LEARNING AND DOMAIN ADAPTATION
global_avg_pool 1 other paper
1 later
1905.05393 (2019-05)
Population Based Augmentation: Efficient Learning of Augmentation Policy Schedules
variable 1 other paper
1 later
1905.05393 (2019-05)
Population Based Augmentation: Efficient Learning of Augmentation Policy Schedules
zero_pad 1 other paper
1 later
1905.05393 (2019-05)
Population Based Augmentation: Efficient Learning of Augmentation Policy Schedules

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

Semi-supervised learning lately has shown much promise in improving deep learning models when labeled data is scarce. Common among recent approaches is the use of consistency training on a large amount of unlabeled data to constrain model predictions to be invariant to input noise. In this work, we present a new perspective on how to effectively noise unlabeled examples and argue that the quality of noising, specifically those produced by advanced data augmentation methods, plays a crucial role in semi-supervised learning. By substituting simple noising operations with advanced data augmentation methods such as RandAugment and back-translation, our method brings substantial improvements across six language and three vision tasks under the same consistency training framework. On the IMDb text classification dataset, with only 20 labeled examples, our method achieves an error rate of 4.20, outperforming the state-of-the-art model trained on 25,000 labeled examples. On a standard semi-supervised learning benchmark, CIFAR-10, our method outperforms all previous approaches and achieves an error rate of 5.43 with only 250 examples. Our method also combines well with transfer learning, e.g., when finetuning from BERT, and yields improvements in high-data regime, such as ImageNet, whether when there is only 10% labeled data or when a full labeled set with 1.3M extra unlabeled examples is used. 1

For agents

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

get_harvested_code_for_paper("1904.12848")
get_code_for_paper("1904.12848")
have("1904.12848")

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

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

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

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

Connect an agent — have() is free.