SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1903.06694 · 2019

Tuning Hyperparameters without Grad Students: Scalable and Robust Bayesian Optimisation with Dragonfly

arXiv · PDF · Open in the Atlas

Code that ran

7 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 4 failures of our instrument; 7 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/1903.06694.json · badge: /api/ran/1903.06694.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
dragonfly/dragonfly canonical (classifier label)
classifier basis: classifier_2025
7 ran · 7 no recorded run
FunctionStatusWhere it lives
BasicReporter Ran
ran on a synthesized input · constructed an object; no result was computed
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("6d060c988518415c")
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 an instance of its own class, BasicReporter: the run constructed the object and did not call it, so no result was computed. 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 sys
import io

# Create a string buffer to capture output
output_buffer = io.StringIO()

ARGS = {
    'out': output_buffer
}
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 BasicReporter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicReporter 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
CalledMFOptimiserWithSFCaller Ran
ran on a synthesized input · constructed an object; no result was computed
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("476dc61201803e5d")
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 an instance of its own class, CalledMFOptimiserWithSFCaller: the run constructed the object and did not call it, so no result was computed. 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


class DummyOptimiser:
    """Stand-in for an optimiser object."""
    def __init__(self, name="DummyOptimiser"):
        self.name = name
    
    def __str__(self):
        return self.name


class DummyFuncCaller:
    """Stand-in for a single-fidelity function caller."""
    def __init__(self, name="DummyFuncCaller"):
        self.name = name
    
    def __str__(self):
        return self.name


# Construct valid arguments
optimiser = DummyOptimiser("MultiObjectiveOptimiser")
func_caller = DummyFuncCaller("SingleFidelityCaller")

ARGS = {
    "optimiser": optimiser,
    "func_caller": func_caller,
}
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 CalledMFOptimiserWithSFCaller — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CalledMFOptimiserWithSFCaller 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
SilentReporter Ran
ran on a synthesized input · constructed an object; no result was computed
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("fc3fdeadbee74239")
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 an instance of its own class, SilentReporter: the run constructed the object and did not call it, so no result was computed. 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 sys
from io import StringIO

class BasicReporter(object):
    """ The most basic monitor that implements printing etc. """

    def __init__(self, out=sys.stdout):
        """ Constructor. """
        self.out = out

    def write(self, msg, *_):
        """ Writes a message to stdout. """
        if self.out is not None:
            self.out.write(msg)
            self.out.flush()

    def writeln(self, msg, *args):
        """ Writes a message to stdout with a new line. """
        self.write(msg + '\n', *args)

class SilentReporter(BasicReporter):
    """ This reporter prints nothing. """

    def __init__(self):
        """ Constructor. """
        super(SilentReporter, self).__init__(None)


ARGS = {}
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 SilentReporter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SilentReporter 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_default_acq_opt_method_for_domain Ran
ran; our contract draft was wrong, not the code
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("604e30ca640f1a95")
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 torch
import numpy as np

class MockDomain:
    def __init__(self, domain_type, dim, list_of_domains=None, has_constraints=False):
        self.domain_type = domain_type
        self.dim = dim
        self.list_of_domains = list_of_domains if list_of_domains is not None else []
        self.constraints = has_constraints
    
    def get_type(self):
        return self.domain_type
    
    def get_dim(self):
        return self.dim
    
    def has_constraints(self):
        return self.constraints

# Test case 1: euclidean domain with dim <= 60
euclidean_domain_small = MockDomain(domain_type='euclidean', dim=30)

# Test case 2: euclidean domain with dim > 60
euclidean_domain_large = MockDomain(domain_type='euclidean', dim=100)

# Test case 3: cartesian_product with all euclidean subdomains and no constraints
sub_domain_1 = MockDomain(domain_type='euclidean', dim=20)
sub_domain_2 = MockDomain(domain_type='euclidean', dim=25)
cartesian_product_domain = MockDomain(
    domain_type='cartesian_product',
    dim=45,
    list_of_domains=[sub_domain_1, sub_domain_2],
    has_constraints=False
)

# Test case 4: cartesian_product with constraints (should return 'ga')
cartesian_product_with_constraints = MockDomain(
    domain_type='cartesian_product',
    dim=45,
    list_of_domains=[sub_domain_1, sub_domain_2],
    has_constraints=True
)

ARGS = {
    'domain': euclidean_domain_small
}
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 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_default_acquisition_for_domain Ran
ran; our contract draft was wrong, not the code
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("1adb2f57fb60db07")
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 torch
import torch.nn as nn

class MockDomain:
    def __init__(self, domain_type):
        self._type = domain_type
    
    def get_type(self):
        return self._type

# Test case 1: euclidean domain
euclidean_domain = MockDomain('euclidean')

ARGS = {
    'domain': euclidean_domain
}
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 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_reporter Ran
ran; our contract draft was wrong, not the code
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("102f2b69de0b48de")
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 BasicReporter. 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 sys
import io

