SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1511.05952 · 2015

Prioritized Experience Replay

David Silver, Ioannis Antonoglou, Tom Schaul, John Quan

arXiv · PDF · Open in the Atlas

Code that ran

80 of 111 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (62 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 68 have no contract verdict; 8 failures of our instrument; 31 no recorded run), measured 2026-11-24; 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/1511.05952.json · badge: /api/ran/1511.05952.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
hill-a/stable-baselines community
not in the paper's declared repositories
6 ran · 4 no recorded run
chandar-lab/RLHive community
not in the paper's declared repositories
6 ran · 3 no recorded run
ku2482/sac-discrete.pytorch community
not in the paper's declared repositories
6 ran · 0 no recorded run
KAIST-AILab/deeprl_practice_colab community
Papers with Code archive
5 ran · 0 no recorded run
CharlotteMorrison/Baxter-Research community
Papers with Code archive
4 ran · 1 no recorded run
emiled16/Beyond_prioritized_experience_replay community
not in the paper's declared repositories
4 ran · 1 no recorded run
tensorlayer/RLzoo community
not in the paper's declared repositories
4 ran · 1 no recorded run
atavakol/action-branching-agents community
not in the paper's declared repositories
4 ran · 1 no recorded run
MathPhysSim/PER-NAF community
Papers with Code archive
4 ran · 1 no recorded run
Damcy/prioritized-experience-replay community
Papers with Code archive
3 ran · 1 no recorded run
Howuhh/prioritized_experience_replay community
Papers with Code archive
3 ran · 0 no recorded run
VictorZuanazzi/Project_RL community
not in the paper's declared repositories
3 ran · 0 no recorded run
backgom2357/Recommender_system_via_deep_RL community
not in the paper's declared repositories
2 ran · 1 no recorded run
VasaKiDD/TD3-deep-rl-research community
not in the paper's declared repositories
2 ran · 1 no recorded run
CharlotteMorrison/Baxter-VREP community
Papers with Code archive
2 ran · 1 no recorded run
Clement-Hui/Q-Learning community
Papers with Code archive
2 ran · 0 no recorded run
kmdanielduan/DQN_Family_PyTorch community
not in the paper's declared repositories
2 ran · 0 no recorded run
mindspore-courses/Rainbow-MindSpore community
not in the paper's declared repositories
2 ran · 0 no recorded run
tphanson/xupr-drl community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
dtak/hip-mdp-public community
not in the paper's declared repositories
1 ran · 1 no recorded run
CharlotteMorrison/Baxter-VREP-Version-2 community
Papers with Code archive
1 ran · 1 no recorded run
SayhoKim/tetrisRL community
Papers with Code archive
1 ran · 1 no recorded run
yzheng51/rl-dino-run community
not in the paper's declared repositories
1 ran · 1 no recorded run
olonok69/Udacity_Banana_Unity community
not in the paper's declared repositories
1 ran · 1 no recorded run
justinmaojones/starr community
not in the paper's declared repositories
1 ran · 1 no recorded run
FunctionStatusWhere it lives
BinaryHeap Ran
ran on a synthesized input · constructed an object; no result was computed
Damcy/prioritized-experience-replay/rank_based.py
code served (permissive licence) · get_code("cd01aba8f501b37d")
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, BinaryHeap: 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 sys
import math

def exchange_key_value(in_dict):
    return dict(((in_dict[i], i) for i in in_dict))

def list_to_dict(in_list):
    return dict(((i, in_list[i]) for i in range(0, len(in_list))))

class utility:
    @staticmethod
    def exchange_key_value(in_dict):
        return exchange_key_value(in_dict)
    
    @staticmethod
    def list_to_dict(in_list):
        return list_to_dict(in_list)

# Test case 1: Initialize with default parameters
ARGS_1 = {
    'priority_size': 100,
    'priority_init': None,
    'replace': True
}

# Test case 2: Initialize with priority_init dictionary
priority_init_dict = {
    1: (0.5, 0),
    2: (0.3, 1),
    3: (0.7, 2)
}

ARGS_2 = {
    'priority_size': 10,
    'priority_init': priority_init_dict,
    'replace': True
}

# Test case 3: Initialize with replace=False
ARGS_3 = {
    'priority_size': 50,
    'priority_init': None,
    'replace': False
}

# Use the first test case as the main ARGS
ARGS = ARGS_1
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 BinaryHeap — 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 BinaryHeap 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
CircularReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
chandar-lab/RLHive/hive/replays/prioritized_replay.py
code served (permissive licence) · get_code("676158087d7ee2f4")
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, CircularReplayBuffer: 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 random

