SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.05663 · 2019

Measuring the Reliability of Reinforcement Learning Algorithms

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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; 0 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1912.05663.json · badge: /api/ran/1912.05663.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
google-research/rl-reliability-metrics canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_means Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/plot_training_curves.py
code served (permissive licence) · get_code("5a8426d69a211f22")
How it ran

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

import numpy as np

# Create a small numpy array with shape [n_curves x n_windows]
# Using distinct sizes: 5 curves, 3 windows
window_means = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0],
    [13.0, 14.0, 15.0]
])

ARGS = {
    "window_means": window_means
}
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 (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_medians Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/plot_training_curves.py
code served (permissive licence) · get_code("1dfef181d65e60e9")
How it ran

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

import numpy as np

# Create a small numpy array with shape [n_curves x n_windows]
# Using distinct sizes: 4 curves, 3 windows
window_means = np.array([
    [1.0, 2.0, 3.0],
    [2.0, 3.0, 4.0],
    [1.5, 2.5, 3.5],
    [2.5, 3.5, 4.5]
])

ARGS = {
    "window_means": window_means
}
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 (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_window_means Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/plot_training_curves.py
code served (permissive licence) · get_code("4fcb6f9205c62010")
How it ran

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

import numpy as np

# Create sample curves data
# Shape: [n_curves x 2 x n_timesteps]
# curves[:, 0, :] are timesteps
# curves[:, 1, :] are performance values

n_curves = 3
n_timesteps = 10

curves = np.zeros((n_curves, 2, n_timesteps))

# First curve: timesteps 0-9, performance values
curves[0, 0, :] = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
curves[0, 1, :] = np.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0])

# Second curve: timesteps 0-9, performance values
curves[1, 0, :] = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
curves[1, 1, :] = np.array([2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0])

# Third curve: timesteps 0-9, performance values
curves[2, 0, :] = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
curves[2, 1, :] = np.array([0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5])

window_size = 3

