SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.07551 · NeurIPS · 2022

Unknown-Aware Domain Adversarial Learning for Open-Set Domain Adaptation

Kyungwoo Song, Byeonghu Na, Joonho Jang, Donghyeok Shin, Mingi Ji

arXiv · PDF · Open in the Atlas

Code that ran

20 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 8 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 2 failures of our instrument; 3 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/2206.07551.json · badge: /api/ran/2206.07551.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
Solacex/Domain-Consensus-Clustering canonical (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
joonho-jang/uadal marked official in Papers with Code
Papers with Code archive
10 ran · 1 no recorded run
thuml/Separate_to_Adapt community
Papers with Code archive
3 ran · 1 no recorded run
BUserName/PGL community
Papers with Code archive
3 ran · 0 no recorded run
FunctionStatusWhere it lives
AdversarialNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
thuml/Separate_to_Adapt/networks.py
code served (permissive licence) · get_code("f73e366b978d0a46")
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, AdversarialNetwork: 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)

# Define the scheduler function that is referenced but not defined in the code
def aToBSheduler(step, a, b, gamma=10, max_iter=10000):
    """Simple scheduler that interpolates from a to b over max_iter steps."""
    return a + (b - a) * min(step / max_iter, 1.0)

# The AdversarialNetwork class as provided
class GradientReverseLayer(torch.autograd.Function):
    @staticmethod
    def forward(ctx, coeff, input):
        ctx.coeff = coeff
        return input

    @staticmethod
    def backward(ctx, grad_outputs):
        coeff = ctx.coeff
        return (None, -coeff * grad_outputs)

class GradientReverseModule(nn.Module):
    def __init__(self, scheduler):
        super(GradientReverseModule, self).__init__()
        self.scheduler = scheduler
        self.global_step = 0.0
        self.coeff = 0.0
        self.grl = GradientReverseLayer.apply

    def forward(self, x):
        self.coeff = self.scheduler(self.global_step)
        self.global_step += 1.0
        return self.grl(self.coeff, x)

class AdversarialNetwork(nn.Module):
    def __init__(self):
        super(AdversarialNetwork, self).__init__()
        self.main = nn.Sequential()
        self.grl = GradientReverseModule(lambda step: aToBSheduler(step, 0.0, 1.0, gamma=10, max_iter=10000))

    def forward(self, x):
        x = self.grl(x)
        for module in self.main.children():
            x = module(x)
        return x

# Create a test input tensor
test_input = torch.randn(2, 4)

# Instantiate the model
model = AdversarialNetwork()

# Define ARGS - AdversarialNetwork takes no parameters in __init__
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 AdversarialNetwork — 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 AdversarialNetwork 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
BetaMixture1D Ran
ran on a synthesized input · constructed an object; no result was computed
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("5aa20ef89805f477")
How it ran

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

ConstantScheduler Ran
ran, honoured the contract we drafted
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("f546f92da1455b06")
How it ran

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

CosineScheduler Ran
ran, honoured the contract we drafted
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("5347cf29668d0b0f")
How it ran

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

CrossEntropyLoss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("f608fa2fceb2a50c")
How it ran

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

EdgeUpdateNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
BUserName/PGL/models/graphbase.py
code served (permissive licence) · get_code("1be3f94367e35c2f")
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, EdgeUpdateNetwork: 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)

ARGS = {
    'in_features': 4,
    'num_features': 8,
    'ratio': [2, 1],
    'separate_dissimilarity': False,
    'dropout': 0.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 EdgeUpdateNetwork — 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 EdgeUpdateNetwork 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
GradientReverseModule Ran
ran on a synthesized input · constructed an object; no result was computed
thuml/Separate_to_Adapt/networks.py
code served (permissive licence) · get_code("291a55b84ab7b46d")
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, GradientReverseModule: 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)

# Define a simple scheduler function that takes global_step and returns a coefficient
def simple_scheduler(global_step):
    """Simple scheduler that returns a coefficient based on global step"""
    return 0.1 * (1.0 / (1.0 + global_step))

# Create the ARGS dictionary with all parameters for GradientReverseModule
ARGS = {
    "scheduler": simple_scheduler
}
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 GradientReverseModule — 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 GradientReverseModule 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
GraphNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
BUserName/PGL/models/graphbase.py
code served (permissive licence) · get_code("469e273dd44fecc7")
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, GraphNetwork: 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)

class Args:
    def __init__(self):
        self.in_features = 4
        self.node_features = 8
        self.edge_features = 6
        self.num_layers = 2
        self.dropout = 0.1
        self.num_class = 3

