SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.10122 · 2018

World Models

J Ürgen Schmidhuber, David Ha

arXiv · PDF · Open in the Atlas

Code that ran

21 of 38 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 13 have no contract verdict; 6 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/1803.10122.json · badge: /api/ran/1803.10122.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
arunavkonwar/world-models community (classifier label)
classifier basis: plan_row
8 ran · 3 no recorded run
hsgrandhi/AIProject community (classifier label)
classifier basis not recorded on the link
4 ran · 3 no recorded run
zacwellmer/worldmodels community (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
neuroevolution-ai/ProcgenAutoencoder community (classifier label)
classifier basis not recorded on the link
1 ran · 4 no recorded run
syigzaw/WorldModels reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
ctallec/world-models reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
hardmaru/WorldModelsExperiments reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
AdeelMufti/WorldModels reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
cataluna84/WorldModels_v1.0 reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
doty-k/world_models reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
AppliedDataSciencePartners/WorldModels reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
activations Ran
ran on a synthesized input
arunavkonwar/world-models/controller/arch.py
code served (permissive licence) · get_code("7002201281413ed7")
How it ran

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

import numpy as np

# The function takes a numpy array 'a' and:
# 1. Applies tanh to the entire array
# 2. Modifies indices [1] and [2] by normalizing them to [0, 1] range
# 3. Returns the modified array

# Construct a numpy array with shape that allows indexing at [1] and [2]
a = np.array([0.5, -0.3, 0.8, 0.2], dtype=np.float32)

ARGS = {
    "a": a
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
adjust_obs Ran
ran on a synthesized input
arunavkonwar/world-models/config.py
code served (permissive licence) · get_code("779b4d674e5259e8")
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 float, shape (2, 4, 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

torch_seed = 0

# Create a numpy array observation
obs = np.random.randint(0, 256, size=(2, 4, 3), dtype='uint8')

ARGS = {
    'obs': obs
}
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 float, shape (2, 4, 3) — shape (2, 4, 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
adjust_reward Ran
ran on a synthesized input
hsgrandhi/AIProject/config.py
code served (permissive licence) · get_code("ad92bf94d88369c2")
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)

# The function adjust_reward takes a single parameter 'reward'
# It checks if reward > 0 and returns 1 or 0 accordingly
# The parameter should be a numeric value (int, float, or scalar tensor)

# Test with a positive scalar value
reward_value = 0.5

ARGS = {
    "reward": reward_value
}
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
clip Ran
ran on a synthesized input
zacwellmer/worldmodels/WorldModels/controller.py
code served (permissive licence) · get_code("b394fa6e4fc0c392")
How it ran

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

import numpy as np

# Create test data for the clip function
x = np.array([[-0.5, 0.3, 1.5, 2.0],
              [0.1, 0.9, -1.0, 0.5]])

lo = 0.0
hi = 1.0

ARGS = {
    "x": x,
    "lo": lo,
    "hi": hi
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_centered_ranks Ran
ran, violated the contract we drafted
arunavkonwar/world-models/es.py
code served (permissive licence) · get_code("ca7653e52833d6c9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (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 numpy as np

# Examine the function signature and body:
# compute_centered_ranks(x) takes a single parameter x
# The function calls:
#   - x.ravel() - needs to support numpy array operations
#   - x.shape - needs to be a numpy array
#   - x.size - needs to support size attribute

# Create a simple 1D numpy array for testing
x = np.array([3.5, 1.2, 4.8, 2.1, 0.9], dtype=np.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (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
compute_ranks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
arunavkonwar/world-models/es.py
code served (permissive licence) · get_code("eb0179d8567680a5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (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 numpy as np

# The function compute_ranks takes a 1D array x and returns ranks in [0, len(x))
# It requires:
# - x: a 1D numpy array of numeric values

# Create a small 1D numpy array with distinct values
x = np.array([3.5, 1.2, 4.1, 2.8, 0.5])

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (5,) — shape (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
compute_weight_decay Ran
ran on a synthesized input
arunavkonwar/world-models/es.py
code served (permissive licence) · get_code("9a15dba37b6cc854")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (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
import torch

torch.manual_seed(0)

# Construct valid arguments for compute_weight_decay

# weight_decay: a scalar float value
weight_decay = 0.01

# model_param_list: a list of numpy arrays representing model parameters
# The function converts this to a 2D numpy array and computes mean squared parameters per row
# So we need a list where each element is a 1D array of parameters
model_param_list = [
    np.array([0.5, -0.3, 0.2, 0.1]),
    np.array([0.1, 0.4, -0.2, 0.3]),
    np.array([-0.1, 0.2, 0.5, -0.4])
]

ARGS = {
    "weight_decay": weight_decay,
    "model_param_list": model_param_list
}
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 ndarray, ndim 1, dtype family float, shape (3,) — shape (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
create_folder_structure Ran
ran on a synthesized input
neuroevolution-ai/ProcgenAutoencoder/autoencoder_training.py
code served (permissive licence) · get_code("9db304a7e5497d3f")
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 os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

ARGS = {
    'directory': temp_dir + '/',
    'name_model': 'TestAutoencoder'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
encode_episode Ran
ran on a synthesized input
hsgrandhi/AIProject/03_generate_rnn_data.py
code served (permissive licence) · get_code("3c6e387c07be249c")
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
import torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal VAE encoder that has a predict method
class MinimalEncoder(nn.Module):
    def __init__(self, input_dim, latent_dim):
        super().__init__()
        self.fc = nn.Linear(input_dim, latent_dim * 2)
        self.latent_dim = latent_dim
        self.input_dim = input_dim
    
    def predict(self, obs):
        # obs shape: (batch_size, input_dim)
        # Return mu, log_var, and a dummy third value
        batch_size = obs.shape[0]
        x = obs.astype(np.float32)
        x_tensor = torch.from_numpy(x)
        output = self.fc(x_tensor).detach().numpy()
        mu = output[:, :self.latent_dim]
        log_var = output[:, self.latent_dim:]
        dummy = np.zeros((batch_size, 1))
        return mu, log_var, dummy

class MinimalVAE(nn.Module):
    def __init__(self):
        super().__init__()
        self.encoder = MinimalEncoder(input_dim=5, latent_dim=4)

# Create VAE instance
vae = MinimalVAE()

# Create a minimal episode dict with required keys
episode = {
    'obs': np.random.randn(2, 5).astype(np.float32),  # batch_size=2, obs_dim=5
    'action': np.array([0, 1], dtype=np.int32),  # batch_size=2
    'reward': np.array([0.5, 1.5], dtype=np.float32),  # batch_size=2
    'done': np.array([False, True], dtype=bool)  # batch_size=2
}

ARGS = {
    'vae': vae,
    'episode': episode
}
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 — 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
encode_result_packet Ran
ran, honoured the contract we drafted
arunavkonwar/world-models/05_train_controller.py
code served (permissive licence) · get_code("91277656d56a208d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family int, shape (10,) 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

# The function expects results to be a 2D array-like structure
# where columns 2 and 3 (indices 2:4) will be multiplied by PRECISION
# Let's create a small 2D array with shape (2, 5) to have enough columns

results = np.array([
    [1.0, 2.0, 3.5, 4.7, 5.0],
    [6.0, 7.0, 8.2, 9.3, 10.0]
])

ARGS = {
    'results': results
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (10,) — shape (10,) 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
encode_solution_packets Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
arunavkonwar/world-models/05_train_controller.py
code served (permissive licence) · get_code("8b59cd0f4edbb9e3")
How it ran

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

import numpy as np

num_worker = 8
num_worker_trial = 16

# We need to create seeds and solutions such that:
# - seeds is a list of integers (seed values)
# - solutions is a list of arrays (each array represents a solution)
# - The total number of elements should be divisible by num_worker for splitting

# Let's create a small example with n elements
# Since num_worker = 8, we want the total flattened result to be divisible by 8
# Each iteration adds: [worker_num, i, seed, train_mode, max_len] (5 elements) + solution array

# Let's use n=16 (num_worker_trial) to have 1 worker per trial initially
n = 16

seeds = [100 + i for i in range(n)]

# Each solution is a small array of floats
# Let's make each solution have 3 elements
solutions = [np.array([0.1 * i, 0.2 * i, 0.3 * i]) for i in range(n)]

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

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

import numpy as np

num_worker = 8
num_worker_trial = 16
PRECISION = 10000

# We need to create seeds and solutions such that:
# - len(seeds) should be divisible by num_worker to avoid issues with np.split
# - Each solution should be a list/array of numbers that can be multiplied by PRECISION
# - The function will create packets for each seed-solution pair

# Since num_worker = 8 and num_worker_trial = 16, let's use 16 seeds/solutions
# This ensures we have 2 workers worth of trials (16 / num_worker_trial = 1, but we add 1)

n_items = 16

seeds = list(range(n_items))  # [0, 1, 2, ..., 15]

# Each solution is a small array of floats
solutions = []
for i in range(n_items):
    # Create small solution arrays with 3 elements each
    solutions.append([0.1 * i, 0.2 * i, 0.3 * i])

max_len = 100

ARGS = {
    'seeds': seeds,
    'solutions': solutions,
    'max_len': max_len
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_data_action Ran
ran on a synthesized input
arunavkonwar/world-models/config.py
code served (permissive licence) · get_code("714eb9398f748fd8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (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
import random

random.seed(0)
np.random.seed(0)

# Analyze the function:
# - t: an integer (time step), used in comparisons with 60 and modulo 5
# - current_action: a numpy array, returned as-is in one branch

t = 45
current_action = np.array([0.5, 0.3, 0.1])

ARGS = {
    "t": t,
    "current_action": current_action
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (3,) — shape (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
generate_data_action Ran
ran on a synthesized input
hsgrandhi/AIProject/config.py
code served (permissive licence) · get_code("b3600b6b2de788c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (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
import random
import gym

# Create a simple mock environment with an action_space
class MockEnv:
    def __init__(self):
        self.action_space = gym.spaces.Box(
            low=-1.0, high=1.0, shape=(3,), dtype=np.float32
        )

# Set random seeds for reproducibility
random.seed(42)
np.random.seed(42)

# Create environment instance
env = MockEnv()

# Define ARGS dict with all parameters
ARGS = {
    "t": 15,
    "env": env
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gym, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (3,) — shape (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
get_pi_idx Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hardmaru/WorldModelsExperiments/carracing/dream_env.py
pointer only (licence: NONE) · get_code("7bb85eb640efb52d")
How it ran

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

loss_function Ran
ran; our contract draft was wrong, not the code
ctallec/world-models/trainvae.py
code served (permissive licence) · get_code("46304a89b6b8c121")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create tiny tensors for VAE loss function
# recon_x: reconstructed output from decoder (batch_size=2, feature_dim=4)
recon_x = torch.randn(2, 4)

# x: original input (batch_size=2, feature_dim=4)
x = torch.randn(2, 4)

# mu: mean of latent distribution (batch_size=2, latent_dim=3)
mu = torch.randn(2, 3)

# logsigma: log of standard deviation of latent distribution (batch_size=2, latent_dim=3)
logsigma = torch.randn(2, 3)

ARGS = {
    'recon_x': recon_x,
    'x': x,
    'mu': mu,
    'logsigma': logsigma
}
Setup block drafted by
a language model, Claude Sonnet 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
random_batch Ran
ran on a synthesized input
hsgrandhi/AIProject/04_train_rnn.py
code served (permissive licence) · get_code("ec5eb98a69771c02")
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 2, 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 os
import tempfile

# Create a temporary directory to serve as SERIES_DIR_NAME
temp_dir = tempfile.mkdtemp()
series_dir = os.path.join(temp_dir, 'series')
os.makedirs(series_dir, exist_ok=True)

# Create sample .npz files
np.random.seed(0)
filelist = []
for i in range(5):
    filename = f'series_{i}.npz'
    filelist.append(filename)
    
    # Create sample data matching what random_batch expects
    mu = np.random.randn(10, 4)  # 10 timesteps, 4-dim latent
    log_var = np.random.randn(10, 4)
    action = np.random.randn(10, 3)  # 10 timesteps, 3-dim action
    reward = np.random.randn(10)
    done = np.random.randint(0, 2, size=(10,))
    
    filepath = os.path.join(series_dir, filename)
    np.savez(filepath, mu=mu, log_var=log_var, action=action, reward=reward, done=done)

# Monkey-patch the SERIES_DIR_NAME in the function's module
import sys
import types
module = types.ModuleType('test_module')
module.SERIES_DIR_NAME = series_dir
sys.modules['test_module'] = module

ARGS = {
    'filelist': filelist,
    'batch_size': 2
}
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, ndim 2, 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
rnn_init_state Ran
ran on a synthesized input
zacwellmer/worldmodels/WorldModels/rnn/rnn.py
code served (permissive licence) · get_code("538f1e121b607eaa")
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 EagerTensor, ndim 2, dtype family float, shape (1, 8) 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 tensorflow as tf

class MockRNNCell(tf.keras.layers.Layer):
    def __init__(self):
        super().__init__()
        self.state_size = 8
    
    def get_initial_state(self, batch_size=None, dtype=None):
        return tf.zeros([batch_size, self.state_size], dtype=dtype)

class MockInferenceBase(tf.keras.layers.Layer):
    def __init__(self):
        super().__init__()
        self.cell = MockRNNCell()

class MockRNN(tf.keras.layers.Layer):
    def __init__(self):
        super().__init__()
        self.inference_base = MockInferenceBase()

rnn = MockRNN()

ARGS = {
    'rnn': rnn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (1, 8) — shape (1, 8) 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
rnn_next_state Ran
ran on a synthesized input
zacwellmer/worldmodels/WorldModels/rnn/rnn.py
code served (permissive licence) · get_code("5ea606248ef1a89e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 3, 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 tensorflow as tf
import numpy as np

class MockRNN(tf.Module):
    def __init__(self):
        super().__init__()
        self.lstm_cell = tf.keras.layers.LSTMCell(units=5)
    
    def inference_base(self, inputs, initial_state=None, training=False):
        # inputs shape: [batch, time, features]
        # Returns (output, h, c)
        if initial_state is None:
            batch_size = tf.shape(inputs)[0]
            h = tf.zeros([batch_size, 5], dtype=tf.float32)
            c = tf.zeros([batch_size, 5], dtype=tf.float32)
        else:
            h, c = initial_state
        
        output, [h_new, c_new] = self.lstm_cell(inputs[:, 0, :], [h, c], training=training)
        return output, h_new, c_new

rnn = MockRNN()

z = tf.constant(np.random.randn(4), dtype=tf.float32)
a = tf.constant(np.random.randn(3), dtype=tf.float32)

prev_h = tf.zeros([1, 5], dtype=tf.float32)
prev_c = tf.zeros([1, 5], dtype=tf.float32)
prev_state = [prev_h, prev_c]

ARGS = {
    "rnn": rnn,
    "z": z,
    "a": a,
    "prev_state": prev_state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
simulate Ran
ran on a synthesized input
zacwellmer/worldmodels/WorldModels/controller.py
code served (permissive licence) · get_code("bb98d1b55f68375e")
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 2, 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 random


# Stand-in controller class
class SimpleController:
    def __init__(self):
        self.args = SimpleArgs()
    
    def get_action(self, obs):
        # Return a dummy action
        return 0


# Stand-in args class
class SimpleArgs:
    def __init__(self):
        self.max_frames = 10


# Stand-in environment class
class SimpleEnv:
    def __init__(self):
        self.observation_space_shape = (4,)
    
    def reset(self):
        return np.random.randn(4).astype(np.float32)
    
    def step(self, action):
        obs = np.random.randn(4).astype(np.float32)
        reward = 1.0
        done = False
        info = {}
        return obs, reward, done, info
    
    def render(self, mode='human'):
        pass
    
    def close(self):
        pass
    
    def seed(self, seed_val):
        np.random.seed(seed_val)
        random.seed(seed_val)


controller = SimpleController()
env = SimpleEnv()

ARGS = {
    'controller': controller,
    'env': env,
    'train_mode': False,
    'render_mode': True,
    'num_episode': 2,
    'seed': 42,
    'max_len': 5
}
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, ndim 2, 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
transform_to_weights Ran
ran; our contract draft was wrong, not the code
AdeelMufti/WorldModels/controller.py
pointer only (licence: NONE) · get_code("4e3986fb8c3d3072")
How it ran

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

compress_input_dct Not yet run
unverified (harvested, no recorded run)
cataluna84/WorldModels_v1.0/model.py
code served (permissive licence) · get_code("a3f20419e166eba8")
How it ran

no invocation recorded.

decode_solution_packet Not yet run
unverified (harvested, no recorded run)
arunavkonwar/world-models/05_train_controller.py
code served (permissive licence) · get_code("11d42d7e546811b9")
How it ran

no invocation recorded.

decode_solution_packet Not yet run
unverified (harvested, no recorded run)
syigzaw/WorldModels/05_train_controller.py
code served (permissive licence) · get_code("42793235c6805dbf")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
doty-k/world_models/05_cmaes.py
pointer only (licence: NONE) · get_code("704c9042ecbb6026")
How it ran

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

evaluate Not yet run
unverified (harvested, no recorded run)
ctallec/world-models/traincontroller.py
code served (permissive licence) · get_code("ed841132809e417a")
How it ran

no invocation recorded.

get_filelist Not yet run
unverified (harvested, no recorded run)
hsgrandhi/AIProject/03_generate_rnn_data.py
code served (permissive licence) · get_code("066bfb0d1b959e58")
How it ran

no invocation recorded.

get_filelist Not yet run
unverified (harvested, no recorded run)
hsgrandhi/AIProject/04_train_rnn.py
code served (permissive licence) · get_code("cc59f9b3187428d7")
How it ran

no invocation recorded.

get_mixture_coef Not yet run
unverified (harvested, no recorded run)
arunavkonwar/world-models/rnn/arch.py
code served (permissive licence) · get_code("28da1053026f85e4")
How it ran

no invocation recorded.

has_blue_locks Not yet run
unverified (harvested, no recorded run)
neuroevolution-ai/ProcgenAutoencoder/data_generation/balance_data.py
code served (permissive licence) · get_code("4b115a9b004a9253")
How it ran

no invocation recorded.

has_green_locks Not yet run
unverified (harvested, no recorded run)
neuroevolution-ai/ProcgenAutoencoder/data_generation/balance_data.py
code served (permissive licence) · get_code("7f17768a58cc204c")
How it ran

no invocation recorded.

has_red_locks Not yet run
unverified (harvested, no recorded run)
neuroevolution-ai/ProcgenAutoencoder/data_generation/balance_data.py
code served (permissive licence) · get_code("cb437d8f62056d67")
How it ran

no invocation recorded.

import_data Not yet run
unverified (harvested, no recorded run)
AppliedDataSciencePartners/WorldModels/02_train_vae.py
code served (permissive licence) · get_code("3ccd0377db51a3a2")
How it ran

no invocation recorded.

import_data Not yet run
unverified (harvested, no recorded run)
syigzaw/WorldModels/02_train_vae.py
code served (permissive licence) · get_code("3c54adf8acefdb36")
How it ran

no invocation recorded.

make_controller Not yet run
unverified (harvested, no recorded run)
zacwellmer/worldmodels/WorldModels/controller.py
code served (permissive licence) · get_code("762af0bdb7aa9fb5")
How it ran

no invocation recorded.

make_env Not yet run
unverified (harvested, no recorded run)
hsgrandhi/AIProject/env.py
code served (permissive licence) · get_code("ba7be13bc51628c9")
How it ran

no invocation recorded.

setup_optimizer Not yet run
unverified (harvested, no recorded run)
neuroevolution-ai/ProcgenAutoencoder/autoencoder_training.py
code served (permissive licence) · get_code("2216d05b615869fb")
How it ran

no invocation recorded.

tf_normal Not yet run
unverified (harvested, no recorded run)
arunavkonwar/world-models/rnn/arch.py
code served (permissive licence) · get_code("18d3a7c10dd43aba")
How it ran

no invocation recorded.

Also present in other papers' code

Of 38 samples lifted from this paper's linked repositories, 38 carry a function identity and 0 do not. Of the 38 distinct functions with an identity, 8 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 8 later) and 30 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
compute_centered_ranks 4 other papers
3 dated earlier, 1 later
1703.03864 (2017-03)
Evolution Strategies as a Scalable Alternative to Reinforcement Learning
1712.06560 (2017-12)
Improving Exploration in Evolution Strategies for Deep Reinforcement Learning via a Population of Novelty-Seeking Agents
1712.06567 (2017-12)
Deep Neuroevolution: Genetic Algorithms Are a Competitive Alternative for Training Deep Neural Networks for Reinforcement Learning
and 1 more not named here
compute_ranks 4 other papers
3 dated earlier, 1 later
1703.03864 (2017-03)
Evolution Strategies as a Scalable Alternative to Reinforcement Learning
1712.06560 (2017-12)
Improving Exploration in Evolution Strategies for Deep Reinforcement Learning via a Population of Novelty-Seeking Agents
1712.06567 (2017-12)
Deep Neuroevolution: Genetic Algorithms Are a Competitive Alternative for Training Deep Neural Networks for Reinforcement Learning
and 1 more not named here
get_pi_idx 3 other papers
2 dated earlier, 1 later
1308.0850 (2013-08)
Generating Sequences With Recurrent Neural Networks
1611.03068 (2016-11)
Incremental Sequence Learning
1811.00145 (2018-11)
Scalable End-to-End Autonomous Vehicle Testing via Rare-event Simulation
clip 1 other paper
1 later
1811.00145 (2018-11)
Scalable End-to-End Autonomous Vehicle Testing via Rare-event Simulation
compute_weight_decay 1 other paper
1 later
1811.00145 (2018-11)
Scalable End-to-End Autonomous Vehicle Testing via Rare-event Simulation
decode_solution_packet 1 other paper
1 later
1910.13038 (2019-10)
Learning to Predict Without Looking Ahead: World Models Without Forward Prediction
encode_result_packet 1 other paper
1 later
1910.13038 (2019-10)
Learning to Predict Without Looking Ahead: World Models Without Forward Prediction
encode_solution_packets 1 other paper
1 later
1910.13038 (2019-10)
Learning to Predict Without Looking Ahead: World Models Without Forward Prediction

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 explore building generative neural network models of popular reinforcement learning environments. Our world model can be trained quickly in an unsupervised manner to learn a compressed spatial and temporal representation of the environment. By using features extracted from the world model as inputs to an agent, we can train a very compact and simple policy that can solve the required task. We can even train our agent entirely inside of its own hallucinated dream generated by its world model, and transfer this policy back into the actual environment.

For agents

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

get_harvested_code_for_paper("1803.10122")
get_code_for_paper("1803.10122")
have("1803.10122")

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

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

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

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

Connect an agent — have() is free.