SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1505.07818 · CVPR · 2015

Domain-Adversarial Training of Neural Networks

Hugo Larochelle, Marius Kloft, Francesco Orabona, Tatiana Tommasi, Pascal Germain, Victor Lempitsky, Yaroslav Ganin, Hana Ajakan, François Laviolette, Mario Marchand, Urun Dogan

arXiv · PDF · Open in the Atlas

Code that ran

35 of 52 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (11 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 15 have no contract verdict; 19 failures of our instrument; 17 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/1505.07818.json · badge: /api/ran/1505.07818.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
MarvinMartin24/MADA-PL community
Papers with Code archive
7 ran · 1 no recorded run
criteo-research/pytorch-ada community
Papers with Code archive
6 ran · 3 no recorded run
AKASH2907/Forgery-Classification-via-Domain-Adaptation community
Papers with Code archive
4 ran · 2 no recorded run
calico/scnym community
Papers with Code archive
3 ran · 1 no recorded run
antoinedemathelin/wann community
Papers with Code archive
3 ran · 1 no recorded run
vict0rsch/ArxivTools community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
lzx6/pytorch_DA community
Papers with Code archive
2 ran · 0 no recorded run
timgaripov/asa community
Papers with Code archive
1 ran · 2 no recorded run
dv-fenix/Domain-Adaptation community
Papers with Code archive
1 ran · 1 no recorded run
Darth-Kronos/Unsupervised-Domain-Adaptation community
Papers with Code archive
1 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 1 no recorded run
facebookresearch/DomainBed community
Papers with Code archive
1 ran · 0 no recorded run
lywang12/cuti-domain community
Papers with Code archive
1 ran · 0 no recorded run
gabrieletiboni/Domain-adaptation-on-PACS-dataset community
Papers with Code archive
1 ran · 0 no recorded run
lywang12/cupi-domain community
Papers with Code archive
1 ran · 0 no recorded run
sangdon/pac-ps-w community
Papers with Code archive
0 ran · 1 no recorded run
vcoyette/DANN community
Papers with Code archive
0 ran · 1 no recorded run
scpark20/universal-music-translation community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
AbstractDANN Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/DomainBed/domainbed/algorithms.py
code served (permissive licence) · get_code("8a387c444dc4c6a4")
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, AbstractDANN: the run constructed the object and did not call it, so no result was computed. 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 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)

# Define minimal network classes that match the expected interface
class Featurizer(nn.Module):
    def __init__(self, input_shape, hparams):
        super().__init__()
        self.n_outputs = 16
        self.linear = nn.Linear(input_shape[0], self.n_outputs)
    
    def forward(self, x):
        return self.linear(x)

class Classifier(nn.Module):
    def __init__(self, n_inputs, num_classes, nonlinear):
        super().__init__()
        self.linear = nn.Linear(n_inputs, num_classes)
    
    def forward(self, x):
        return self.linear(x)

class MLP(nn.Module):
    def __init__(self, n_inputs, n_outputs, hparams):
        super().__init__()
        self.linear = nn.Linear(n_inputs, n_outputs)
    
    def forward(self, x):
        return self.linear(x)

# Create a networks module to hold these classes
class networks:
    Featurizer = Featurizer
    Classifier = Classifier
    MLP = MLP

# Inject into the scope
import sys
current_module = sys.modules[__name__]
current_module.networks = networks

# Define hyperparameters
hparams = {
    'lr_d': 0.001,
    'lr_g': 0.001,
    'weight_decay_d': 0.0,
    'weight_decay_g': 0.0,
    'beta1': 0.9,
    'grad_penalty': 1.0,
    'd_steps_per_g_step': 1,
    'lambda': 1.0,
    'nonlinear_classifier': False,
}

# Create small minibatches for testing
batch_size = 2
input_dim = 4
num_classes = 3
num_domains = 2

