SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.13916 · ICLR · 2021

Off-Dynamics Reinforcement Learning: Training for Transfer with Domain Classifiers

U Berkeley, Sergey Levine, Benjamin Eysenbach, Shreyas Chaudhari, Swapnil Asawa

arXiv · PDF · Open in the Atlas

Code that ran

21 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 1 violated it and 7 have no contract verdict; 8 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2006.13916.json · badge: /api/ran/2006.13916.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
JannerM/mbpo canonical (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
kchua/handful-of-trials canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
pauldaoudi/food community
Papers with Code archive
9 ran · 2 no recorded run
shreyasc-13/off_domain_rlkit community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
td_target Ran
ran, honoured the contract we drafted
JannerM/mbpo/mbpo/algorithms/mbpo.py
code served (permissive licence) · get_code("31deb9c7be58e00c")
How it ran

Ran in Syntology's jail 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 comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:10:55Z). 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)

# Construct arguments for td_target(reward, discount, next_value)
# The function computes: reward + discount * next_value
# All parameters are numeric values or tensors

reward = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                       [5.0, 6.0, 7.0, 8.0]])  # shape (2, 4)

discount = 0.99  # scalar discount factor

next_value = torch.tensor([[0.5, 0.6, 0.7, 0.8],
                           [0.9, 1.0, 1.1, 1.2]])  # shape (2, 4)

