SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.05905 · 2018

Soft Actor-Critic Algorithms and Applications

U Berkeley, Abhishek Gupta, Sergey Levine, Pieter Abbeel, Vikash Kumar, Henry Zhu, Kristian Hartikainen, George Tucker, Aurick Zhou, Jie Tan, Tuomas Haarnoja, Sehoon Ha

arXiv · PDF · Open in the Atlas

Code that ran

38 of 40 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 1 violated it and 27 have no contract verdict; 5 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-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/1812.05905.json · badge: /api/ran/1812.05905.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
alpaficia/MOSEAC_Limo community (classifier label)
classifier basis not recorded on the link
17 ran · 1 no recorded run
patrickhart/jaxdl community (classifier label)
classifier basis not recorded on the link
8 ran · 0 no recorded run
thomashirtz/pytorch-soft-actor-critic community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
XuehaiPan/Soft-Actor-Critic community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
ac-93/soft-actor-critic reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
willwhitney/pytorch_sac_lib community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
td_target Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from marc-rigter/rambo
pointer only · get_code("31deb9c7be58e00c")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Action_adapter Ran
ran, honoured the contract we drafted
alpaficia/MOSEAC_Limo/limo-sim/Adapter.py
pointer only (licence: MIT); the stored copy get_code serves, from lqm00/a2p-sac, is pointer only (licence: NONE) · get_code("dbede9400bf58c5b")
How it ran

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

Action_t_relu6_adapter Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/Adapter.py
code served (permissive licence) · get_code("deaa52f139cdd1c5")
How it ran

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

import torch

torch.manual_seed(0)

# The function performs arithmetic operations on its arguments
# a: a tensor or numeric value that will be divided by 6.0
# min_time: a numeric value (minimum time constraint)
# max_action: a numeric value (maximum action constraint)

# Create small tensors for testing
a = torch.randn(2, 4)  # batch size 2, dimension 4
min_time = 0.5
max_action = 2.0