torch.manual_seed(0)
np.random.seed(0)
random.seed(0)

ARGS = {
    'capacity': 1000,
    'stack_size': 4,
    'n_step': 3,
    'gamma': 0.99,
    'observation_shape': (84, 84),
    'observation_dtype': np.uint8,
    'action_shape': (1,),
    'action_dtype': np.int64,
    'reward_shape': (),
    'reward_dtype': np.float32,
    'extra_storage_types': None,
    'num_players_sharing_buffer': None,
}
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 CircularReplayBuffer — 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 CircularReplayBuffer 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
LazyMemory Ran
ran on a synthesized input · constructed an object; no result was computed
ku2482/sac-discrete.pytorch/sacd/memory/per.py
code served (permissive licence) · get_code("5e1b891a436b2bb5")
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, LazyMemory: 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
import torch

torch.manual_seed(0)

ARGS = {
    'capacity': 100,
    'state_shape': (4, 84, 84),
    'device': 'cpu'
}
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 LazyMemory — 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 LazyMemory 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
LazyMultiStepMemory Ran
ran on a synthesized input · constructed an object; no result was computed
ku2482/sac-discrete.pytorch/sacd/memory/per.py
code served (permissive licence) · get_code("108ae49edfcc0ba7")
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, LazyMultiStepMemory: 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
from collections import deque

torch.manual_seed(0)
np.random.seed(0)

# LazyMultiStepMemory expects:
# - capacity: int
# - state_shape: tuple representing state dimensions
# - device: torch device
# - gamma: float (default 0.99)
# - multi_step: int (default 3)

ARGS = {
    'capacity': 100,
    'state_shape': (4, 3),  # Small state shape: 4x3
    'device': torch.device('cpu'),
    'gamma': 0.99,
    'multi_step': 3
}
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 LazyMultiStepMemory — 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 LazyMultiStepMemory 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
LazyPrioritizedMultiStepMemory Ran
ran on a synthesized input · constructed an object; no result was computed
ku2482/sac-discrete.pytorch/sacd/memory/per.py
code served (permissive licence) · get_code("7303883fa36b6ce2")
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, LazyPrioritizedMultiStepMemory: 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
from collections import deque
import operator

torch.manual_seed(0)

# State shape: (4, 3) to represent a 4x3 image-like state
state_shape = (4, 3)
capacity = 10
device = 'cpu'
gamma = 0.99
multi_step = 3
alpha = 0.6
beta = 0.4
eps = 1e-6

# Create sample states as numpy arrays with shape (4, 3)
sample_state = np.random.randint(0, 256, size=state_shape, dtype=np.uint8)
sample_next_state = np.random.randint(0, 256, size=state_shape, dtype=np.uint8)

# Build the ARGS dictionary for LazyPrioritizedMultiStepMemory
ARGS = {
    'capacity': capacity,
    'state_shape': state_shape,
    'device': device,
    'gamma': gamma,
    'multi_step': multi_step,
    'alpha': alpha,
    'beta': beta,
    'eps': eps,
}
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 LazyPrioritizedMultiStepMemory — 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 LazyPrioritizedMultiStepMemory 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
Memory Ran
ran on a synthesized input · constructed an object; no result was computed
KAIST-AILab/deeprl_practice_colab/rllab/dqn/misc/memory_pool.py
pointer only (licence: NONE) · get_code("4f033d771152e1b0")
How it ran

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

MinSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-Research/td3algorithm/priority-replay/prioritized_replay_buffer.py
pointer only (licence: NONE) · get_code("077ddff310bef0b1")
How it ran

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

MinSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
emiled16/Beyond_prioritized_experience_replay/final_buffer.py
pointer only (licence: NONE) · get_code("6c8077ee353ea8dd")
How it ran

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

MinSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
tensorlayer/RLzoo/rlzoo/common/buffer.py
code served (permissive licence) · get_code("d71f774dbe2ff781")
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, MinSegmentTree: 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 operator

ARGS = {
    "capacity": 8,
}
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 MinSegmentTree — 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 MinSegmentTree 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
MinSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
atavakol/action-branching-agents/agents/bdq/deepq/replay_buffer.py
code served (permissive licence) · get_code("8220d704dacacc71")
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, MinSegmentTree: 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.

# Setup code for MinSegmentTree

ARGS = {
    "capacity": 8,
}
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 MinSegmentTree — 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 MinSegmentTree 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
MinSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
MathPhysSim/PER-NAF/pernaf/pernaf/utils/prioritised_experience_replay.py
code served (permissive licence) · get_code("7a8ccb9efbfef877")
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, MinSegmentTree: 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 operator