ARGS = {
    "reward": reward,
    "discount": discount,
    "next_value": next_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
Discriminator Ran
ran on a synthesized input · constructed an object; no result was computed
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("85dcfc68165685af")
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, Discriminator: 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "num_input": 4,
    "num_hidden": 8,
    "num_output": 2,
    "device": "cpu",
    "dropout": 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 Discriminator — 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 Discriminator 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
ExpertDataset Ran
ran on a synthesized input · constructed an object; no result was computed
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("3072f035b0c85c12")
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, ExpertDataset: 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 numpy as np
import pickle
import tempfile
import os

torch.manual_seed(0)

# Create a temporary pickle file with mock expert data
temp_dir = tempfile.mkdtemp()
pickle_path = os.path.join(temp_dir, 'expert_data.pickle')

# Create mock expert trajectory data
num_total_trajs = 5
traj_length = 10
state_dim = 4
action_dim = 3

mock_data = {
    'states': np.random.randn(num_total_trajs, traj_length, state_dim).astype(np.float32),
    'actions': np.random.randn(num_total_trajs, traj_length, action_dim).astype(np.float32),
    'pretanh_actions': np.random.randn(num_total_trajs, traj_length, action_dim).astype(np.float32),
    'next_states': np.random.randn(num_total_trajs, traj_length, state_dim).astype(np.float32),
    'rewards': np.random.randn(num_total_trajs, traj_length).astype(np.float32),
    'lengths': np.array([traj_length] * num_total_trajs, dtype=np.int32),
}

# Save to pickle file
with open(pickle_path, 'wb') as f:
    pickle.dump(mock_data, f)

ARGS = {
    'filename': pickle_path,
    'num_trajs': 2,
    'subsample_frequency': 2,
    'to_add': 'obs_act',
}
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 ExpertDataset — the run constructed an instance of its own class and did not call it; no shape 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
RolloutStorage Ran
ran on a synthesized input · constructed an object; no result was computed
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("d5c0698f7ffe2457")
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, RolloutStorage: 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 numpy as np
from gym import spaces

torch.manual_seed(0)

# Create a minimal action space
class SimpleActionSpace:
    def __init__(self):
        self.shape = (2,)
        self.n = 4

action_space = SimpleActionSpace()

# Define ARGS with all required parameters for RolloutStorage
ARGS = {
    "num_steps": 5,
    "num_processes": 2,
    "obs_shape": (4,),
    "action_space": action_space,
    "recurrent_hidden_state_size": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gym, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RolloutStorage — 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 RolloutStorage 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
RunningMeanStd Ran
ran on a synthesized input · constructed an object; no result was computed
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("54a2a67d3023c95b")
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, RunningMeanStd: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "epsilon": 0.0001,
    "shape": (4,),
}
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 RunningMeanStd — 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 RunningMeanStd 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
_flatten_helper Ran
ran; our contract draft was wrong, not the code
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("0207b2d8ce743999")
How it ran

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

import torch

torch.manual_seed(0)

T = 2
N = 3
_tensor = torch.randn(T, N, 4, 5)

ARGS = {
    "T": T,
    "N": N,
    "_tensor": _tensor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (6, 4, 5) — shape (6, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clip_magnitude Ran
ran, honoured the contract we drafted
shreyasc-13/off_domain_rlkit/rlkit/pythonplusplus.py
pointer only (licence: MIT); the stored copy get_code serves, from aviralkumar2907/CQL, is pointer only (licence: NONE) · get_code("93d28ca67303e04b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aviralkumar2907/CQL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_read_only Ran
ran on a synthesized input
kchua/handful-of-trials/dmbrl/config/default.py
code served (permissive licence) · get_code("738c96c362e9ea1d")
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 function. 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

def create_read_only(message):
    def read_only(arg):
        raise RuntimeError(message)
    return read_only

ARGS = {
    "message": "This operation is read-only and cannot be modified"
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
create_stats_ordered_dict Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shreyasc-13/off_domain_rlkit/rlkit/core/eval_util.py
pointer only (licence: MIT); the stored copy get_code serves, from aviralkumar2907/CQL, is pointer only (licence: NONE) · get_code("fadf5f762ff04cd6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aviralkumar2907/CQL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

expert_data_loader Ran
ran; our contract draft was wrong, not the code
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("6e7428e76d042cba")
How it ran

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

import torch
import torch.utils.data

torch.manual_seed(0)

class ExpertDataset(torch.utils.data.Dataset):
    def __init__(self, num_trajs=10):
        self.num_trajs = num_trajs
        self.data = [(torch.randn(4), torch.randn(3)) for _ in range(20)]
    
    def __len__(self):
        return len(self.data)
    
    def __getitem__(self, idx):
        return self.data[idx]

dataset = ExpertDataset(num_trajs=10)
drop_last = True
num_grad_steps = 5

ARGS = {
    "dataset": dataset,
    "drop_last": drop_last,
    "num_grad_steps": num_grad_steps,
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_samples_for_training Ran
ran; our contract draft was wrong, not the code
JannerM/mbpo/mbpo/models/constructor.py
code served (permissive licence) · get_code("1bb5583dba32f555")
How it ran

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

import numpy as np

# Create sample data with distinct dimensions
batch_size = 2
obs_dim = 4
action_dim = 3
reward_dim = 1

# Create observations: shape (batch_size, obs_dim)
observations = np.random.randn(batch_size, obs_dim).astype(np.float32)

# Create actions: shape (batch_size, action_dim)
actions = np.random.randn(batch_size, action_dim).astype(np.float32)

# Create next_observations: shape (batch_size, obs_dim)
next_observations = np.random.randn(batch_size, obs_dim).astype(np.float32)

# Create rewards: shape (batch_size, reward_dim)
rewards = np.random.randn(batch_size, reward_dim).astype(np.float32)

# Construct the samples dict
samples = {
    'observations': observations,
    'actions': actions,
    'next_observations': next_observations,
    'rewards': rewards
}

ARGS = {
    'samples': samples
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_average_returns Ran
ran, honoured the contract we drafted
shreyasc-13/off_domain_rlkit/rlkit/core/eval_util.py
pointer only (licence: MIT); the stored copy get_code serves, from aviralkumar2907/CQL, is pointer only (licence: NONE) · get_code("a5d10a0b704c8db7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aviralkumar2907/CQL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_dataset Ran
ran; our contract draft was wrong, not the code
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("c49250e1563ad2cd")
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 ExpertDataset. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
import pickle
import tempfile
import os

torch.manual_seed(0)

# Create a temporary pickle file with mock expert data
temp_dir = tempfile.mkdtemp()
pickle_file = os.path.join(temp_dir, 'expert_data.pickle')

# Create mock expert trajectories data
num_total_trajs = 5
traj_length = 10
state_dim = 4
action_dim = 3

mock_data = {
    'states': np.random.randn(num_total_trajs, traj_length, state_dim).astype(np.float32),
    'actions': np.random.randn(num_total_trajs, traj_length, action_dim).astype(np.float32),
    'pretanh_actions': np.random.randn(num_total_trajs, traj_length, action_dim).astype(np.float32),
    'next_states': np.random.randn(num_total_trajs, traj_length, state_dim).astype(np.float32),
    'rewards': np.random.randn(num_total_trajs, traj_length).astype(np.float32),
    'lengths': np.array([traj_length] * num_total_trajs, dtype=np.int64),
}

with open(pickle_file, 'wb') as f:
    pickle.dump(mock_data, f)

ARGS = {
    'filename': pickle_file,
    'num_trajs': 2,
    'subsample_frequency': 2,
    'to_add': 'obs_act',
}
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 ExpertDataset — a ExpertDataset 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
get_required_argument Ran
ran; our contract draft was wrong, not the code
JannerM/mbpo/mbpo/models/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from quanvuong/handful-of-trials-pytorch, is pointer only (licence: NONE) · get_code("4eb5226056a1f70f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from quanvuong/handful-of-trials-pytorch, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

identity Ran
ran, honoured the contract we drafted
shreyasc-13/off_domain_rlkit/rlkit/pythonplusplus.py
pointer only (licence: MIT); the stored copy get_code serves, from dholzmueller/universal_double_descent, is pointer only (licence: NONE) · get_code("9910e2fc297f8665")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dholzmueller/universal_double_descent, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_numeric Ran
ran, violated the contract we drafted
shreyasc-13/off_domain_rlkit/rlkit/pythonplusplus.py
pointer only (licence: MIT); the stored copy get_code serves, from aviralkumar2907/CQL, is pointer only (licence: NONE) · get_code("4138766e854db009")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aviralkumar2907/CQL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_bool Ran
ran on a synthesized input
kchua/handful-of-trials/dmbrl/config/default.py
code served (permissive licence) · get_code("22eb5e3f463c48d7")
How it ran

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

import torch

torch.manual_seed(0)

ARGS = {
    'arg': '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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mass_center Ran
ran on a synthesized input
JannerM/mbpo/mbpo/env/humanoid.py
code served (permissive licence) · get_code("46bd205700c42f20")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

class MockModel:
    def __init__(self):
        # body_mass should be a 1D array of masses for each body
        # Using 4 bodies with distinct masses
        self.body_mass = np.array([1.0, 2.0, 3.0, 4.0])

class MockSimData:
    def __init__(self):
        # xipos should be shape (n_bodies, 3) for 3D positions
        # 4 bodies, 3 spatial dimensions
        self.xipos = np.array([
            [1.0, 2.0, 3.0],
            [4.0, 5.0, 6.0],
            [7.0, 8.0, 9.0],
            [10.0, 11.0, 12.0]
        ])

class MockSim:
    def __init__(self):
        self.data = MockSimData()

model = MockModel()
sim = MockSim()

ARGS = {
    "model": model,
    "sim": sim
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
obs_batch_normalize Ran
ran; our contract draft was wrong, not the code
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("0642a6a4bea7b65a")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

class RunningMeanStd:
    """Minimal RunningMeanStd implementation with mean, var attributes and update method."""
    def __init__(self, epsilon=1e-4, shape=()):
        self.mean = np.zeros(shape, dtype=np.float64)
        self.var = np.ones(shape, dtype=np.float64)
        self.count = epsilon
    
    def update(self, x):
        """Update running mean and variance with new batch x."""
        batch_mean = np.mean(x, axis=0)
        batch_var = np.var(x, axis=0)
        batch_count = x.shape[0]
        self.update_from_moments(batch_mean, batch_var, batch_count)
    
    def update_from_moments(self, batch_mean, batch_var, batch_count):
        delta = batch_mean - self.mean
        tot_count = self.count + batch_count
        
        new_mean = self.mean + delta * batch_count / tot_count
        m_a = self.var * self.count
        m_b = batch_var * batch_count
        M2 = m_a + m_b + np.square(delta) * self.count * batch_count / tot_count
        new_var = M2 / tot_count
        
        self.mean = new_mean
        self.var = new_var
        self.count = tot_count

obs_tnsr = torch.randn(2, 4)
update_rms = True
rms_obj = RunningMeanStd(shape=(4,))

ARGS = {
    "obs_tnsr": obs_tnsr,
    "update_rms": update_rms,
    "rms_obj": rms_obj,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
simple_separated_format Ran
ran; our contract draft was wrong, not the code
shreyasc-13/off_domain_rlkit/rlkit/core/tabulate.py
pointer only (licence: MIT); the stored copy get_code serves, from aviralkumar2907/CQL, is pointer only (licence: NONE) · get_code("5cb0c55f58279f59")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aviralkumar2907/CQL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

update_mean_var_count_from_moments Ran
ran, honoured the contract we drafted
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("e2024afc1a6905ff")
How it ran

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

import numpy as np

np.random.seed(0)

# Create small numpy arrays for the running statistics
mean = np.array([0.1, 0.2, 0.3, 0.4])
var = np.array([0.01, 0.02, 0.03, 0.04])
count = 10.0

# Create small numpy arrays for the batch statistics
batch_mean = np.array([0.15, 0.25, 0.35, 0.45])
batch_var = np.array([0.015, 0.025, 0.035, 0.045])
batch_count = 5

ARGS = {
    "mean": mean,
    "var": var,
    "count": count,
    "batch_mean": batch_mean,
    "batch_var": batch_var,
    "batch_count": batch_count,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ConcatDiscriminator Not yet run
unverified (harvested, no recorded run)
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("4bf00ffb22a14dca")
How it ran

no invocation recorded.

NetworksManager Not yet run
unverified (harvested, no recorded run)
pauldaoudi/food/agents/algos_utils/darc_utils/networks_manager.py
code served (permissive licence) · get_code("a1e7649f2401900f")
How it ran

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, 12 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 6 the same month, 10 later) and 11 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
identity 69 other papers
14 dated earlier, 3 the same month, 52 later · 5 only as an assembly brick
1706.07296 (2017-06)
A Minimal Developmental Model Can Increase Evolvability in Soft Robots
1802.09419 (2018-02)
Stochastic Hyperparameter Optimization through Hypernetworks
1804.06055 (2018-04)
Co-occurrence Feature Learning from Skeleton Data for Action Recognition and Detection with Hierarchical Aggregation
and 66 more not named here
simple_separated_format 27 other papers
5 dated earlier, 2 the same month, 20 later
1903.08254 (2019-03)
Efficient Off-Policy Meta-Reinforcement Learning via Probabilistic Context Variables
1910.11670 (2019-10)
Contextual Imagined Goals for Self-Supervised Robotic Learning
1910.12827 (2019-10)
Entity Abstraction in Visual Model-Based Reinforcement Learning
and 24 more not named here
get_average_returns 24 other papers
3 dated earlier, 1 the same month, 20 later
1903.08254 (2019-03)
Efficient Off-Policy Meta-Reinforcement Learning via Probabilistic Context Variables
1910.11670 (2019-10)
Contextual Imagined Goals for Self-Supervised Robotic Learning
1912.11032 (2019-12)
Towards Practical Multi-Object Manipulation using Relational Reinforcement Learning
and 21 more not named here
create_stats_ordered_dict 18 other papers
1 dated earlier, 1 the same month, 16 later
1910.11670 (2019-10)
Contextual Imagined Goals for Self-Supervised Robotic Learning
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2010.08252 (2020-10)
Hyperparameter Auto-Tuning in Self-Supervised Robotic Learning
and 15 more not named here
clip_magnitude 15 other papers
4 dated earlier, 1 the same month, 10 later
1910.11670 (2019-10)
Contextual Imagined Goals for Self-Supervised Robotic Learning
1910.12827 (2019-10)
Entity Abstraction in Visual Model-Based Reinforcement Learning
1911.08453 (2019-11)
Planning with Goal-Conditioned Policies
and 12 more not named here
is_numeric 14 other papers
4 dated earlier, 1 the same month, 9 later
1910.11670 (2019-10)
Contextual Imagined Goals for Self-Supervised Robotic Learning
1910.12827 (2019-10)
Entity Abstraction in Visual Model-Based Reinforcement Learning
1911.08453 (2019-11)
Planning with Goal-Conditioned Policies
and 11 more not named here
td_target 8 other papers
3 dated earlier, 5 later
1703.03400 (2017-03)
Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks
1812.05905 (2018-12)
Soft Actor-Critic Algorithms and Applications
1906.08253 (2019-06)
When to Trust Your Model: Model-Based Policy Optimization
and 5 more not named here
format_samples_for_training 7 other papers
1 dated earlier, 6 later · 1 only as an assembly brick
2005.13239 (2020-05)
MOPO: Model-based Offline Policy Optimization
2010.09546 (2020-10)
Model-based Policy Optimization with Unsupervised Model Adaptation
2103.13842 (2021-03)
Model Predictive Actor-Critic: Accelerating Robot Skill Acquisition with Deep Reinforcement Learning
and 4 more not named here
get_required_argument 6 other papers
1 dated earlier, 5 later
1805.12114 (2018-05)
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models
2007.01995 (2020-07)
Bidirectional Model-based Policy Optimization
2010.09546 (2020-10)
Model-based Policy Optimization with Unsupervised Model Adaptation
and 3 more not named here
mass_center 4 other papers
4 later
2103.13842 (2021-03)
Model Predictive Actor-Critic: Accelerating Robot Skill Acquisition with Deep Reinforcement Learning
2104.06922 (2021-04)
Safe Continuous Control with Constrained Model-Based Policy Optimization
2110.02793 (2021-10)
Multi-Agent Constrained Policy Optimisation
and 1 more not named here
create_read_only 1 other paper
1 dated earlier
1905.13402 (2019-05)
Safety Augmented Value Estimation from Demonstrations (SAVED): Safe Deep Model-Based RL for Sparse Cost Robotic Tasks
make_bool 1 other paper
1 dated earlier
1905.13402 (2019-05)
Safety Augmented Value Estimation from Demonstrations (SAVED): Safe Deep Model-Based RL for Sparse Cost Robotic Tasks

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

We propose a simple, practical, and intuitive approach for domain adaptation in reinforcement learning. Our approach stems from the idea that the agent's experience in the source domain should look similar to its experience in the target domain. Building off of a probabilistic view of RL, we achieve this goal by compensating for the difference in dynamics by modifying the reward function. This modified reward function is simple to estimate by learning auxiliary classifiers that distinguish source-domain transitions from target-domain transitions. Intuitively, the agent is penalized for transitions that would indicate that the agent is interacting with the source domain, rather than the target domain. Formally, we prove that applying our method in the source domain is guaranteed to obtain a near-optimal policy for the target domain, provided that the source and target domains satisfy a lightweight assumption. Our approach is applicable to domains with continuous states and actions and does not require learning an explicit model of the dynamics. On discrete and continuous control tasks, we illustrate the mechanics of our approach and demonstrate its scalability to high-dimensional tasks.

For agents

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

get_harvested_code_for_paper("2006.13916")
get_code_for_paper("2006.13916")
have("2006.13916")

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

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

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

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

Connect an agent — have() is free.