ARGS = {
    'args': Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GraphNetwork — 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 GraphNetwork 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
HLoss Ran
ran on a synthesized input
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("46364372b95e3e54")
How it ran

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

LargeAdversarialNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
thuml/Separate_to_Adapt/networks.py
code served (permissive licence) · get_code("2a8f44b421d66127")
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, LargeAdversarialNetwork: 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)

def aToBSheduler(step, A, B, gamma=10, max_iter=10000):
    """Simple scheduler that interpolates from A to B"""
    progress = step / max_iter
    return A + (B - A) * progress

class GradientReverseLayer(torch.autograd.Function):
    @staticmethod
    def forward(ctx, coeff, input):
        ctx.coeff = coeff
        return input

    @staticmethod
    def backward(ctx, grad_outputs):
        coeff = ctx.coeff
        return (None, -coeff * grad_outputs)

class GradientReverseModule(nn.Module):
    def __init__(self, scheduler):
        super(GradientReverseModule, self).__init__()
        self.scheduler = scheduler
        self.global_step = 0.0
        self.coeff = 0.0
        self.grl = GradientReverseLayer.apply

    def forward(self, x):
        self.coeff = self.scheduler(self.global_step)
        self.global_step += 1.0
        return self.grl(self.coeff, x)

class AdversarialNetwork(nn.Module):
    def __init__(self):
        super(AdversarialNetwork, self).__init__()
        self.main = nn.Sequential()
        self.grl = GradientReverseModule(lambda step: aToBSheduler(step, 0.0, 1.0, gamma=10, max_iter=10000))

    def forward(self, x):
        x = self.grl(x)
        for module in self.main.children():
            x = module(x)
        return x

class LargeAdversarialNetwork(AdversarialNetwork):
    def __init__(self, in_feature):
        super(LargeAdversarialNetwork, self).__init__()
        self.ad_layer1 = nn.Linear(in_feature, 1024)
        self.ad_layer2 = nn.Linear(1024, 1024)
        self.ad_layer3 = nn.Linear(1024, 1)
        self.sigmoid = nn.Sigmoid()
        self.main = nn.Sequential(
            self.ad_layer1, 
            nn.BatchNorm1d(1024), 
            nn.LeakyReLU(0.2, inplace=True), 
            self.ad_layer2, 
            nn.BatchNorm1d(1024), 
            nn.LeakyReLU(0.2, inplace=True), 
            self.ad_layer3, 
            self.sigmoid
        )

ARGS = {
    "in_feature": 4
}
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 LargeAdversarialNetwork — 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 LargeAdversarialNetwork 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
NodeUpdateNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
BUserName/PGL/models/graphbase.py
code served (permissive licence) · get_code("802b81f6275e505c")
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, NodeUpdateNetwork: 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)

# Analyze the forward method to determine required tensor shapes:
# - node_feat: (num_tasks, num_data, in_features)
# - edge_feat: (num_tasks, 1, num_data, num_data) after unsqueeze
# - After concat: (num_tasks, num_data, in_features*2)
# - After transpose and unsqueeze: (num_tasks, in_features*2, num_data, 1)
# The network expects Conv2d input with channels = in_features*2

# Set small dimensions with distinct values
num_tasks = 2
num_data = 3
in_features = 4
num_features = 5

# Create node_feat: (num_tasks, num_data, in_features)
node_feat = torch.randn(num_tasks, num_data, in_features)

# Create edge_feat: (num_tasks, num_data, num_data)
# This will be unsqueezed to (num_tasks, 1, num_data, num_data) in forward
edge_feat = torch.randn(num_tasks, num_data, num_data)