ARGS = {
    "curves": curves,
    "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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_all_valid_eval_points Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/metrics/metric_utils.py
code served (permissive licence) · get_code("2b03c2435aceddd1")
How it ran

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

import numpy as np
import functools

# Create sample curves
# Each curve is expected to be an iterable where the first element (curve[0]) 
# is an array of timepoints
curve1_timepoints = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
curve2_timepoints = np.array([2.0, 3.0, 4.0, 5.0, 6.0])
curve3_timepoints = np.array([1.0, 2.0, 3.0, 4.0])

# Create curve objects as lists where index 0 contains timepoints
# and remaining indices contain dummy data
curve1 = [curve1_timepoints, np.random.rand(5)]
curve2 = [curve2_timepoints, np.random.rand(5)]
curve3 = [curve3_timepoints, np.random.rand(4)]

curves = [curve1, curve2, curve3]

ARGS = {
    "curves": curves,
    "window_size": 1
}
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 (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_metric_params Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/evaluation/eval_metrics.py
code served (permissive licence) · get_code("b9af94af42887b85")
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 torch.nn as nn

torch.manual_seed(0)

class MockMetric:
    """Mock metric class with name and public parameters."""
    def __init__(self, name, param1, param2, param3):
        self.name = name
        self.param1 = param1
        self.param2 = param2
        self.param3 = param3
        self._private_param = "hidden"

metric1 = MockMetric(
    name="accuracy",
    param1=0.95,
    param2="classification",
    param3=[1, 2, 3]
)

metric2 = MockMetric(
    name="f1_score",
    param1=0.87,
    param2="binary",
    param3={"threshold": 0.5}
)

metric3 = MockMetric(
    name="loss",
    param1=torch.tensor([0.1, 0.2, 0.3, 0.4]),
    param2="mse",
    param3=None
)

metrics = [metric1, metric2, metric3]

ARGS = {
    "metrics": metrics
}
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 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
listdir Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/io_utils_oss.py
code served (permissive licence) · get_code("48350999d3b51fb7")
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. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile

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

# Add a couple of subdirectories to make listdir return something
os.makedirs(os.path.join(temp_dir, "subdir1"), exist_ok=True)
os.makedirs(os.path.join(temp_dir, "subdir2"), exist_ok=True)

ARGS = {
    "path": temp_dir
}
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 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
median_absolute_deviations Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/metrics/metric_utils.py
code served (permissive licence) · get_code("92f6bb29f4d6c3d3")
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

# Test case 1: 1-D array with axis=None
values_1d = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Test case 2: 2-D array with axis=None
values_2d = np.array([[1.0, 2.0, 3.0, 4.0],
                       [5.0, 6.0, 7.0, 8.0],
                       [9.0, 10.0, 11.0, 12.0]])

# Test case 3: 2-D array with axis=0
values_2d_axis0 = np.array([[1.0, 2.0, 3.0],
                             [4.0, 5.0, 6.0],
                             [7.0, 8.0, 9.0]])

# Test case 4: 2-D array with axis=1
values_2d_axis1 = np.array([[1.0, 2.0, 3.0, 4.0],
                             [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "values": values_2d,
    "axis": None
}
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
multiple_comparisons_correction Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/stats_utils.py
code served (permissive licence) · get_code("fc9e45e1c0f30381")
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. 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 scipy.special

ARGS = {
    'n_algorithms': 5,
    'alpha': 0.05,
    'method': 'benjamini-yekutieli'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
absl, scipy — 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
paths_glob Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/io_utils_oss.py
code served (permissive licence) · get_code("c33583ac742f525c")
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. 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 glob
import tempfile
import os

# Create a temporary directory with some test files for glob to find
with tempfile.TemporaryDirectory() as tmpdir:
    # Create some test files matching a pattern
    test_file1 = os.path.join(tmpdir, "test_1.txt")
    test_file2 = os.path.join(tmpdir, "test_2.txt")
    test_file3 = os.path.join(tmpdir, "other.txt")
    
    # Create the files
    open(test_file1, 'w').close()
    open(test_file2, 'w').close()
    open(test_file3, 'w').close()
    
    # Define the pattern to match test_*.txt files
    pattern = os.path.join(tmpdir, "test_*.txt")
    
    ARGS = {
        "pattern": pattern
    }
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 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
permute_curves Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/evaluation/eval_metrics.py
code served (permissive licence) · get_code("a9a047d118499e20")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

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

# Create a list of curves (can be numpy arrays, lists, or other array-like structures)
# Using distinct dimensions to make shapes unambiguous
curve1 = np.array([1.0, 2.0, 3.0, 4.0])
curve2 = np.array([5.0, 6.0, 7.0, 8.0])
curve3 = np.array([9.0, 10.0, 11.0, 12.0])

curves = [curve1, curve2, curve3]

ARGS = {
    "curves": curves
}
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 list, ndim 2, 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
subtract_baseline Ran
ran on a synthesized input
google-research/rl-reliability-metrics/rl_reliability_metrics/metrics/metric_utils.py
code served (permissive licence) · get_code("42521f0be5451146")
How it ran

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

import numpy as np

# Create sample learning curves
# Each curve is a 2D array where:
# - curve[0, :] is the independent variable (timepoints)
# - curve[1, :] is the dependent variable (e.g., loss/accuracy)

curve1 = np.array([
    [0.0, 1.0, 2.0, 3.0],      # timepoints
    [10.5, 9.2, 8.1, 7.3]       # dependent variable
])

curve2 = np.array([
    [0.0, 1.0, 2.0, 3.0],      # timepoints
    [12.0, 10.5, 9.1, 8.2]     # dependent variable
])

curves = [curve1, curve2]
baseline = 5.0

ARGS = {
    'curves': curves,
    'baseline': baseline
}
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 list, ndim 3, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
makedirs Not yet run
unverified (harvested, no recorded run)
google-research/rl-reliability-metrics/rl_reliability_metrics/analysis/io_utils_oss.py
code served (permissive licence) · get_code("647076147597c7cf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

Lack of reliability is a well-known issue for reinforcement learning (RL) algorithms. This problem has gained increasing attention in recent years, and efforts to improve it have grown substantially. To aid RL researchers and production users with the evaluation and improvement of reliability, we propose a set of metrics that quantitatively measure different aspects of reliability. In this work, we focus on variability and risk, both during training and after learning (on a fixed policy). We designed these metrics to be general-purpose, and we also designed complementary statistical tests to enable rigorous comparisons on these metrics. In this paper, we first describe the desired properties of the metrics and their design, the aspects of reliability that they measure, and their applicability to different scenarios. We then describe the statistical tests and make additional practical recommendations for reporting results. The metrics and accompanying statistical tools have been made available as an open-source library at https://github.com/google-research/rl-reliability-metrics. We apply our metrics to a set of common RL algorithms and environments, compare them, and analyze the results.

For agents

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

get_harvested_code_for_paper("1912.05663")
get_code_for_paper("1912.05663")
have("1912.05663")

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

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

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

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

Connect an agent — have() is free.