ARGS = {
    "capacity": 8
}
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 MinSegmentTree — 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 MinSegmentTree 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
MinSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
hill-a/stable-baselines/stable_baselines/common/buffers.py
code served (permissive licence) · get_code("4ecdc9c62de0fbdd")
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, MinSegmentTree: 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 = {
    "capacity": 8
}
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 MinSegmentTree — 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 MinSegmentTree 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
MinTree Ran
ran on a synthesized input · constructed an object; no result was computed
ku2482/sac-discrete.pytorch/sacd/memory/per.py
code served (permissive licence) · get_code("c2c7b84d96ab9ab8")
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, MinTree: 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
from operator import mul

# Construct arguments for MinTree.__init__
# MinTree takes only 'size' parameter
# The size must be a power of 2 (checked by: size > 0 and size & size - 1 == 0)

size = 8  # Valid power of 2

ARGS = {
    'size': size
}
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 MinTree — 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 MinTree 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
MinTree Ran
ran on a synthesized input
backgom2357/Recommender_system_via_deep_RL/replay_buffer.py
pointer only (licence: NONE) · get_code("5f169c1caea8a550")
How it ran

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

PERReplayMemory Ran
ran on a synthesized input · constructed an object; no result was computed
Clement-Hui/Q-Learning/replaymemory.py
pointer only (licence: NONE) · get_code("cffa9035057e30ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Clement-Hui/Q-Learning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PrioritisedExperienceReplay Ran
ran on a synthesized input · constructed an object; no result was computed
HussonnoisMaxence/RL_Algorithms/QLearning/PriotisedExperienceReplay/PrioritisedBuffer.py
pointer only (licence: NONE) · get_code("68bf90ac9c0b86f0")
How it ran

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

PrioritizeBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
VasaKiDD/TD3-deep-rl-research/buffer/FAIreplaybuffer.py
code served (permissive licence) · get_code("a946469f4db97a17")
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, PrioritizeBuffer: 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 numpy as np
import torch
import torch.nn as nn

torch.manual_seed(0)

# Define minimal critic and actor models
class SimpleActor(nn.Module):
    def __init__(self, state_dim=4, action_dim=3):
        super().__init__()
        self.fc = nn.Linear(state_dim, action_dim)
    
    def forward(self, state):
        return self.fc(state)

class SimpleCritic(nn.Module):
    def __init__(self, state_dim=4, action_dim=3):
        super().__init__()
        self.fc = nn.Linear(state_dim + action_dim, 1)
    
    def forward(self, state, action):
        x = torch.cat([state, action], dim=1)
        return self.fc(x)

# Create small instances
actor = SimpleActor(state_dim=4, action_dim=3)
critic = SimpleCritic(state_dim=4, action_dim=3)

# Create sample data to add to buffer
sample_data = [
    (np.array([0.1, 0.2, 0.3, 0.4]), np.array([0.5, 0.6, 0.7, 0.8]), np.array([0.9, 1.0, 1.1]), 1.0, 0),
    (np.array([0.2, 0.3, 0.4, 0.5]), np.array([0.6, 0.7, 0.8, 0.9]), np.array([1.1, 1.2, 1.3]), 0.5, 0),
]

# Build PrioritizeBuffer arguments
ARGS = {
    'max_size': 10,
    'epsilon': 0.001,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PrioritizeBuffer — 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 PrioritizeBuffer 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
PrioritizedExperienceReplay Ran
ran on a synthesized input · constructed an object; no result was computed
Suryavf/SelfDrivingCar/common/prioritized.py
code served (permissive licence) · get_code("7a9dbbb83432ce56")
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, PrioritizedExperienceReplay: 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 = {
    'n_samples': 128,
    'alpha': 1.0,
    'beta': 0.9,
    'betaLineal': True,
    'betaPhase': 50,
    'UCB': False,
    'c': 0.0,
}
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 PrioritizedExperienceReplay — 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 PrioritizedExperienceReplay 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
PrioritizedReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
OMS1996/Carla_The_RL_Self-Driving-Car/Full_Script/FULL_SCRIPT.py
pointer only (licence: NONE) · get_code("5147fd4abb094a4a")
How it ran

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

PrioritizedReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
Howuhh/prioritized_experience_replay/memory/buffer.py
code served (permissive licence) · get_code("9e9658f9014474b4")
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, PrioritizedReplayBuffer: 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 random

torch.manual_seed(0)
random.seed(0)

ARGS = {
    'state_size': 4,
    'action_size': 3,
    'buffer_size': 16,
    'eps': 0.01,
    'alpha': 0.6,
    'beta': 0.4,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PrioritizedReplayBuffer — 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 PrioritizedReplayBuffer 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
PrioritizedReplayMemory Ran
ran on a synthesized input · constructed an object; no result was computed
kmdanielduan/DQN_Family_PyTorch/memory.py
pointer only (licence: NONE) · get_code("e9a7eb1cb21539cf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kmdanielduan/DQN_Family_PyTorch when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PrioritizedReplayMemory Ran
ran on a synthesized input · constructed an object; no result was computed
VictorZuanazzi/Project_RL/code/replay.py
pointer only (licence: NONE) · get_code("47564a504f4f0ba8")
How it ran

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

PriorityQueue Ran
ran on a synthesized input · constructed an object; no result was computed
dtak/hip-mdp-public/ExperienceReplay.py
code served (permissive licence) · get_code("ebc11e08646052be")
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, PriorityQueue: 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 autograd.numpy as np

ARGS = {
    'capacity': 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PriorityQueue — 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 PriorityQueue 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
RankBased Ran
ran on a synthesized input · constructed an object; no result was computed
VictorZuanazzi/Project_RL/code/replay.py
pointer only (licence: NONE) · get_code("4e74fb757285572a")
How it ran

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

Registrable Ran
ran on a synthesized input · constructed an object; no result was computed
chandar-lab/RLHive/hive/replays/prioritized_replay.py
code served (permissive licence) · get_code("0a230e75088d0df9")
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, Registrable: 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

class SimpleRegistrable:
    """Concrete implementation of Registrable for testing."""
    
    @classmethod
    def type_name(cls):
        return "simple_registrable"

ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Registrable — 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 Registrable 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
ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-Research/td3algorithm/priority-replay/prioritized_replay_buffer.py
pointer only (licence: NONE) · get_code("e13397d005876228")
How it ran

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

ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
emiled16/Beyond_prioritized_experience_replay/final_buffer.py
pointer only (licence: NONE) · get_code("4dfb2bb869a28e56")
How it ran

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

ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-VREP/td3/experience/priority_replay_buffer.py
pointer only (licence: NONE) · get_code("c2cbd2d0d7d66167")
How it ran

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

ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
tensorlayer/RLzoo/rlzoo/common/buffer.py
code served (permissive licence) · get_code("f4455aa8614ee649")
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, ReplayBuffer: 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 random
import numpy as np

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

# Create a ReplayBuffer instance and populate it with sample transitions
capacity = 10
buffer = __import__('sys').modules[__name__].__dict__

# Define sample transition components
# States: small numpy arrays (batch_size, feature_dim)
state_1 = np.array([1.0, 2.0, 3.0, 4.0])
action_1 = np.array([0])
reward_1 = np.array([1.0])
next_state_1 = np.array([1.5, 2.5, 3.5, 4.5])
done_1 = np.array([0])

state_2 = np.array([2.0, 3.0, 4.0, 5.0])
action_2 = np.array([1])
reward_2 = np.array([2.0])
next_state_2 = np.array([2.5, 3.5, 4.5, 5.5])
done_2 = np.array([0])

state_3 = np.array([3.0, 4.0, 5.0, 6.0])
action_3 = np.array([0])
reward_3 = np.array([3.0])
next_state_3 = np.array([3.5, 4.5, 5.5, 6.5])
done_3 = np.array([1])

# Import the ReplayBuffer class
class ReplayBuffer(object):
    """A standard ring buffer for storing transitions and sampling for training"""

    def __init__(self, capacity):
        self.capacity = capacity
        self.buffer = []
        self.position = 0

    def push(self, state, action, reward, next_state, done):
        if len(self.buffer) < self.capacity:
            self.buffer.append(None)
        self.buffer[self.position] = (state, action, reward, next_state, done)
        self.position = int((self.position + 1) % self.capacity)

    def sample(self, batch_size):
        indexes = range(len(self))
        idxes = [random.choice(indexes) for _ in range(batch_size)]
        return self._encode_sample(idxes)

    def _encode_sample(self, idxes):
        states, actions, rewards, next_states, dones = ([], [], [], [], [])
        for i in idxes:
            state, action, reward, next_state, done = self.buffer[i]
            states.append(state)
            actions.append(action)
            rewards.append(reward)
            next_states.append(next_state)
            dones.append(done)
        return (np.stack(states), np.stack(actions), np.stack(rewards), np.stack(next_states), np.stack(dones))

    def __len__(self):
        return len(self.buffer)


# Create replay buffer instance and add transitions
replay_buffer = ReplayBuffer(capacity=10)
replay_buffer.push(state_1, action_1, reward_1, next_state_1, done_1)
replay_buffer.push(state_2, action_2, reward_2, next_state_2, done_2)
replay_buffer.push(state_3, action_3, reward_3, next_state_3, done_3)

ARGS = {
    "capacity": 10
}
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 ReplayBuffer — 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 ReplayBuffer 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
ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
atavakol/action-branching-agents/agents/bdq/deepq/replay_buffer.py
code served (permissive licence) · get_code("f6c715a36c9b0278")
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, ReplayBuffer: 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
import random

class ReplayBuffer(object):

    def __init__(self, size):
        """Create Prioritized Replay buffer.

        Parameters
        ----------
        size: int
            Max number of transitions to store in the buffer. When the buffer
            overflows the old memories are dropped.
        """
        self._storage = []
        self._maxsize = size
        self._next_idx = 0

    def __len__(self):
        return len(self._storage)

    def add(self, obs_t, action, reward, obs_tp1, done):
        data = (obs_t, action, reward, obs_tp1, done)
        if self._next_idx >= len(self._storage):
            self._storage.append(data)
        else:
            self._storage[self._next_idx] = data
        self._next_idx = (self._next_idx + 1) % self._maxsize

    def _encode_sample(self, idxes):
        obses_t, actions, rewards, obses_tp1, dones = ([], [], [], [], [])
        for i in idxes:
            data = self._storage[i]
            obs_t, action, reward, obs_tp1, done = data
            obses_t.append(np.array(obs_t, copy=False))
            actions.append(np.array(action, copy=False))
            rewards.append(reward)
            obses_tp1.append(np.array(obs_tp1, copy=False))
            dones.append(done)
        return (np.array(obses_t), np.array(actions), np.array(rewards), np.array(obses_tp1), np.array(dones))

    def sample(self, batch_size):
        """Sample a batch of experiences.

        Parameters
        ----------
        batch_size: int
            How many transitions to sample.

        Returns
        -------
        obs_batch: np.array
            batch of observations
        act_batch: np.array
            batch of actions executed given obs_batch
        rew_batch: np.array
            rewards received as results of executing act_batch
        next_obs_batch: np.array
            next set of observations seen after executing act_batch
        done_mask: np.array
            done_mask[i] = 1 if executing act_batch[i] resulted in
            the end of an episode and 0 otherwise.
        """
        idxes = [random.randint(0, len(self._storage) - 1) for _ in range(batch_size)]
        return self._encode_sample(idxes)

ARGS = {
    "size": 100
}
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 ReplayBuffer — 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 ReplayBuffer 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
ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
Arrabonae/openai_DDDQN/replay.py
code served (permissive licence) · get_code("82024cb507cb1dee")
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, ReplayBuffer: 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 collections
import numpy as np

# ReplayBuffer.__init__ parameters:
# - max_size: int, maximum size of the replay buffer
# - input_shape: tuple, shape of input states
# - n_actions: int, number of possible actions

max_size = 10
input_shape = (4, 3)  # Small state shape (4 height, 3 width)
n_actions = 5

ARGS = {
    "max_size": max_size,
    "input_shape": input_shape,
    "n_actions": n_actions,
}
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 ReplayBuffer — 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 ReplayBuffer 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
ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-VREP-Version-2/td3/experience/priority_replay_buffer.py
pointer only (licence: NONE) · get_code("a1b54613a3985829")
How it ran

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

ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
MathPhysSim/PER-NAF/pernaf/pernaf/utils/prioritised_experience_replay.py
code served (permissive licence) · get_code("46cf03e4d4b628c3")
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, ReplayBuffer: 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
import random

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

# ReplayBuffer.__init__ takes 'size' parameter
# The buffer stores transitions and samples from them
# We need to create a buffer with a reasonable size

ARGS = {
    "size": 100
}
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 ReplayBuffer — 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 ReplayBuffer 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
ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
SayhoKim/tetrisRL/lib/utils/replay_buffer.py
pointer only (licence: NONE) · get_code("867fd67d42cbe6f4")
How it ran

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

ReplayBuffer Ran
ran on a synthesized input
labmlai/annotated_deep_learning_paper_implementations/labml_nn/rl/dqn/replay_buffer.py
code served (permissive licence) · get_code("6e5e90f57a133b61")
How it ran

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

# The class has an incomplete _set_priority_sum method, but we can still construct and call it
# We'll call the 'add' method which is the main computation method

INIT_ARGS = {
    'capacity': 8,
    'alpha': 0.6
}

METHOD = 'add'

ARGS = {
    'obs': np.random.randint(0, 256, size=(4, 84, 84), dtype=np.uint8),
    'action': 3,
    'reward': 1.5,
    'next_obs': np.random.randint(0, 256, size=(4, 84, 84), dtype=np.uint8),
    'done': False
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ReplayBufferPrioritized Ran
ran on a synthesized input · constructed an object; no result was computed
snhwang/p1_navigation_SNH/dqn_agent.py
pointer only (licence: NONE) · get_code("aa138cc7fbe633b7")
How it ran

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

ReplayMemory Ran
ran on a synthesized input · constructed an object; no result was computed
SimonRamstedt/ddpg/replay_memory.py
code served (permissive licence) · get_code("5b683309331178dc")
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, ReplayMemory: 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

# Define ARGS for ReplayMemory.__init__
ARGS = {
    'size': 10,
    'dimO': 4,
    'dimA': 3,
    'dtype': np.float32
}
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 ReplayMemory — 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 ReplayMemory 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
ReplayMemory Ran
ran on a synthesized input · constructed an object; no result was computed
yzheng51/rl-dino-run/memory.py
code served (permissive licence) · get_code("1707b7c98445e28d")
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, ReplayMemory: 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 random
from collections import namedtuple
import torch

Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward'))

class ReplayMemory:
    """Experience replay pool"""

    def __init__(self, capacity):
        self.capacity = capacity
        self.memory = []
        self.position = 0

    def push(self, *args):
        """Saves a transition."""
        if len(self.memory) < self.capacity:
            self.memory.append(None)
        self.memory[self.position] = Transition(*args)
        self.position = (self.position + 1) % self.capacity

    def sample(self, batch_size):
        return random.sample(self.memory, batch_size)

    def __len__(self):
        return len(self.memory)


torch.manual_seed(0)
random.seed(0)

# Create a ReplayMemory instance and populate it with some transitions
capacity = 10
memory = ReplayMemory(capacity)

# Add some sample transitions to the memory
for i in range(5):
    state = torch.randn(4)
    action = torch.tensor([i % 3])
    next_state = torch.randn(4)
    reward = torch.tensor([float(i)])
    memory.push(state, action, next_state, reward)

ARGS = {
    'capacity': capacity
}
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 ReplayMemory — 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 ReplayMemory 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
ReplayMemory Ran
ran on a synthesized input · constructed an object; no result was computed
Clement-Hui/Q-Learning/replaymemory.py
pointer only (licence: NONE) · get_code("176c97171a30da8b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Clement-Hui/Q-Learning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

RingBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
KAIST-AILab/deeprl_practice_colab/rllab/dqn/misc/memory_pool.py
pointer only (licence: NONE) · get_code("9f955f399cfeca91")
How it ran

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

RunningMeanStd Ran
ran on a synthesized input · constructed an object; no result was computed
hill-a/stable-baselines/stable_baselines/common/buffers.py
code served (permissive licence) · get_code("a7d869ac145d41f2")
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

# Define ARGS dictionary with all parameters for RunningMeanStd.__init__
ARGS = {
    'epsilon': 0.0001,
    'shape': (4, 3)
}
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
Seeder Ran
ran on a synthesized input · constructed an object; no result was computed
chandar-lab/RLHive/hive/replays/prioritized_replay.py
code served (permissive licence) · get_code("9951ee949d6a5db4")
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, Seeder: 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 random

class Seeder:
    """Class used to manage seeding in RLHive. It sets the seed for all the frameworks
    that RLHive currently uses. It also deterministically provides new seeds based on
    the global seed, in case any other objects in RLHive (such as the agents) need
    their own seed.
    """

    def __init__(self):
        self._seed = 0
        self._current_seed = 0

    def set_global_seed(self, seed):
        """This reduces some sources of randomness in experiments. To get reproducible
        results, you must run on the same machine and set the environment variable
        CUBLAS_WORKSPACE_CONFIG to ":4096:8" or ":16:8" before starting the experiment.

        Args:
            seed (int): Global seed.
        """
        self._seed = seed
        self._current_seed = seed
        torch.manual_seed(self._seed)
        random.seed(self._seed)
        np.random.seed(self._seed)
        torch.backends.cudnn.benchmark = False
        torch.use_deterministic_algorithms(True)

    def get_new_seed(self):
        """Each time it is called, it increments the current_seed and returns it."""
        self._current_seed += 1
        return self._current_seed


torch.manual_seed(0)

ARGS = {}
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 Seeder — 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 Seeder 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
SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-Research/td3algorithm/priority-replay/prioritized_replay_buffer.py
pointer only (licence: NONE) · get_code("857b5b82ec1ef85f")
How it ran

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

SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
emiled16/Beyond_prioritized_experience_replay/final_buffer.py
pointer only (licence: NONE) · get_code("bccac243c5d88b63")
How it ran

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

SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
tensorlayer/RLzoo/rlzoo/common/buffer.py
code served (permissive licence) · get_code("a0e91d8061b7a6a7")
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, SegmentTree: 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 operator

ARGS = {
    "capacity": 8,
    "operation": operator.add,
    "neutral_element": 0
}
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 SegmentTree — 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 SegmentTree 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
SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
atavakol/action-branching-agents/agents/bdq/deepq/replay_buffer.py
code served (permissive licence) · get_code("56e375a0071d0782")
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, SegmentTree: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# SegmentTree requires:
# 1. capacity: int (must be positive power of 2)
# 2. operation: callable that takes two objects and returns one
# 3. neutral_element: obj that is neutral for the operation

ARGS = {
    "capacity": 8,
    "operation": lambda a, b: max(a, b),
    "neutral_element": float('-inf')
}
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 SegmentTree — 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 SegmentTree 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
SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
MathPhysSim/PER-NAF/pernaf/pernaf/utils/prioritised_experience_replay.py
code served (permissive licence) · get_code("3d07d5a92b97866f")
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, SegmentTree: 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 operator

torch.manual_seed(0)

ARGS = {
    "capacity": 8,
    "operation": operator.add,
    "neutral_element": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SegmentTree — 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 SegmentTree 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
SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
mindspore-courses/Rainbow-MindSpore/segment_tree.py
code served (permissive licence) · get_code("202fb1a633c0ff87")
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, SegmentTree: 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 operator

ARGS = {
    "capacity": 8,
    "operation": operator.add,
    "init_value": 0.0,
}
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 SegmentTree — 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 SegmentTree 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
SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
hill-a/stable-baselines/stable_baselines/common/buffers.py
code served (permissive licence) · get_code("e5cc36169a42bee6")
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, SegmentTree: 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 = {
    "capacity": 8,
    "operation": lambda a, b: a + b,
    "neutral_element": 0
}
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 SegmentTree — 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 SegmentTree 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
SegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
ku2482/sac-discrete.pytorch/sacd/memory/per.py
code served (permissive licence) · get_code("16e63d2f53eb184c")
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, SegmentTree: 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 operator

# SegmentTree requires:
# - size: a power of 2 (positive integer where size & (size - 1) == 0)
# - op: a binary operation function
# - init_val: initial value for the operation

ARGS = {
    "size": 8,
    "op": operator.add,
    "init_val": 0
}
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 SegmentTree — 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 SegmentTree 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
SequentialMemory Ran
ran on a synthesized input · constructed an object; no result was computed
KAIST-AILab/deeprl_practice_colab/rllab/dqn/misc/memory_pool.py
pointer only (licence: NONE) · get_code("3ca0a6aa1ff1103b")
How it ran

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

SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-Research/td3algorithm/priority-replay/prioritized_replay_buffer.py
pointer only (licence: NONE) · get_code("c213d128135c8d6c")
How it ran

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

SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
emiled16/Beyond_prioritized_experience_replay/final_buffer.py
pointer only (licence: NONE) · get_code("cb9820f2f445b8c7")
How it ran

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

SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
CharlotteMorrison/Baxter-VREP/td3/experience/priority_replay_buffer.py
pointer only (licence: NONE) · get_code("25c1b3ae5e411f3d")
How it ran

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

SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
tensorlayer/RLzoo/rlzoo/common/buffer.py
code served (permissive licence) · get_code("41133b037c07a86e")
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, SumSegmentTree: 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 operator

# SumSegmentTree only takes one parameter: capacity
# According to the __init__ docstring and assertions,
# capacity must be a positive power of 2

ARGS = {
    "capacity": 8
}
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 SumSegmentTree — 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 SumSegmentTree 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
SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
atavakol/action-branching-agents/agents/bdq/deepq/replay_buffer.py
code served (permissive licence) · get_code("7e730f8947dd1481")
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, SumSegmentTree: 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 operator

# SumSegmentTree only takes one parameter: capacity
# capacity must be a positive power of 2
# Let's use a small power of 2 for testing

ARGS = {
    "capacity": 8
}
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 SumSegmentTree — 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 SumSegmentTree 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
SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
MathPhysSim/PER-NAF/pernaf/pernaf/utils/prioritised_experience_replay.py
code served (permissive licence) · get_code("06dc39c20552ec26")
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, SumSegmentTree: 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 operator

ARGS = {
    "capacity": 8
}
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 SumSegmentTree — 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 SumSegmentTree 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
SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
mindspore-courses/Rainbow-MindSpore/segment_tree.py
code served (permissive licence) · get_code("524925816c70a4d4")
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, SumSegmentTree: 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 operator

# SumSegmentTree only takes one parameter: capacity
# It must be a positive power of 2
ARGS = {
    "capacity": 8
}
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 SumSegmentTree — 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 SumSegmentTree 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
SumSegmentTree Ran
ran on a synthesized input · constructed an object; no result was computed
hill-a/stable-baselines/stable_baselines/common/buffers.py
code served (permissive licence) · get_code("6c7690e1fbd0d444")
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, SumSegmentTree: 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 = {
    "capacity": 8
}
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 SumSegmentTree — 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 SumSegmentTree 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
SumTree Ran
ran on a synthesized input · constructed an object; no result was computed
kmdanielduan/DQN_Family_PyTorch/memory.py
pointer only (licence: NONE) · get_code("b414f4c639de69a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kmdanielduan/DQN_Family_PyTorch when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Showing the first 60. An agent gets every one from get_harvested_code_for_paper("1511.05952").

Also present in other papers' code

Of 111 samples lifted from this paper's linked repositories, 111 carry a function identity and 0 do not. Of the 99 distinct functions with an identity, 19 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 1 the same month, 10 later) and 80 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
sample_batch_indexes
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
1812.00332 (2018-12)
ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware
2001.00705 (2020-01)
Fractional Skipping: Towards Finer-Grained Dynamic CNN Inference
and 1 more not named here
zeroed_observation
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later · 1 only as an assembly brick
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
1812.00332 (2018-12)
ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware
2001.00705 (2020-01)
Fractional Skipping: Towards Finer-Grained Dynamic CNN Inference
and 1 more not named here
MinSegmentTree
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
SumSegmentTree
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
Memory
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
2209.08646 (2022-09)
DeepTOP: Deep Threshold-Optimal Policy for MDPs and RMABs
LazyMemory
brick of this paper's assembly: helper
1 other paper
1 later
2007.14430 (2020-07)
Munchausen Reinforcement Learning
LazyMultiStepMemory
brick of this paper's assembly: helper
1 other paper
1 later
2007.14430 (2020-07)
Munchausen Reinforcement Learning
LazyPrioritizedMultiStepMemory
brick of this paper's assembly: entry
1 other paper
1 later
2007.14430 (2020-07)
Munchausen Reinforcement Learning
PrioritizedReplayBuffer
brick of this paper's assembly: entry
1 other paper
1 dated earlier
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
PrioritizedReplayBuffer
brick of this paper's assembly: entry
1 other paper
1 dated earlier
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
PrioritizedReplayMemory
brick of this paper's assembly: entry
1 other paper
1 dated earlier · 1 only as an assembly brick
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
ReplayBuffer
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
ReplayMemory
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
SegmentTree
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
SegmentTree
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1509.02971 (2015-09)
Continuous control with deep reinforcement learning
SegmentTree
brick of this paper's assembly: helper
1 other paper
1 later
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
SumTree
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1509.06461 (2015-09)
Deep Reinforcement Learning with Double Q-learning
sample_n_unique
brick of this paper's assembly: helper
1 other paper
1 the same month
1511.06581 (2015-11)
Dueling Network Architectures for Deep Reinforcement Learning
unique
brick of this paper's assembly: helper
1 other paper
1 later
2110.04698 (2021-10)
A Closer Look at Advantage-Filtered Behavioral Cloning in High-Noise Datasets

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-24.

Repositories linked to this paper

More are linked than shown here.

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

Abstract

Experience replay lets online reinforcement learning agents remember and reuse experiences from the past. In prior work, experience transitions were uniformly sampled from a replay memory. However, this approach simply replays transitions at the same frequency that they were originally experienced, regardless of their significance. In this paper we develop a framework for prioritizing experience, so as to replay important transitions more frequently, and therefore learn more efficiently. We use prioritized experience replay in Deep Q-Networks (DQN), a reinforcement learning algorithm that achieved human-level performance across many Atari games. DQN with prioritized experience replay achieves a new stateof-the-art, outperforming DQN with uniform replay on 41 out of 49 games.

For agents

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

get_harvested_code_for_paper("1511.05952")
get_code_for_paper("1511.05952")
have("1511.05952")

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

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

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

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

Connect an agent — have() is free.