ARGS = {
    'in_features': in_features,
    'num_features': num_features,
    'ratio': [2, 1],
    'dropout': 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 NodeUpdateNetwork — 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 NodeUpdateNetwork 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
OptimWithSheduler Ran
ran on a synthesized input · constructed an object; no result was computed
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("48528d3e09cee383")
How it ran

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

StepScheduler Ran
ran, honoured the contract we drafted
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("36077ab7be923757")
How it ran

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

easy_dic Ran
ran; our contract draft was wrong, not the code
Solacex/Domain-Consensus-Clustering/init_config.py
code served (permissive licence) · get_code("adc5e415cd269dea")
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 EasyDict. 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.

from easydict import EasyDict as edict

ARGS = {
    "dic": {
        "key1": "value1",
        "key2": 42,
        "nested_dict": {
            "inner_key1": "inner_value1",
            "inner_key2": 3.14
        },
        "another_nested": {
            "deep_key": "deep_value"
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
easydict — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EasyDict — a EasyDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EasyDict 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
fit_beta_weighted Ran
ran, honoured the contract we drafted
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("d8d7e01f0393c492")
How it ran

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

inverseDecayScheduler Ran
ran, honoured the contract we drafted
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("74e6be8aa01706d3")
How it ran

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

show_config Ran
ran on a synthesized input
Solacex/Domain-Consensus-Clustering/init_config.py
code served (permissive licence) · get_code("9fedc0c25832aa9b")
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)

# The function iterates over config.items() and checks if values are dicts
# It recursively calls itself on nested dicts
# It formats key-value pairs as strings

config = {
    'model_name': 'bert-base',
    'learning_rate': 0.001,
    'batch_size': 32,
    'nested_config': {
        'hidden_size': 768,
        'num_layers': 12,
        'dropout': 0.1
    },
    'epochs': 10,
    'optimizer': 'adam'
}

ARGS = {
    'config': config,
    'sub': False
}
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
to_cuda Ran
ran, honoured the contract we drafted
Solacex/Domain-Consensus-Clustering/utils/cdd.py
code served (permissive licence) · get_code("00780a5caa71ae85")
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 2, dtype family float, shape (2, 4) 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

torch.manual_seed(0)

# The function takes a single parameter 'x' which should be a torch tensor
# The function checks if CUDA is available and moves it to CUDA if so
# We'll pass a small CPU tensor as input

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
type_align Ran
ran, honoured the contract we drafted
Solacex/Domain-Consensus-Clustering/init_config.py
code served (permissive licence) · get_code("3ecaaabd66c84b40")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - type_align takes two parameters: source and target
# - It checks the type of source and converts/returns target based on source's type
# - It handles int, float, str, bool types
# - For unsupported types, it prints a message

# The function uses isinstance checks on source and processes target
# We need to provide valid source and target values

# Test with an int source - target should be converted to int
source = 5
target = 3.14

ARGS = {
    "source": source,
    "target": target
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
weighted_mean Ran
ran, honoured the contract we drafted
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("3e2e36c1b10b8499")
How it ran

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

ExpWeight Not yet run
unverified (harvested, no recorded run)
Solacex/Domain-Consensus-Clustering/trainer/dcc1_trainer.py
code served (permissive licence) · get_code("490b9538e2271517")
How it ran

no invocation recorded.

GradientReverseLayer Not yet run
unverified (harvested, no recorded run)
thuml/Separate_to_Adapt/networks.py
code served (permissive licence) · get_code("00171f464fa4f231")
How it ran

no invocation recorded.

UADAL Not yet run
unverified (harvested, no recorded run)
joonho-jang/uadal/models/model_UADAL.py
pointer only (licence: NONE) · get_code("dea6c8d67cc0ca9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joonho-jang/uadal 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 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 5 later) and 18 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
fit_beta_weighted
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
2110.02027 (2021-10)
ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning
2309.13944 (2023-09)
Provable Training for Graph Contrastive Learning
2310.05424 (2023-10)
Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding
to_cuda 3 other papers
2 dated earlier, 1 later
2002.08681 (2020-02)
Unsupervised Multi-Class Domain Adaptation: Theory, Algorithms, and Practice
2006.04662 (2020-06)
Rethinking Importance Weighting for Deep Learning under Distribution Shift
2309.17310 (2023-09)
Leave-one-out Distinguishability in Machine Learning
easy_dic 1 other paper
1 later
2308.03003 (2023-08)
Cal-SFDA: Source-Free Domain-adaptive Semantic Segmentation with Differentiable Expected Calibration Error
type_align 1 other paper
1 later
2308.03003 (2023-08)
Cal-SFDA: Source-Free Domain-adaptive Semantic Segmentation with Differentiable Expected Calibration Error
weighted_mean
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2310.05424 (2023-10)
Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding

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

Open-Set Domain Adaptation (OSDA) assumes that a target domain contains unknown classes, which are not discovered in a source domain. Existing domain adversarial learning methods are not suitable for OSDA because distribution matching with $\textit{unknown}$ classes leads to negative transfer. Previous OSDA methods have focused on matching the source and the target distribution by only utilizing $\textit{known}$ classes. However, this $\textit{known}$-only matching may fail to learn the target-$\textit{unknown}$ feature space. Therefore, we propose Unknown-Aware Domain Adversarial Learning (UADAL), which $\textit{aligns}$ the source and the target-$\textit{known}$ distribution while simultaneously $\textit{segregating}$ the target-$\textit{unknown}$ distribution in the feature alignment procedure. We provide theoretical analyses on the optimized state of the proposed $\textit{unknown-aware}$ feature alignment, so we can guarantee both $\textit{alignment}$ and $\textit{segregation}$ theoretically. Empirically, we evaluate UADAL on the benchmark datasets, which shows that UADAL outperforms other methods with better feature alignments by reporting state-of-the-art performances.

For agents

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

get_harvested_code_for_paper("2206.07551")
get_code_for_paper("2206.07551")
have("2206.07551")

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

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

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

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

Connect an agent — have() is free.