x1 = torch.randn(batch_size, input_dim)
y1 = torch.randint(0, num_classes, (batch_size,))
x2 = torch.randn(batch_size, input_dim)
y2 = torch.randint(0, num_classes, (batch_size,))

minibatches = [(x1, y1), (x2, y2)]

input_shape = (input_dim,)

ARGS = {
    'input_shape': input_shape,
    'num_classes': num_classes,
    'num_domains': num_domains,
    'hparams': hparams,
    'conditional': False,
    'class_balance': 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 AbstractDANN — 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 AbstractDANN 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
AdversarialNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
lywang12/cuti-domain/utils/network.py
pointer only (licence: NONE) · get_code("f1707c22da402ad3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lywang12/cuti-domain 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.

AlexNetDANN Ran
ran on a synthesized input
gabrieletiboni/Domain-adaptation-on-PACS-dataset/CODE/models/AlexNetDANN.py
pointer only (licence: NONE) · get_code("c601b6f644d029af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gabrieletiboni/Domain-adaptation-on-PACS-dataset 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.

BaseAdaptTrainer Ran
ran on a synthesized input · constructed an object; no result was computed
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("0e5b0fea39063b16")
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, BaseAdaptTrainer: 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
import torch.nn as nn
import pytorch_lightning as pl
import numpy as np

torch.manual_seed(0)

# Create minimal dataset class
class MinimalDataset:
    def __init__(self):
        self.source_train = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(3)]
        self.target_train = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(3)]
        self.source_val = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(2)]
        self.target_val = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(2)]
        self.source_test = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(2)]
        self.target_test = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(2)]
    
    def prepare_data_loaders(self):
        pass

