SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1810.05546 · 2018

Uncertainty in Neural Networks: Approximately Bayesian Ensembling

arXiv · PDF · Open in the Atlas

Code that ran

7 of 16 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 7 have no contract verdict; 0 failures of our instrument; 9 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/1810.05546.json · badge: /api/ran/1810.05546.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
TeaPearce/Bayesian_NN_Ensembles canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms community (classifier label)
classifier basis not recorded on the link
3 ran · 5 no recorded run
FunctionStatusWhere it lives
get_hyperparams Ran
ran on a synthesized input
TeaPearce/Bayesian_NN_Ensembles/regression/hyperparams.py
code served (permissive licence) · get_code("58ed8144cb697424")
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 numpy as np

ARGS = {
    'data_set': '~boston',
    'activation_fn': 'relu',
    'hidden_size': 50,
    'is_deep_NN': False
}
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 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
half_cheetah_cost_fn Ran
ran on a synthesized input
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/cost_functions.py
code served (permissive licence) · get_code("21f05dc03145f0ba")
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

class MockEnv:
    def __init__(self):
        self.observation_space = MockSpace(shape=(9,))
        self.action_space = MockSpace(shape=(6,))

class MockSpace:
    def __init__(self, shape):
        self.shape = shape

# Create small test data
batch_size = 2
state_dim = 9
action_dim = 6

state = np.random.randn(batch_size, state_dim).astype(np.float32)
action = np.random.randn(batch_size, action_dim).astype(np.float32)
env = MockEnv()

ARGS = {
    "state": state,
    "action": action,
    "env": env
}
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
inverted_pendulum_cost_fn Ran
ran on a synthesized input
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/cost_functions.py
code served (permissive licence) · get_code("41dd6f9037d680b6")
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 (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)

# Create a minimal gym-like environment with observation_space and action_space
class MinimalEnv:
    def __init__(self, obs_dim, action_dim):
        self.observation_space = type('Space', (), {'shape': (obs_dim,)})()
        self.action_space = type('Space', (), {'shape': (action_dim,)})()

# Set up environment with 2 observation dimensions and 1 action dimension
env = MinimalEnv(obs_dim=2, action_dim=1)

# Create state tensor: batch_size=2, obs_dim=2
state = torch.randn(2, 2, dtype=torch.float32)

# Create action tensor: batch_size=2, action_dim=1
action = torch.randn(2, 1, dtype=torch.float32)

ARGS = {
    'state': state,
    'action': action,
    'env': env
}
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 (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
lr_schedule Ran
ran on a synthesized input
TeaPearce/Bayesian_NN_Ensembles/classification/2d_class_need_03.py
code served (permissive licence) · get_code("626f3d6baf7dc55b")
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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "epoch": 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
np_softmax Ran
ran on a synthesized input
TeaPearce/Bayesian_NN_Ensembles/classification/2d_class_need_03.py
code served (permissive licence) · get_code("e8ccab56c21c75ce")
How it ran

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

import numpy as np

# np_softmax takes a single parameter z which should be a numpy array
# The function computes softmax along the last axis
# We'll create a small 2D array (batch_size=2, features=4)

z = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [2.0, 1.0, 4.0, 3.0]
], dtype=np.float32)

