SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1806.05975 · 2018

Structured Variational Learning of Bayesian Neural Networks with Horseshoe Priors

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/1806.05975.json · badge: /api/ran/1806.05975.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
hughsalimbeni/bayesian_benchmarks community (classifier label)
classifier basis not recorded on the link
10 ran · 0 no recorded run
FunctionStatusWhere it lives
adapt_array Ran
ran, honoured the contract we drafted
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/database_utils.py
code served (permissive licence) · get_code("f870491bfd736f8d")
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 memoryview. 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 sqlite3
import numpy as np
import io

# Create a small numpy array to pass to adapt_array
test_array = 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]])

ARGS = {
    "arr": test_array
}
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 memoryview — a memoryview output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a memoryview output the recorded ndim 1 and dtype family int 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
add_classficiation Ran
ran; our contract draft was wrong, not the code
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/data.py
code served (permissive licence) · get_code("9b436ef2d0792040")
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 ClassificationDataset. 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)

class ClassificationDataset:
    """Minimal stand-in class for a classification dataset."""
    def __init__(self, name):
        self.name = name

# Create a simple classification dataset object
dataset = ClassificationDataset(name="test_dataset")

# Define ARGS mapping the parameter to the value
ARGS = {
    "C": dataset
}
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 ClassificationDataset — a ClassificationDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ClassificationDataset 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
add_regression Ran
ran; our contract draft was wrong, not the code
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/data.py
code served (permissive licence) · get_code("5cadf1fc3261f6c0")
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 RegressionDataset. 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 RegressionDataset:
    def __init__(self):
        self.name = "test_regression_dataset"

C = RegressionDataset()

ARGS = {
    "C": C
}
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 RegressionDataset — a RegressionDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RegressionDataset 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
classification_model Ran
ran on a synthesized input
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/models/non_bayesian_models.py
code served (permissive licence) · get_code("63e11d72c9447f5e")
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 type. 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
from sklearn.ensemble import RandomForestClassifier

# Create a minimal sklearn model that has fit() and predict_proba() methods
sklearn_model = RandomForestClassifier(n_estimators=2, random_state=0)

# Define ARGS with the required parameter
ARGS = {
    'model': sklearn_model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
convert_array Ran
ran on a synthesized input
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/database_utils.py
code served (permissive licence) · get_code("6969043e1e929528")
How it ran

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

import numpy as np
import io

# Create a valid numpy array and serialize it to bytes
array_data = np.array([1, 2, 3, 4, 5], dtype=np.float32)
buffer = io.BytesIO()
np.save(buffer, array_data)
text = buffer.getvalue()

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

# The function dict_to_lists takes a dict as input
# It accesses d.keys() and d[k] for each key
# So we need a simple dict with various value types

ARGS = {
    "d": {
        "key1": 42,
        "key2": "value2",
        "key3": [1, 2, 3],
        "key4": torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
        "key5": {"nested": "dict"}
    }
}
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
expand_to_absolute Ran
ran on a synthesized input
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/paths.py
code served (permissive licence) · get_code("c4378427f9c3bf42")
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 os

def expand_to_absolute(path):
    if './' == path[:2]:
        return os.path.join(os.path.dirname(os.path.realpath(__file__)), path[2:])
    else:
        return path

ARGS = {
    'path': './test_file.txt'
}
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
non_bayesian_model Ran
ran on a synthesized input
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/models/non_bayesian_models.py
code served (permissive licence) · get_code("f21ba8b805fe6210")
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 type. 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
from sklearn import linear_model

# The function takes two parameters: name and task
# name: a string identifying the model type
# task: a string identifying the task type ('regression' or 'classification')

ARGS = {
    'name': 'linear',
    'task': 'regression'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
normalize Ran
ran; our contract draft was wrong, not the code
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/data.py
code served (permissive licence) · get_code("cba0faabe1fa7dc7")
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 a small numpy array with shape (2, 4) - batch size 2, feature dimension 4
X = np.random.randn(2, 4).astype(np.float32)

ARGS = {
    "X": X
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
regression_model Ran
ran on a synthesized input
hughsalimbeni/bayesian_benchmarks/bayesian_benchmarks/models/non_bayesian_models.py
code served (permissive licence) · get_code("8bd09fd901fa3107")
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 type. 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
from sklearn.linear_model import LinearRegression

# Create a simple scikit-learn model that has fit() and predict() methods
model = LinearRegression()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 10 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 10 later) and 0 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
adapt_array 2 other papers
2 later
2301.11325 (2023-01)
MusicLM: Generating Music From Text
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
add_classficiation 2 other papers
2 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
2410.05757 (2024-10)
Temperature Optimization for Bayesian Deep Learning
add_regression 2 other papers
2 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
2410.05757 (2024-10)
Temperature Optimization for Bayesian Deep Learning
normalize 2 other papers
2 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
2410.05757 (2024-10)
Temperature Optimization for Bayesian Deep Learning
classification_model 1 other paper
1 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
convert_array 1 other paper
1 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
dict_to_lists 1 other paper
1 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
expand_to_absolute 1 other paper
1 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
non_bayesian_model 1 other paper
1 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models
regression_model 1 other paper
1 later
2306.04201 (2023-06)
Improving Hyperparameter Learning under Approximate Inference in Gaussian Process Models

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

Repositories linked to this paper

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

Abstract

Bayesian Neural Networks (BNNs) have recently received increasing attention for their ability to provide well-calibrated posterior uncertainties. However, model selection---even choosing the number of nodes---remains an open question. Recent work has proposed the use of a horseshoe prior over node pre-activations of a Bayesian neural network, which effectively turns off nodes that do not help explain the data. In this work, we propose several modeling and inference advances that consistently improve the compactness of the model learned while maintaining predictive performance, especially in smaller-sample settings including reinforcement learning.

For agents

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

get_harvested_code_for_paper("1806.05975")
get_code_for_paper("1806.05975")
have("1806.05975")

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

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

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

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

Connect an agent — have() is free.