# Test case 1: string argument "default"
reporter_default = "default"

# Test case 2: string argument "silent"
reporter_silent = "silent"

# Test case 3: None argument
reporter_none = None

# Test case 4: BasicReporter instance
from io import StringIO
output_buffer = StringIO()

class BasicReporter(object):
    """ The most basic monitor that implements printing etc. """

    def __init__(self, out=sys.stdout):
        """ Constructor. """
        self.out = out

    def write(self, msg, *_):
        """ Writes a message to stdout. """
        if self.out is not None:
            self.out.write(msg)
            self.out.flush()

    def writeln(self, msg, *args):
        """ Writes a message to stdout with a new line. """
        self.write(msg + '\n', *args)

class SilentReporter(BasicReporter):
    """ This reporter prints nothing. """

    def __init__(self):
        """ Constructor. """
        super(SilentReporter, self).__init__(None)

reporter_instance = BasicReporter(output_buffer)

# Test case 5: file-like object (io.IOBase)
file_like_object = StringIO()

# Create ARGS mapping with various test cases
ARGS = {
    "reporter": reporter_default
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
six — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BasicReporter — a BasicReporter output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BasicReporter 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
postprocess_data_to_save_for_domain Ran
ran; our contract draft was wrong, not the code
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("4c9b06c224dd65b5")
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

torch.manual_seed(0)

def get_raw_from_processed_via_config(data, config):
    """Mock function for processing data via config."""
    return data * 2

class MockConfig:
    """Minimal config class that supports operations needed by the function."""
    def __init__(self):
        self.params = {"scale": 1.5}

class MockExperimentCaller:
    """Mock experiment caller with config attribute."""
    def __init__(self, config=None):
        self.config = config

data_to_save = {
    'points': [np.array([1.0, 2.0, 3.0]), np.array([4.0, 5.0, 6.0])],
    'fidels': [np.array([0.5, 1.0]), np.array([1.5, 2.0])],
    'other_key': 'some_value'
}

config = MockConfig()
experiment_caller = MockExperimentCaller(config=config)

ARGS = {
    'data_to_save': data_to_save,
    'experiment_caller': experiment_caller
}
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
BlackboxOptimiser Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("2414895bdfec73e4")
How it ran

no invocation recorded.

ExperimentDesigner Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("46e4f650d379d437")
How it ran

no invocation recorded.

GPBandit Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("40b6de465858576e")
How it ran

no invocation recorded.

maximise_function Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/apis/opt.py
code served (permissive licence) · get_code("7f65063a51c25cc3")
How it ran

no invocation recorded.

maximise_multifidelity_function Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/apis/opt.py
code served (permissive licence) · get_code("d81597120366054f")
How it ran

no invocation recorded.

minimise_function Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/apis/opt.py
code served (permissive licence) · get_code("1543c44fde3da70a")
How it ran

no invocation recorded.

preprocess_loaded_data_for_domain Not yet run
unverified (harvested, no recorded run)
dragonfly/dragonfly/dragonfly/opt/gp_bandit.py
code served (permissive licence) · get_code("958a818b1b1a2fa0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 11 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
maximise_function 1 other paper
1 later
2202.09774 (2022-02)
Supervising the Multi-Fidelity Race of Hyperparameter Configurations
maximise_multifidelity_function 1 other paper
1 later
2202.09774 (2022-02)
Supervising the Multi-Fidelity Race of Hyperparameter Configurations
minimise_function 1 other paper
1 later
2202.09774 (2022-02)
Supervising the Multi-Fidelity Race of Hyperparameter Configurations

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

Bayesian Optimisation (BO) refers to a suite of techniques for global optimisation of expensive black box functions, which use introspective Bayesian models of the function to efficiently search for the optimum. While BO has been applied successfully in many applications, modern optimisation tasks usher in new challenges where conventional methods fail spectacularly. In this work, we present Dragonfly, an open source Python library for scalable and robust BO. Dragonfly incorporates multiple recently developed methods that allow BO to be applied in challenging real world settings; these include better methods for handling higher dimensional domains, methods for handling multi-fidelity evaluations when cheap approximations of an expensive function are available, methods for optimising over structured combinatorial spaces, such as the space of neural network architectures, and methods for handling parallel evaluations. Additionally, we develop new methodological improvements in BO for selecting the Bayesian model, selecting the acquisition function, and optimising over complex domains with different variable types and additional constraints. We compare Dragonfly to a suite of other packages and algorithms for global optimisation and demonstrate that when the above methods are integrated, they enable significant improvements in the performance of BO. The Dragonfly library is available at dragonfly.github.io.

For agents

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

get_harvested_code_for_paper("1903.06694")
get_code_for_paper("1903.06694")
have("1903.06694")

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

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

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

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

Connect an agent — have() is free.