# Create minimal feature extractor
class MinimalFeatureExtractor(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(4, 8)
    
    def forward(self, x):
        return self.fc(x)

# Create minimal task classifier
class MinimalTaskClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(8, 2)
    
    def forward(self, x):
        return self.fc(x)

# Create minimal method class
class MinimalMethod:
    def __init__(self):
        self.name = "minimal_method"

# Build arguments
ARGS = {
    "dataset": MinimalDataset(),
    "feature_extractor": MinimalFeatureExtractor(),
    "task_classifier": MinimalTaskClassifier(),
    "method": MinimalMethod(),
    "lambda_init": 1.0,
    "adapt_lambda": True,
    "adapt_lr": True,
    "nb_init_epochs": 10,
    "nb_adapt_epochs": 50,
    "batch_size": 32,
    "init_lr": 0.001,
    "optimizer": {
        "type": "Adam",
        "optim_params": {"lr": 0.001, "betas": (0.9, 0.999)}
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pytorch_lightning, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BaseAdaptTrainer — 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 BaseAdaptTrainer 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
CellTypeCLF Ran
ran on a synthesized input · constructed an object; no result was computed
calico/scnym/scnym/model.py
code served (permissive licence) · get_code("e2db8a3a21c6bf4c")
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, CellTypeCLF: 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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "n_genes": 4,
    "n_cell_types": 3,
    "n_hidden": 8,
    "n_hidden_init": 8,
    "n_layers": 2,
    "init_dropout": 0.1,
    "residual": False,
    "batch_norm": True,
    "track_running_stats": True,
    "n_decoder_layers": 0,
    "use_raw_counts": 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 CellTypeCLF — 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 CellTypeCLF 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
ClassifierBase Ran
ran on a synthesized input
lywang12/cupi-domain/utils/network.py
pointer only (licence: NONE) · get_code("f70dbf08bbfa9c34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lywang12/cupi-domain 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.

DANN Ran
ran on a synthesized input
dv-fenix/Domain-Adaptation/Domain-Adversarial Training of Neural Networks/model.py
pointer only (licence: GPL-3.0) · get_code("59f8b8a3c0a6bdfe")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, dv-fenix/Domain-Adaptation, is not in the permissive set Syntology serves inline. 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.

Discriminator Ran
ran on a synthesized input · constructed an object; no result was computed
lzx6/pytorch_DA/models/model.py
pointer only (licence: NONE) · get_code("87db2131110dfd0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lzx6/pytorch_DA 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.

GRL Ran
ran on a synthesized input · constructed an object; no result was computed
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("3ce4eba45b4ca3fc")
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, GRL: 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
from torch.autograd import Function

torch.manual_seed(0)

# The GRL function expects:
# - x: a tensor that supports view_as() and can be negated/multiplied
# - alpha: a scalar value for gradient scaling

x = torch.randn(2, 4, requires_grad=True)
alpha = 0.5

ARGS = {
    'x': x,
    'alpha': alpha
}
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 GRL — 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 GRL 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
GradReverse Ran
ran on a synthesized input · constructed an object; no result was computed
lzx6/pytorch_DA/models/model.py
pointer only (licence: NONE) · get_code("22d411c2795ced15")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lzx6/pytorch_DA 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.

GradReverse Ran
ran on a synthesized input · constructed an object; no result was computed
calico/scnym/scnym/model.py
code served (permissive licence) · get_code("1a6a7062274a346d")
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, GradReverse: 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)

# GradReverse.forward expects:
# - x: torch.FloatTensor of shape [Batch, Features]
# - weight: float

x = torch.randn(2, 4)  # [Batch=2, Features=4]
weight = 0.5

ARGS = {
    "x": x,
    "weight": weight,
}
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 GradReverse — 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 GradReverse 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
ResBlock Ran
ran on a synthesized input · constructed an object; no result was computed
calico/scnym/scnym/model.py
code served (permissive licence) · get_code("1a8c0c365eb16cdc")
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, ResBlock: 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
import torch.nn as nn

torch.manual_seed(0)

# The ResBlock.__init__ takes n_inputs and n_hidden as parameters
# The forward method expects input of shape [Batch, n_inputs]
# and outputs [Batch, n_hidden]
# 
# We need to provide values for n_inputs and n_hidden
# Using distinct sizes: n_inputs=4, n_hidden=3

ARGS = {
    "n_inputs": 4,
    "n_hidden": 3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResBlock — 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 ResBlock 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
ReverseLayerF Ran
ran on a synthesized input · constructed an object; no result was computed
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("a9713d2fe23f5ada")
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, ReverseLayerF: 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
import torch.nn as nn
from torch.autograd import Function

torch.manual_seed(0)

class ReverseLayerF(Function):

    @staticmethod
    def forward(ctx, x, alpha):
        ctx.alpha = alpha
        return x.view_as(x)

    @staticmethod
    def backward(ctx, grad_output):
        output = grad_output.neg() * ctx.alpha
        return (output, None)


# Create a small tensor for x parameter
x = torch.randn(2, 4, requires_grad=True)

# Create a scalar alpha parameter
alpha = 0.5

ARGS = {
    "x": x,
    "alpha": alpha
}
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 ReverseLayerF — 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 ReverseLayerF 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
ReverseLayerF Ran
ran on a synthesized input · constructed an object; no result was computed
Darth-Kronos/Unsupervised-Domain-Adaptation/DANN/model.py
code served (permissive licence) · get_code("917fb058e1f4bb05")
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, ReverseLayerF: 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)

# ReverseLayerF.forward() takes x and alpha
# - x: a tensor that will be viewed as itself
# - alpha: a scalar value used in backward pass

# ReverseLayerF.backward() takes grad_outputs
# - grad_outputs: gradient tensor matching x's shape

# Create a small tensor for x (batch_size=2, features=4)
x = torch.randn(2, 4, requires_grad=True)

# Create a scalar alpha value
alpha = 0.5

ARGS = {
    "x": x,
    "alpha": alpha,
}
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 ReverseLayerF — 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 ReverseLayerF 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
_GradReverse Ran
ran on a synthesized input
antoinedemathelin/wann/wann/methods/WANN.py
pointer only (licence: NONE) · get_code("4c1fc418e3779b2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, antoinedemathelin/wann 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.

_get_default_model Ran
ran; our contract draft was wrong, not the code
antoinedemathelin/wann/wann/methods/WANN.py
pointer only (licence: NONE) · get_code("ff4ee6a4efd6ea00")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, antoinedemathelin/wann 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.

_grad_reverse Ran
ran, honoured the contract we drafted
antoinedemathelin/wann/wann/methods/WANN.py
pointer only (licence: NONE) · get_code("138b0d8c38a323bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, antoinedemathelin/wann 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.

alexnet Ran
ran; our contract draft was wrong, not the code
AKASH2907/Forgery-Classification-via-Domain-Adaptation/DANN/dann_keras.py
pointer only (licence: NONE) · get_code("d86e29f3ca97a8c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AKASH2907/Forgery-Classification-via-Domain-Adaptation 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.

batch_generator Ran
ran; our contract draft was wrong, not the code
AKASH2907/Forgery-Classification-via-Domain-Adaptation/DANN/dann_keras.py
pointer only (licence: NONE) · get_code("4a9bc68de4ae0c55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AKASH2907/Forgery-Classification-via-Domain-Adaptation 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.

build_models Ran
ran; our contract draft was wrong, not the code
AKASH2907/Forgery-Classification-via-Domain-Adaptation/DANN/dann_keras.py
pointer only (licence: NONE) · get_code("f9776e8c18b947b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AKASH2907/Forgery-Classification-via-Domain-Adaptation 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.

common_shape Ran
ran; our contract draft was wrong, not the code
vict0rsch/ArxivTools/extra/imgs/concat.py
code served (permissive licence) · get_code("2fb3457e6f433bd8")
How it ran

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

import numpy as np
import torch

torch.manual_seed(0)

# Create a list of images (numpy arrays) with different heights and widths
# Images need to have shape (height, width, ...) or (height, width)
img1 = np.random.rand(10, 8, 3)  # height=10, width=8
img2 = np.random.rand(12, 6, 3)  # height=12, width=6
img3 = np.random.rand(11, 7, 3)  # height=11, width=7

imgs = [img1, img2, img3]

# axis can be 0 or 1
# axis=0 means concatenating along height axis, so we want min width
# axis=1 means concatenating along width axis, so we want min height
axis = 0

ARGS = {
    "imgs": imgs,
    "axis": axis,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
crop Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vict0rsch/ArxivTools/extra/imgs/concat.py
code served (permissive licence) · get_code("2e5319a051a23ef3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (6, 8, 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 sample image as numpy array with shape (height, width, channels)
# Using distinct dimensions: 10 height, 8 width
img = np.random.randint(0, 255, size=(10, 8, 3), dtype=np.uint8)

# Test case 1: crop height (min_w is None)
min_h = 6
min_w = None

ARGS = {
    "img": img,
    "min_h": min_h,
    "min_w": min_w,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (6, 8, 3) — shape (6, 8, 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
cross_entropy_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("310d54a1dd86ec79")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors
batch_size = 2
num_classes = 4

# linear_output: logits from a linear layer, shape (batch_size, num_classes)
linear_output = torch.randn(batch_size, num_classes)

# label: class indices, shape (batch_size,)
label = torch.tensor([0, 2], dtype=torch.long)

# weights: optional per-sample weights, shape (batch_size,)
weights = torch.tensor([1.0, 2.0])

ARGS = {
    'linear_output': linear_output,
    'label': label,
    'weights': weights
}
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 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
entropy Ran
ran; our contract draft was wrong, not the code
timgaripov/asa/support_alignment/core/algorithms.py
code served (permissive licence) · get_code("5b9be386bbb3d10e")
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 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

torch.manual_seed(0)

# The function takes logits as input and computes entropy
# logits should be a 2D tensor (batch_size, num_classes)
# The function applies softmax on dim=1, then computes cross-entropy

logits = torch.randn(2, 4)  # batch_size=2, num_classes=4

ARGS = {
    "logits": logits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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_aggregated_metrics Ran
ran; our contract draft was wrong, not the code
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("4113c2e807d432ee")
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

torch.manual_seed(0)

# The function expects:
# 1. metric_name_list: a list of strings (metric names)
# 2. metric_outputs: a list of dicts, where each dict maps metric names to tensors

# Create metric outputs - a list of dicts with scalar and non-scalar tensors
metric_outputs = [
    {
        "loss": torch.tensor(0.5),  # scalar tensor (0-dim)
        "accuracy": torch.tensor([0.8, 0.85, 0.9, 0.88]),  # 1-d tensor
    },
    {
        "loss": torch.tensor(0.4),  # scalar tensor (0-dim)
        "accuracy": torch.tensor([0.82, 0.87, 0.91, 0.89]),  # 1-d tensor
    },
]

# List of metric names to aggregate
metric_name_list = ["loss", "accuracy"]

ARGS = {
    "metric_name_list": metric_name_list,
    "metric_outputs": metric_outputs,
}
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 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
get_aggregated_metrics_from_dict Ran
ran; our contract draft was wrong, not the code
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("61fd42a2e2a7cfcc")
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

torch.manual_seed(0)

# Create a sample input_metric_dict with various tensor shapes
input_metric_dict = {
    "scalar_metric": torch.tensor(0.5),  # 0-dimensional tensor
    "vector_metric": torch.tensor([0.1, 0.2, 0.3, 0.4]),  # 1-dimensional tensor
    "matrix_metric": torch.tensor([[0.5, 0.6, 0.7], [0.8, 0.9, 1.0]]),  # 2-dimensional tensor
    "batched_metric": torch.randn(2, 4),  # batch of 2, dim 4
}

ARGS = {
    "input_metric_dict": input_metric_dict,
}
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 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
get_metrics_from_parameter_dict Ran
ran; our contract draft was wrong, not the code
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("704df3b8019c2aa5")
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

torch.manual_seed(0)

parameter_dict = {
    "loss": 0.5234,
    "accuracy": 0.8765,
    "f1_score": 0.7891,
    "precision": 0.8234
}

device = "cpu"

ARGS = {
    "parameter_dict": parameter_dict,
    "device": device
}
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 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
grl_hook Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from Yiyang98/BFUDA
pointer only; the stored copy get_code serves, from Yiyang98/BFUDA, is pointer only (licence: NONE) · get_code("9768efb52f591b55")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

linear2_bn Ran
ran; our contract draft was wrong, not the code
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("cd9167b485a751fd")
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 Sequential. 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
from collections import OrderedDict

torch.manual_seed(0)

# The function linear2_bn takes input_size and output_size as parameters
# It constructs a Sequential model with Linear, BatchNorm1d, ReLU, and Linear layers
# We need to provide valid integer sizes for these parameters

input_size = 10
output_size = 5

ARGS = {
    'input_size': input_size,
    'output_size': output_size,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
linear2_dr2_bn Ran
ran; our contract draft was wrong, not the code
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("3e123903386d5131")
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 Sequential. 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
from collections import OrderedDict

torch.manual_seed(0)

ARGS = {
    'input_size': 10,
    'output_size': 5
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
linear3_bn2_v1 Ran
ran; our contract draft was wrong, not the code
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("cec816fd8905007d")
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 Sequential. 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
from collections import OrderedDict

torch.manual_seed(0)

ARGS = {
    'input_size': 128,
    'output_size': 64,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
linear3_bn2_v2 Ran
ran; our contract draft was wrong, not the code
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("946555f6a21e149f")
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 Sequential. 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 = {
    'input_size': 16,
    'output_size': 8,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_backbone Ran
ran; our contract draft was wrong, not the code
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("f64f43c34c4542e9")
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 torch
import torch.nn as nn
import torchvision

torch.manual_seed(0)

ARGS = {
    'name': 'resnet18',
    'pretrained': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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
load_classifier Ran
ran; our contract draft was wrong, not the code
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("8d9374ad6935ac3d")
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 Sequential. 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
from collections import OrderedDict

torch.manual_seed(0)

ARGS = {
    'name': 'linear2_bn',
    'input_size': 64,
    'output_size': 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
vgg_16 Ran
ran; our contract draft was wrong, not the code
AKASH2907/Forgery-Classification-via-Domain-Adaptation/DANN/dann_keras.py
pointer only (licence: NONE) · get_code("851159feffea3b04")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AKASH2907/Forgery-Classification-via-Domain-Adaptation 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.

AbstrtactDiscriminatorAlignment Not yet run
unverified (harvested, no recorded run)
timgaripov/asa/support_alignment/core/algorithms.py
code served (permissive licence) · get_code("aa6ec272928f9093")
How it ran

no invocation recorded.

BaseDANNLike Not yet run
unverified (harvested, no recorded run)
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("6ca780e6cedb8469")
How it ran

no invocation recorded.

DANN Not yet run
unverified (harvested, no recorded run)
calico/scnym/scnym/model.py
code served (permissive licence) · get_code("cd0abd234c0eba6b")
How it ran

no invocation recorded.

DANN Not yet run
unverified (harvested, no recorded run)
sangdon/pac-ps-w/model/da.py
pointer only (licence: NONE) · get_code("fcde4e5aa7af7696")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangdon/pac-ps-w 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.

DANN Not yet run
unverified (harvested, no recorded run)
timgaripov/asa/support_alignment/core/algorithms.py
code served (permissive licence) · get_code("b140a1b50f334aa6")
How it ran

no invocation recorded.

DANNModel Not yet run
unverified (harvested, no recorded run)
Darth-Kronos/Unsupervised-Domain-Adaptation/DANN/model.py
code served (permissive licence) · get_code("9e554f3838a1af56")
How it ran

no invocation recorded.

DANNtrainer Not yet run
unverified (harvested, no recorded run)
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("b69e7e3bd38b5a79")
How it ran

no invocation recorded.

FeatureExtractor Not yet run
unverified (harvested, no recorded run)
vcoyette/DANN/models/mnist.py
pointer only (licence: NONE) · get_code("3d0632c955417561")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vcoyette/DANN 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.

GradientReversalLayer Not yet run
unverified (harvested, no recorded run)
dv-fenix/Domain-Adaptation/Domain-Adversarial Training of Neural Networks/model.py
pointer only (licence: GPL-3.0) · get_code("a5f777ab36b3f81e")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, dv-fenix/Domain-Adaptation, is not in the permissive set Syntology serves inline. 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.

MADA Not yet run
unverified (harvested, no recorded run)
MarvinMartin24/MADA-PL/Models/nets/MADA.py
code served (permissive licence) · get_code("e61d73732bf10468")
How it ran

no invocation recorded.

Method Not yet run
unverified (harvested, no recorded run)
criteo-research/pytorch-ada/adalib/ada/models/architectures.py
code served (permissive licence) · get_code("c0ae116e1108bfcf")
How it ran

no invocation recorded.

WANN Not yet run
unverified (harvested, no recorded run)
antoinedemathelin/wann/wann/methods/WANN.py
pointer only (licence: NONE) · get_code("95838026a4f67e63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, antoinedemathelin/wann 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.

calc_coeff Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from Yiyang98/BFUDA
pointer only; the stored copy get_code serves, from Yiyang98/BFUDA, is pointer only (licence: NONE) · get_code("e352afa5762c5a6b")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

domain_confusion Not yet run
unverified (harvested, no recorded run)
scpark20/universal-music-translation/music_trans.py
pointer only (licence: GPL-3.0) · get_code("48ebff402229f303")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, scpark20/universal-music-translation, is not in the permissive set Syntology serves inline. 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.

to_rgba Not yet run
unverified (harvested, no recorded run)
vict0rsch/ArxivTools/extra/imgs/concat.py
code served (permissive licence) · get_code("5773872947986444")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
AKASH2907/Forgery-Classification-via-Domain-Adaptation/DANN/dann_keras.py
pointer only (licence: NONE) · get_code("1e5fb974a2b9088c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AKASH2907/Forgery-Classification-via-Domain-Adaptation 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.

write_log Not yet run
unverified (harvested, no recorded run)
AKASH2907/Forgery-Classification-via-Domain-Adaptation/DANN/dann_keras.py
pointer only (licence: NONE) · get_code("882f695d04b3d5b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AKASH2907/Forgery-Classification-via-Domain-Adaptation 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.

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, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 8 later) and 44 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

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

FunctionAlso present inEarliest-datedOthers named
calc_coeff
brick of this paper's assembly: helper
14 other papers
14 later · 2 only as an assembly brick
1904.06487 (2019-04)
Semi-supervised Domain Adaptation via Minimax Entropy
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
2007.14612 (2020-07)
Clarinet: A One-step Approach Towards Budget-friendly Unsupervised Domain Adaptation
and 11 more not named here
grl_hook
brick of this paper's assembly: update_rule
12 other papers
12 later · 3 only as an assembly brick
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
2007.14612 (2020-07)
Clarinet: A One-step Approach Towards Budget-friendly Unsupervised Domain Adaptation
2008.01454 (2020-08)
Learning from a Complementary-label Source Domain: Theory and Algorithms
and 9 more not named here
ReverseLayerF
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 2 only as an assembly brick
1409.7495 (2014-09)
Unsupervised Domain Adaptation by Backpropagation
2206.09591 (2022-06)
Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Data
2207.01784 (2022-07)
A Unified Meta-Learning Framework for Dynamic Transfer Learning
get_aggregated_metrics
brick of this paper's assembly: helper
2 other papers
2 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2006.13256 (2020-06)
Rescaling Egocentric Vision
get_aggregated_metrics_from_dict
brick of this paper's assembly: helper
2 other papers
2 later
1907.12743 (2019-07)
Temporal Attentive Alignment for Large-Scale Video Domain Adaptation
2006.13256 (2020-06)
Rescaling Egocentric Vision
common_shape 1 other paper
1 later
1703.06907 (2017-03)
Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World
crop 1 other paper
1 later
1703.06907 (2017-03)
Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World
to_rgba 1 other paper
1 later
1703.06907 (2017-03)
Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World

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

More are linked than shown here.

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

Abstract

We introduce a new representation learning approach for domain adaptation, in which data at training and test time come from similar but different distributions. Our approach is directly inspired by the theory on domain adaptation suggesting that, for effective domain transfer to be achieved, predictions must be made based on features that cannot discriminate between the training (source) and test (target) domains. The approach implements this idea in the context of neural network architectures that are trained on labeled data from the source domain and unlabeled data from the target domain (no labeled target-domain data is necessary). As the training progresses, the approach promotes the emergence of features that are (i) discriminative for the main learning task on the source domain and (ii) indiscriminate with respect to the shift between the domains. We show that this adaptation behaviour can be achieved in almost any feed-forward model by augmenting it with few standard layers and a new gradient reversal layer. The resulting augmented architecture can be trained using standard backpropagation and stochastic gradient descent, and can thus be implemented with little effort using any of the deep learning packages. We demonstrate the success of our approach for two distinct classification problems (document sentiment analysis and image classification), where state-of-the-art domain adaptation performance on standard benchmarks is achieved. We also validate the approach for descriptor learning task in the context of person re-identification application.

For agents

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

get_harvested_code_for_paper("1505.07818")
get_code_for_paper("1505.07818")
have("1505.07818")

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

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

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

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

Connect an agent — have() is free.