ARGS = {
    "z": z
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pendulum_cost_fn Ran
ran on a synthesized input
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/cost_functions.py
code served (permissive licence) · get_code("ca3901c6b47a2a0a")
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 pendulum_cost_fn
# state: batch of states, shape (batch_size, state_dim)
# The function accesses state[:, 0] and state[:, 2], so we need at least 3 columns
# action: batch of actions, shape matching state after reshape
# env: environment object (not actually used in the function body)

batch_size = 2
state_dim = 3

# state should have shape (batch_size, state_dim) with at least 3 dimensions
# state[:, 0] is cos_theta, state[:, 2] is thdot
state = np.array([
    [0.5, 0.1, 0.2],      # first sample: cos_theta=0.5, thdot=0.2
    [0.7, 0.3, -0.1]      # second sample: cos_theta=0.7, thdot=-0.1
], dtype=np.float32)

# action should be reshaped to match th.shape (batch_size,)
action = np.array([0.1, -0.2], dtype=np.float32)

# env is not used in the function body, so a simple object works
class DummyEnv:
    pass

env = DummyEnv()

ARGS = {
    "state": state,
    "action": action,
    "env": env
}
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
sigmoid_array Ran
ran on a synthesized input
TeaPearce/Bayesian_NN_Ensembles/regression/DataGen.py
code served (permissive licence) · get_code("479d482abed0b4ff")
How it ran

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

import numpy as np

# The function sigmoid_array takes a single parameter 'x' which should be an array
# It applies the sigmoid function: 1 / (1 + np.exp(-x))
# We need to provide a numpy array as input

x = np.array([[1.0, 2.0, -1.0, 0.5],
              [-0.5, 1.5, 0.0, -2.0]])

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 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
data_training Not yet run
unverified (harvested, no recorded run)
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/training_step.py
code served (permissive licence) · get_code("049d2ff8e0580c54")
How it ran

no invocation recorded.

epsilon_greedy_policy Not yet run
unverified (harvested, no recorded run)
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/play_one_step.py
code served (permissive licence) · get_code("9170211e7fedd09e")
How it ran

no invocation recorded.

fn_my_loss Not yet run
unverified (harvested, no recorded run)
TeaPearce/Bayesian_NN_Ensembles/classification/2d_class_need_03.py
code served (permissive licence) · get_code("1915bcf3c5c8ecb4")
How it ran

no invocation recorded.

get_action Not yet run
unverified (harvested, no recorded run)
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/play_one_step.py
code served (permissive licence) · get_code("a1a896e5eded3920")
How it ran

no invocation recorded.

np_k_0 Not yet run
unverified (harvested, no recorded run)
TeaPearce/Bayesian_NN_Ensembles/regression/module_gp.py
code served (permissive licence) · get_code("6802e5d7fe4d2d58")
How it ran

no invocation recorded.

np_step Not yet run
unverified (harvested, no recorded run)
TeaPearce/Bayesian_NN_Ensembles/regression/module_gp.py
code served (permissive licence) · get_code("7796962d8760fb27")
How it ran

no invocation recorded.

np_step_kernel Not yet run
unverified (harvested, no recorded run)
TeaPearce/Bayesian_NN_Ensembles/regression/module_gp.py
code served (permissive licence) · get_code("c3529256b7b082a6")
How it ran

no invocation recorded.

play_one_step Not yet run
unverified (harvested, no recorded run)
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/play_one_step.py
code served (permissive licence) · get_code("8839f6d395bca7bf")
How it ran

no invocation recorded.

training_step Not yet run
unverified (harvested, no recorded run)
giarcieri/assessing-the-influence-of-models-on-the-performance-of-reinforcement-learning-algorithms/training_step.py
code served (permissive licence) · get_code("e55b7a835164bf52")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
np_k_0 1 other paper
1 later
1905.06076 (2019-05)
Expressive Priors in Bayesian Neural Networks: Kernel Combinations and Periodic Functions
np_step 1 other paper
1 later
1905.06076 (2019-05)
Expressive Priors in Bayesian Neural Networks: Kernel Combinations and Periodic Functions
np_step_kernel 1 other paper
1 later
1905.06076 (2019-05)
Expressive Priors in Bayesian Neural Networks: Kernel Combinations and Periodic Functions
sigmoid_array 1 other paper
1 later
1905.06076 (2019-05)
Expressive Priors in Bayesian Neural Networks: Kernel Combinations and Periodic Functions

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

Understanding the uncertainty of a neural network's (NN) predictions is essential for many purposes. The Bayesian framework provides a principled approach to this, however applying it to NNs is challenging due to large numbers of parameters and data. Ensembling NNs provides an easily implementable, scalable method for uncertainty quantification, however, it has been criticised for not being Bayesian. This work proposes one modification to the usual process that we argue does result in approximate Bayesian inference; regularising parameters about values drawn from a distribution which can be set equal to the prior. A theoretical analysis of the procedure in a simplified setting suggests the recovered posterior is centred correctly but tends to have an underestimated marginal variance, and overestimated correlation. However, two conditions can lead to exact recovery. We argue that these conditions are partially present in NNs. Empirical evaluations demonstrate it has an advantage over standard ensembling, and is competitive with variational methods.

For agents

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

get_harvested_code_for_paper("1810.05546")
get_code_for_paper("1810.05546")
have("1810.05546")

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

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

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

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

Connect an agent — have() is free.