SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1703.02910 · 2017

Deep Bayesian Active Learning with Image Data

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1703.02910.json · badge: /api/ran/1703.02910.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
aolmin/active_learning_weak_sup community (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
FunctionStatusWhere it lives
bald_acquisition Ran
ran on a synthesized input
aolmin/active_learning_weak_sup/src/GP_Bald.py
code served (permissive licence) · get_code("2c7f16163e5c52da")
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 2, 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 numpy as np
import torch
import torch.nn as nn

torch.manual_seed(0)

class StandInModel(nn.Module):
    def __init__(self, n_pool, n_outputs):
        super().__init__()
        self.n_pool = n_pool
        self.n_outputs = n_outputs
    
    def predict_model_var(self, X_Pool):
        # Returns shape (n_samples, 1)
        n_samples = X_Pool.shape[0]
        return np.ones((n_samples, 1)) * 0.5
    
    def var_y_given_f(self, X_Pool):
        # Returns shape (n_samples, n_outputs)
        n_samples = X_Pool.shape[0]
        return np.ones((n_samples, self.n_outputs)) * 0.3

# Create small test data
n_pool_samples = 10
n_features = 4
n_outputs = 3
n_queries = 2

X_Pool = np.random.randn(n_pool_samples, n_features).astype(np.float32)
model = StandInModel(n_pool_samples, n_outputs)
betas = np.array([1.0, 2.0, 3.0])

ARGS = {
    'X_Pool': X_Pool,
    'Queries': n_queries,
    'model': model,
    'betas': betas
}
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 tuple, ndim 2, 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
bald_ws_acquisition Ran
ran on a synthesized input
aolmin/active_learning_weak_sup/src/GP_Bald_WS.py
code served (permissive licence) · get_code("dae1d4c962119957")
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 2, 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 numpy as np

class MockModel:
    """Mock model that implements the methods called in bald_ws_acquisition"""
    
    def __init__(self):
        self.var_noisy_y_given_f_output = None
        self.predict_model_var_output = None
    
    def var_noisy_y_given_f(self, X_Pool, precision):
        # X_Pool shape: (n_pool, 1, 1)
        # precision shape: (1, n_betas, 1)
        # Output should be (n_pool, n_betas, 1) for d=1
        n_pool = X_Pool.shape[0]
        n_betas = precision.shape[1]
        return np.ones((n_pool, n_betas, 1), dtype=np.float64)
    
    def predict_model_var(self, X_Pool):
        # X_Pool shape: (n_pool,)
        # Output should be (n_pool,) which will be reshaped to (n_pool, 1, 1)
        return np.ones(X_Pool.shape[0], dtype=np.float64) * 0.5

def mock_label_cost(betas):
    # Takes betas array and returns cost per beta
    # betas shape: (n_betas,)
    # Output shape: (n_betas,)
    return np.ones(betas.shape[0], dtype=np.float64)

# Create test data
np.random.seed(0)

# X_Pool: pool of candidate points, shape (n_pool,)
X_Pool = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6], dtype=np.float64)

# Queries: number of points to select
Queries = 2

# Model instance
model = MockModel()

# Betas: hyperparameter array, shape (n_betas,)
betas = np.array([0.5, 1.0, 1.5], dtype=np.float64)

# label_cost: function that takes betas and returns costs
label_cost = mock_label_cost

ARGS = {
    'X_Pool': X_Pool,
    'Queries': Queries,
    'model': model,
    'betas': betas,
    'label_cost': label_cost,
}
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, ndim 2, 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
constant_noise Ran
ran on a synthesized input
aolmin/active_learning_weak_sup/src/experiment_utils.py
code served (permissive licence) · get_code("a99a96e5b037d914")
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 numpy as np

torch.manual_seed(0)

# Construct arguments for constant_noise(x, prior_var)
# The function simply returns prior_var, so both arguments can be simple values

x = torch.randn(2, 4)  # Small tensor: batch size 2, dim 4
prior_var = 0.1  # A scalar variance value

ARGS = {
    "x": x,
    "prior_var": prior_var
}
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 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
random_acquisition Ran
ran on a synthesized input
aolmin/active_learning_weak_sup/src/Random.py
code served (permissive licence) · get_code("2d8f788261c688a7")
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 2, 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 numpy as np
import random

random.seed(42)
np.random.seed(42)

# The function uses:
# - X_Pool: needs .shape[0] attribute (number of samples)
# - Queries: an integer specifying how many samples to query
# - **kwargs: unused in the function body

# Create a small pool of samples
X_Pool = np.random.randn(10, 4)  # 10 samples, 4 features
Queries = 3  # Request 3 samples

ARGS = {
    "X_Pool": X_Pool,
    "Queries": Queries,
}
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, ndim 2, 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
sine_regression_data_sample_input Ran
ran on a synthesized input
aolmin/active_learning_weak_sup/src/experiment_utils.py
code served (permissive licence) · get_code("c25e60c784a9f6bc")
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 (10,) 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.random.seed(0)

ARGS = {
    "num_samples": 10,
    "non_uniform": 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 ndarray, ndim 1, dtype family float, shape (10,) — shape (10,) 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_sine_regression_data Not yet run
unverified (harvested, no recorded run)
aolmin/active_learning_weak_sup/src/experiment_utils.py
code served (permissive licence) · get_code("2522288f1d9bdc50")
How it ran

no invocation recorded.

mi_ws_acquisition Not yet run
unverified (harvested, no recorded run)
aolmin/active_learning_weak_sup/src/GP_MI_WS.py
code served (permissive licence) · get_code("4f1c06eb0624ab33")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 7 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-24.

Repositories linked to this paper

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

Abstract

Even though active learning forms an important pillar of machine learning, deep learning tools are not prevalent within it. Deep learning poses several difficulties when used in an active learning setting. First, active learning (AL) methods generally rely on being able to learn and update models from small amounts of data. Recent advances in deep learning, on the other hand, are notorious for their dependence on large amounts of data. Second, many AL acquisition functions rely on model uncertainty, yet deep learning methods rarely represent such model uncertainty. In this paper we combine recent advances in Bayesian deep learning into the active learning framework in a practical way. We develop an active learning framework for high dimensional data, a task which has been extremely challenging so far, with very sparse existing literature. Taking advantage of specialised models such as Bayesian convolutional neural networks, we demonstrate our active learning techniques with image data, obtaining a significant improvement on existing active learning approaches. We demonstrate this on both the MNIST dataset, as well as for skin cancer diagnosis from lesion images (ISIC2016 task).

For agents

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

get_harvested_code_for_paper("1703.02910")
get_code_for_paper("1703.02910")
have("1703.02910")

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

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

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

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

Connect an agent — have() is free.