ARGS = {
    "a": a,
    "min_time": min_time,
    "max_action": max_action,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Action_t_relu6_adapter_reverse Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/Adapter.py
code served (permissive licence) · get_code("38bde0e38e928a24")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# def Action_t_relu6_adapter_reverse(act, min_time, max_action):
#     return (act - min_time) * 6.0 / (max_action - min_time)
#
# Parameters:
# - act: numeric value or tensor (used in arithmetic: act - min_time)
# - min_time: numeric value (used in arithmetic: act - min_time, max_action - min_time)
# - max_action: numeric value (used in arithmetic: max_action - min_time)
#
# All parameters are used in basic arithmetic operations, so they should be numeric.

ARGS = {
    'act': torch.tensor([0.5, 1.2, 0.8, 1.5]),
    'min_time': 0.2,
    'max_action': 2.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_net Ran
ran; our contract draft was wrong, not the code
alpaficia/MOSEAC_Limo/limo-sim/MOSEAC.py
code served (permissive licence) · get_code("9b95be60df57db51")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Analyze the function:
# - layer_shape: used with len() and indexing [j], [j+1] - needs to be a sequence of integers
# - activation: called with () to instantiate - needs to be a class (nn.Module)
# - output_activation: called with () to instantiate - needs to be a class (nn.Module)

ARGS = {
    "layer_shape": [4, 8, 6, 3],
    "activation": nn.ReLU,
    "output_activation": nn.Sigmoid,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
char_to_embedding Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/nlp/utils.py
code served (permissive licence) · get_code("9bd9bf43505f329e")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "c": "a"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_devices Ran
ran on a synthesized input
XuehaiPan/Soft-Actor-Critic/common/utils.py
code served (permissive licence) · get_code("2388feda5f812824")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. 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 and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

class Config:
    def __init__(self, gpu=None):
        self.gpu = gpu

# Test case 1: gpu is None
config1 = Config(gpu=None)

# Test case 2: gpu is empty list (should become [0] if CUDA available)
config2 = Config(gpu=[])

# Test case 3: gpu is list of integers
config3 = Config(gpu=[0, 1])

# Test case 4: gpu is list with cpu strings
config4 = Config(gpu=['cpu', 'c', 'CPU', 'C'])

# Test case 5: gpu is mixed
config5 = Config(gpu=[0, 'cpu'])

ARGS = {
    'config': config1
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clone_network Ran
ran on a synthesized input
XuehaiPan/Soft-Actor-Critic/common/utils.py
code served (permissive licence) · get_code("602c623393a80ec7")
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 SimpleNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import copy

torch.manual_seed(0)

# Build a small neural network to use as src_net
class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = torch.relu(self.linear1(x))
        x = self.linear2(x)
        return x

# Instantiate the network
src_net = SimpleNet()
src_net.device = 'cpu'

# Define ARGS with all parameters of clone_network
ARGS = {
    'src_net': src_net,
    'device': 'cpu'
}
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 SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet 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
conv2d_out_dims Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/trackmania/MOSEAC.py
code served (permissive licence) · get_code("f28f43a320c3bcee")
How it ran

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

import torch
import torch.nn as nn
from math import floor

torch.manual_seed(0)

# Create a Conv2d layer with specific parameters
conv_layer = nn.Conv2d(
    in_channels=3,
    out_channels=16,
    kernel_size=(3, 3),
    stride=(1, 1),
    padding=(1, 1),
    dilation=(1, 1)
)

# Input spatial dimensions
h_in = 32
w_in = 48

ARGS = {
    "conv_layer": conv_layer,
    "h_in": h_in,
    "w_in": w_in
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
coordinate_system_conversion Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/envs/limo_world.py
code served (permissive licence) · get_code("123999c9a1cfd9a7")
How it ran

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

import numpy as np

# Construct arguments for coordinate_system_conversion
coordinate = np.array([0.5, -0.3])  # A coordinate in center-origin coordinate system
window_size = (800, 600)  # Window dimensions (width, height)

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

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

import torch

torch.manual_seed(0)

# Create small sample data
# X should be a sequence of feature vectors
# y should be target values
batch_size = 2
feature_dim = 4
total_length = 15  # Need enough data for sequence_length=10

X = torch.randn(total_length, feature_dim)
y = torch.randn(total_length)

sequence_length = 10

ARGS = {
    "X": X,
    "y": y,
    "sequence_length": sequence_length,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_temperature_network_fn Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/rl/networks/temperature_nets.py
code served (permissive licence) · get_code("0441bce96008f1b8")
How it ran

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

import jax
import jax.numpy as jnp
from flax import linen as nn

ARGS = {
    "temperature": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_train_state Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/utils/commons.py
code served (permissive licence) · get_code("79d78013ca3d7e90")
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 TrainState. 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 jax
import jax.numpy as jnp
import flax.linen as nn
from flax.training import train_state
import optax

# Create a simple Flax module
class SimpleModel(nn.Module):
    @nn.compact
    def __call__(self, x):
        x = nn.Dense(4)(x)
        x = nn.relu(x)
        x = nn.Dense(3)(x)
        return x

# Initialize the model
model = SimpleModel()

# Create dummy inputs for initialization
# The model.init() expects (rng_key, *inputs)
rng_key = jax.random.PRNGKey(0)
dummy_input = jnp.ones((2, 5))  # batch size 2, input dim 5

# inputs should be a sequence containing [rng_key, input_data]
inputs = [rng_key, dummy_input]

# Create an optimizer (tx parameter)
tx = optax.adam(learning_rate=0.001)

ARGS = {
    "model": model,
    "inputs": inputs,
    "tx": tx
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, optax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TrainState — a TrainState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TrainState 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
default_init Ran
ran; our contract draft was wrong, not the code
patrickhart/jaxdl/jaxdl/nn/dnn/conv.py
code served (permissive licence) · get_code("7e5ed014bde23917")
How it ran

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

import jax
import jax.numpy as jnp
import flax.linen as nn

# The function default_init takes one optional parameter: scale
# It uses scale as an argument to nn.initializers.orthogonal()
# scale defaults to jnp.sqrt(2) if not provided

# Test with explicit scale value
scale_value = jnp.sqrt(2.0)

ARGS = {
    "scale": scale_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
direction Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/envs/MapEnv.py
code served (permissive licence) · get_code("a877885ebe876589")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function direction(x1, y1, x2, y2, x3, y3) performs a geometric calculation
# on 6 coordinate values. It computes the cross product to determine the direction/orientation.
# All parameters are numeric values (floats or ints).

ARGS = {
    "x1": 1.0,
    "y1": 2.0,
    "x2": 3.0,
    "y2": 4.0,
    "x3": 5.0,
    "y3": 6.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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
distance Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/envs/limo_world.py
code served (permissive licence) · get_code("bd08ae9e89d819a9")
How it ran

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

import numpy as np

# Create two small numpy arrays representing points
point1 = np.array([1.0, 2.0, 3.0, 4.0])
point2 = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "point1": point1,
    "point2": point2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
embeddings_to_sequence Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/nlp/utils.py
code served (permissive licence) · get_code("cd27236f3ce821eb")
How it ran

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

import numpy as np

# The function takes embeddings (np.ndarray) and converts each element to a character
# We need to create a numpy array of integers that are valid Unicode code points

# Create a small array of valid Unicode indices (printable ASCII range)
embeddings = np.array([65, 66, 67, 68], dtype=np.int32)  # A, B, C, D

ARGS = {
    "embeddings": embeddings
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
euler_from_quaternion Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/transformer/Dataset.py
code served (permissive licence) · get_code("d5747c9f46f18c67")
How it ran

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

import math
import torch

torch.manual_seed(0)

# The function expects a quaternion represented as a sequence-like object
# with indices [0], [1], [2], [3] for x, y, z, w components respectively.
# A valid quaternion has w as scalar part and (x,y,z) as vector part.
# We'll use a list with 4 components representing a normalized quaternion.

# Create a valid quaternion (normalized)
quaternion = [0.0, 0.0, 0.7071, 0.7071]  # 90 degree rotation around z-axis

ARGS = {
    "d": quaternion
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_info Ran
ran on a synthesized input
thomashirtz/pytorch-soft-actor-critic/soft_actor_critic/utilities.py
code served (permissive licence) · get_code("8b9e84c1f0190eb4")
How it ran

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

import torch
import numpy as np

# Construct a dictionary with various keys and values
# The function filters for keys containing '/' and numeric values
test_dict = {
    'model/loss': 0.5,
    'model/accuracy': 0.95,
    'train/epoch': 10,
    'train/step': 1000,
    'validation/loss': 0.45,
    'validation/accuracy': 0.97,
    'learning_rate': 0.001,  # no '/' so will be filtered out
    'batch_size': 32,  # no '/' so will be filtered out
    'model/weights': [1, 2, 3],  # has '/' but not numeric, so filtered out
    'config': 'some_string',  # no '/' and not numeric
    'debug/count': 5,
    'debug/ratio': 3.14,
}

ARGS = {
    'dictionary': test_dict
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
forward_mlp_fn Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/nn/dnn/mlp.py
code served (permissive licence) · get_code("c14f3c216e222fea")
How it ran

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

import jax
import jax.numpy as jnp
import flax.linen as nn
from typing import Sequence, Optional, Callable

# Set random seed for reproducibility
key = jax.random.PRNGKey(0)

# Define small test data
observations = jnp.ones((2, 4))  # batch_size=2, input_dim=4

# Define hidden dimensions (distinct sizes for probing)
hidden_dims = (8, 6, 3)

# Define dropout rate
dropout_rate = 0.1

# Define activation function
activations = nn.relu

# Define activate_final flag
activate_final = False

ARGS = {
    "hidden_dims": hidden_dims,
    "dropout_rate": dropout_rate,
    "activations": activations,
    "activate_final": activate_final,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_checkpoint Ran
ran on a synthesized input
XuehaiPan/Soft-Actor-Critic/common/utils.py
code served (permissive licence) · get_code("79802797d8c0124a")
How it ran

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

import tempfile
import os
import pickle

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

# Create some mock checkpoint files matching the CHECKPOINT_PATTERN
checkpoint_files = [
    os.path.join(temp_dir, "model-epoch(1)-reward(0.5).pkl"),
    os.path.join(temp_dir, "model-epoch(2)-reward(1.2).pkl"),
    os.path.join(temp_dir, "model-epoch(3)-reward(0.8).pkl"),
]

# Write dummy pickle files
for checkpoint_file in checkpoint_files:
    with open(checkpoint_file, 'wb') as f:
        pickle.dump({'dummy': 'checkpoint'}, f)

ARGS = {
    'checkpoint_dir': temp_dir,
    'by': 'epoch'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_device Ran
ran on a synthesized input
thomashirtz/pytorch-soft-actor-critic/soft_actor_critic/utilities.py
code served (permissive licence) · get_code("4939a2a384a3f472")
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 device. 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
from typing import Optional

torch.manual_seed(0)

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

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define arguments for get_multilayer_perceptron
unit_list = [4, 8, 16, 3]  # Input layer 4 units, hidden layers 8 and 16, output layer 3
keep_last_relu = False

ARGS = {
    "unit_list": unit_list,
    "keep_last_relu": keep_last_relu,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_parser Ran
ran on a synthesized input
thomashirtz/pytorch-soft-actor-critic/soft_actor_critic/__main__.py
code served (permissive licence) · get_code("f7020d0de65514ff")
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 ArgumentParser. 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 argparse

# The get_parser function takes only one optional parameter: formatter_class
# This parameter defaults to argparse.RawTextHelpFormatter if not provided
# The function simply constructs and returns an ArgumentParser, so we just need
# to provide the formatter_class argument

ARGS = {
    'formatter_class': argparse.RawTextHelpFormatter
}
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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser 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
limo_model_with_friction_and_power Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/envs/limo_world.py
code served (permissive licence) · get_code("0fd29234e415929d")
How it ran

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

import torch

torch.manual_seed(0)

# Construct X tensor with shape (N, 7)
# N=2 data points, 7 features: [current_x, current_y, v, theta, dt, target_v, delta]
N = 2
X = torch.randn(N, 7)

# Set reasonable values for the features
X[:, 0] = torch.tensor([0.0, 1.0])  # current_x
X[:, 1] = torch.tensor([0.0, 1.0])  # current_y
X[:, 2] = torch.tensor([1.0, 2.0])  # v (velocity)
X[:, 3] = torch.tensor([0.0, 0.1])  # theta (angle)
X[:, 4] = torch.tensor([0.1, 0.1])  # dt (time step)
X[:, 5] = torch.tensor([1.5, 2.5])  # target_v
X[:, 6] = torch.tensor([0.05, 0.1]) # delta (steering angle)

# Define parameters
mu_k = 0.3  # coefficient of kinetic friction
power_factor = 5.0  # engine power factor (can be negative)

ARGS = {
    "X": X,
    "mu_k": mu_k,
    "power_factor": power_factor,
    "g": 9.81
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
line_intersection Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/envs/MapEnv.py
code served (permissive licence) · get_code("87d6a56b4a0ff414")
How it ran

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

import numpy as np

# The function takes two line segments, each represented as a pair of points
# Each point is a coordinate pair [x, y]
# line1 and line2 should be in format: [[x1, y1], [x2, y2]]

line1 = [[0.0, 0.0], [2.0, 2.0]]
line2 = [[0.0, 2.0], [2.0, 0.0]]

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

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

import torch
import pandas as pd
import tempfile
import os

torch.manual_seed(0)

# Create a temporary CSV file with the expected structure
# The function expects 7 columns for X and 2 columns for Y (last 2 columns)
# So total 9 columns
temp_dir = tempfile.mkdtemp()
filepath = os.path.join(temp_dir, "test_data.csv")

# Create CSV data: header + 2 rows of data
# 7 features + 2 targets = 9 columns
csv_content = """header_row
1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0
10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0"""

with open(filepath, 'w') as f:
    f.write(csv_content)

ARGS = {
    "filepath": filepath
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mlp Ran
ran; our contract draft was wrong, not the code
willwhitney/pytorch_sac_lib/sac_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from tianyucodings/diffusion_trusted_q_learning, is pointer only (licence: NONE) · get_code("db00dda8b96201d3")
How it ran

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

num_flat_features Ran
ran; our contract draft was wrong, not the code
alpaficia/MOSEAC_Limo/trackmania/MOSEAC.py
pointer only (licence: MIT); the stored copy get_code serves, from AI-secure/PSBA, is pointer only (licence: NONE) · get_code("f9e64946b23edb51")
How it ran

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

point_to_line_distance Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/limo-sim/envs/MapEnv.py
code served (permissive licence) · get_code("636bbc4e4acd04b3")
How it ran

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

import numpy as np

# Construct arguments for point_to_line_distance
# point: numpy array with shape (2,) representing (x, y) coordinates
point = np.array([3.0, 4.0])

# line: numpy array with shape (2, 2) representing endpoints of line segment
# First endpoint at (0, 0), second endpoint at (1, 1)
line = np.array([[0.0, 0.0], [1.0, 1.0]])

ARGS = {
    "point": point,
    "line": line
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_action Ran
ran, honoured the contract we drafted
ac-93/soft-actor-critic/array_observation/sac_discrete/sac.py
code served (permissive licence) · get_code("e5cbade112f15d84")
How it ran

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

import numpy as np

# The function expects:
# - a: an integer or array of integers that will be used to index into np.eye(act_dim)
# - act_dim: an integer representing the action dimension

# Using a single integer action
a = 2
act_dim = 5

ARGS = {
    'a': a,
    'act_dim': act_dim
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_observation Ran
ran, honoured the contract we drafted
ac-93/soft-actor-critic/array_observation/sac_discrete/sac.py
code served (permissive licence) · get_code("22e993f58f0d200b")
How it ran

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

import numpy as np

# For 'Discrete' observation_type, o should be an integer index
# obs_dim defines the size of the one-hot encoding

o = 2  # An integer index for discrete observation
obs_dim = 5  # Dimension of the observation space
observation_type = 'Discrete'

ARGS = {
    'o': o,
    'obs_dim': obs_dim,
    'observation_type': observation_type
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_reward Ran
ran, violated the contract we drafted
ac-93/soft-actor-critic/array_observation/sac_discrete/sac.py
code served (permissive licence) · get_code("1deaa4d231ac8f53")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# The function simply returns the reward as-is, so we need to provide a reward value
# This could be a scalar, tensor, list, etc. We'll provide a tensor as that's common in RL

reward = torch.tensor([0.5, -0.3])

ARGS = {
    "reward": reward
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
restore_train_state Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/utils/commons.py
code served (permissive licence) · get_code("dec1c0e8da1840cb")
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 TrainState. 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 tempfile
import os
from flax import linen as nn
from flax.training import train_state
import jax
import jax.numpy as jnp
import optax


# Create a minimal Flax model
class SimpleModel(nn.Module):
    @nn.compact
    def __call__(self, x):
        x = nn.Dense(4)(x)
        x = nn.relu(x)
        x = nn.Dense(3)(x)
        return x


# Initialize a minimal TrainState
def create_train_state():
    model = SimpleModel()
    key = jax.random.PRNGKey(0)
    params = model.init(key, jnp.ones((2, 4)))['params']
    
    tx = optax.adam(learning_rate=0.001)
    state = train_state.TrainState.create(
        apply_fn=model.apply,
        params=params,
        tx=tx
    )
    return state


# Create temporary workdir
workdir = tempfile.mkdtemp()

# Create the state to be restored
state = create_train_state()

# Define arguments
ARGS = {
    'state': state,
    'workdir': workdir,
    'prefix': 'checkpoint_'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, optax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TrainState — a TrainState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TrainState 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
sequence_to_embeddings Ran
ran on a synthesized input
patrickhart/jaxdl/jaxdl/nlp/utils.py
code served (permissive licence) · get_code("e1e8230d8a78e45a")
How it ran

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

import numpy as np

# The function sequence_to_embeddings takes a string parameter 'squence'
# and converts each character to its embedding (ord value)
# We need to provide a simple string as the argument

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

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

import torch

torch.manual_seed(0)

# Create a tensor of shape (batch_size=2, 12)
# This will be split into forces (8), m_p (2), mu_0 (1), mu_1 (1)
X = torch.randn(2, 12)

ARGS = {
    'X': X
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
str2bool Ran
ran on a synthesized input
alpaficia/MOSEAC_Limo/trackmania/MOSEAC_main.py
code served (permissive licence) · get_code("2e49286df0d4294f")
How it ran

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

import argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'True', 'true', 'TRUE', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'False', 'false', 'FALSE', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test with various inputs
ARGS = {
    'v': 'true'
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_np Ran
ran, honoured the contract we drafted
willwhitney/pytorch_sac_lib/sac_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xingyu-lin/softagent, is pointer only (licence: NONE) · get_code("6ee8c9901ab984a9")
How it ran

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

build_encoder Not yet run
unverified (harvested, no recorded run)
XuehaiPan/Soft-Actor-Critic/common/network.py
code served (permissive licence) · get_code("3be34c49250e699d")
How it ran

no invocation recorded.

is_downtrend Not yet run
unverified (harvested, no recorded run)
alpaficia/MOSEAC_Limo/trackmania/MOSEAC_main.py
code served (permissive licence) · get_code("7ebc825199ab6096")
How it ran

no invocation recorded.

Also present in other papers' code

Of 40 samples lifted from this paper's linked repositories, 40 carry a function identity and 0 do not. Of the 40 distinct functions with an identity, 12 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 10 later) and 28 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
mlp 11 other papers
11 later · 2 only as an assembly brick
2004.13649 (2020-04)
Image Augmentation Is All You Need: Regularizing Deep Reinforcement Learning from Pixels
2110.04935 (2021-10)
Learning Temporally-Consistent Representations for Data-Efficient Reinforcement Learning
2110.14118 (2021-10)
Object-Aware Regularization for Addressing Causal Confusion in Imitation Learning
and 8 more not named here
to_np 9 other papers
9 later · 2 only as an assembly brick
2004.13649 (2020-04)
Image Augmentation Is All You Need: Regularizing Deep Reinforcement Learning from Pixels
2110.04935 (2021-10)
Learning Temporally-Consistent Representations for Data-Efficient Reinforcement Learning
2305.16683 (2023-05)
Future-conditioned Unsupervised Pretraining for Decision Transformer
and 6 more not named here
default_init 8 other papers
8 later
2106.03273 (2021-06)
Control-Oriented Model-Based Reinforcement Learning with Implicit Differentiation
2206.01079 (2022-06)
When does return-conditioned supervised learning work for offline reinforcement learning?
2301.12842 (2023-01)
Direct Preference-based Policy Optimization without Reward Modeling
and 5 more not named here
td_target 8 other papers
1 dated earlier, 7 later
1703.03400 (2017-03)
Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks
1906.08253 (2019-06)
When to Trust Your Model: Model-Based Policy Optimization
2006.13916 (2020-06)
Off-Dynamics Reinforcement Learning: Training for Transfer with Domain Classifiers
and 5 more not named here
Action_adapter 2 other papers
2 later
2401.09286 (2024-01)
Deployable Reinforcement Learning with Variable Control Rate
2405.11982 (2024-05)
Robust Deep Reinforcement Learning with Adaptive Adversarial Perturbations in Action Space
num_flat_features 2 other papers
1 dated earlier, 1 later
1807.06391 (2018-07)
Learning to Listen, Read, and Follow: Score Following as a Reinforcement Learning Game
2106.06056 (2021-06)
Progressive-Scale Boundary Blackbox Attack via Projective Gradient Estimation
build_net 1 other paper
1 later
2401.09286 (2024-01)
Deployable Reinforcement Learning with Variable Control Rate
get_device 1 other paper
1 dated earlier
1801.01290 (2018-01)
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
get_multilayer_perceptron 1 other paper
1 dated earlier
1801.01290 (2018-01)
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
process_action 1 other paper
1 later
1910.07207 (2019-10)
Soft Actor-Critic for Discrete Action Settings
process_observation 1 other paper
1 later
1910.07207 (2019-10)
Soft Actor-Critic for Discrete Action Settings
process_reward 1 other paper
1 later
1910.07207 (2019-10)
Soft Actor-Critic for Discrete Action Settings

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

Model-free deep reinforcement learning (RL) algorithms have been successfully applied to a range of challenging sequential decision making and control tasks. However, these methods typically suffer from two major challenges: high sample complexity and brittleness to hyperparameters. Both of these challenges limit the applicability of such methods to real-world domains. In this paper, we describe Soft Actor-Critic (SAC), our recently introduced off-policy actor-critic algorithm based on the maximum entropy RL framework. In this framework, the actor aims to simultaneously maximize expected return and entropy; that is, to succeed at the task while acting as randomly as possible. We extend SAC to incorporate a number of modifications that accelerate training and improve stability with respect to the hyperparameters, including a constrained formulation that automatically tunes the temperature hyperparameter. We systematically evaluate SAC on a range of benchmark tasks, as well as challenging real-world tasks such as locomotion for a quadrupedal robot and robotic manipulation with a dexterous hand. With these improvements, SAC achieves state-of-the-art performance, outperforming prior on-policy and off-policy methods in sample-efficiency and asymptotic performance. Furthermore, we demonstrate that, in contrast to other off-policy algorithms, our approach is very stable, achieving similar performance across different random seeds. These results suggest that SAC is a promising candidate for learning in real-world robotics tasks.

For agents

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

get_harvested_code_for_paper("1812.05905")
get_code_for_paper("1812.05905")
have("1812.05905")

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

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

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

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

Connect an agent — have() is free.