SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.00236 · 2024

Closed-Form Test Functions for Biophysical Sequence Optimization Algorithms

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 4 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/2407.00236.json · badge: /api/ran/2407.00236.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
prescient-design/holo-bench canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
machinelearninglifescience/poli community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
banded_square_matrix Ran
ran, honoured the contract we drafted
prescient-design/holo-bench/holo/test_functions/elemental/_discrete_markov_process.py
code served (permissive licence) · get_code("79745854d8b416cc")
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 2, dtype family float, shape (5, 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 torch

torch.manual_seed(0)

ARGS = {
    "ndim": 5,
    "bandwidth": 2,
}
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 Tensor, ndim 2, dtype family float, shape (5, 5) — shape (5, 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
dmp_marginal_dist Ran
ran; our contract draft was wrong, not the code
prescient-design/holo-bench/holo/test_functions/elemental/_discrete_markov_process.py
code served (permissive licence) · get_code("d1181ae3c5fcca09")
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 2, dtype family float, shape (4, 1) 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

torch.manual_seed(0)

# Define a small initial distribution (n=4, shape (4, 1))
initial_dist = torch.tensor([
    [0.25],
    [0.25],
    [0.25],
    [0.25]
], dtype=torch.float32)

# Define a valid stochastic transition matrix (4x4)
# Each row sums to 1 (valid probability distribution)
transition_matrix = torch.tensor([
    [0.5, 0.2, 0.2, 0.1],
    [0.1, 0.6, 0.2, 0.1],
    [0.2, 0.2, 0.5, 0.1],
    [0.1, 0.1, 0.3, 0.5]
], dtype=torch.float32)

# Number of steps
num_steps = 3

ARGS = {
    "initial_dist": initial_dist,
    "transition_matrix": transition_matrix,
    "num_steps": num_steps
}
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 Tensor, ndim 2, dtype family float, shape (4, 1) — shape (4, 1) 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
dmp_stationary_dist Ran
ran; our contract draft was wrong, not the code
prescient-design/holo-bench/holo/test_functions/elemental/_discrete_markov_process.py
code served (permissive licence) · get_code("86126b477d768fe7")
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 2, dtype family float, shape (4, 1) 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

torch.manual_seed(0)

# Create a valid stochastic transition matrix
# For a discrete Markov process, each row must sum to 1
n = 4
transition_matrix = torch.tensor([
    [0.5, 0.3, 0.1, 0.1],
    [0.2, 0.4, 0.2, 0.2],
    [0.1, 0.1, 0.6, 0.2],
    [0.3, 0.2, 0.2, 0.3]
], dtype=torch.float32)

tolerance = 1e-05

ARGS = {
    "transition_matrix": transition_matrix,
    "tolerance": tolerance
}
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 Tensor, ndim 2, dtype family float, shape (4, 1) — shape (4, 1) 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
dynamically_instantiate Ran
ran on a synthesized input
machinelearninglifescience/poli/src/poli/external_isolated_function_script.py
code served (permissive licence) · get_code("8ca2176b7d93aa1b")
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 SimpleClass. 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
import sys

# Set up the environment variable for additional import paths
os.environ['ADDITIONAL_IMPORT_SEARCH_PATHES_KEY'] = 'ADDITIONAL_IMPORT_PATHS'
os.environ['ADDITIONAL_IMPORT_PATHS'] = '/tmp/test_imports'

# Create a minimal test module to import
import tempfile
import importlib.util

# Create a temporary directory for our test module
temp_dir = tempfile.mkdtemp()
sys.path.insert(0, temp_dir)

# Create a simple test class in a module
test_module_content = '''
class SimpleClass:
    def __init__(self, value=42, name="test"):
        self.value = value
        self.name = name
    
    def __repr__(self):
        return f"SimpleClass(value={self.value}, name={self.name})"
'''

# Write the test module
test_module_path = os.path.join(temp_dir, 'test_module.py')
with open(test_module_path, 'w') as f:
    f.write(test_module_content)

# Ensure the temp directory is in the path that will be used
os.environ['ADDITIONAL_IMPORT_PATHS'] = f'{temp_dir}:'

# Define the ARGS dictionary
ARGS = {
    'obj': 'test_module.SimpleClass',
    'value': 100,
    'name': 'dynamic_instance'
}
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 SimpleClass — a SimpleClass output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleClass 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
flatten_config Ran
ran; our contract draft was wrong, not the code
prescient-design/holo-bench/holo/logging/_wandb_setup.py
code served (permissive licence) · get_code("7195cef1d1d66cb1")
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.

from omegaconf import DictConfig, OmegaConf

# Create a nested DictConfig for testing
nested_dict = {
    'model': {
        'layers': 3,
        'hidden_dim': 64,
        'activation': 'relu'
    },
    'training': {
        'lr': 0.001,
        'batch_size': 32,
        'epochs': 10
    },
    'simple_value': 42,
    'name': 'test_config'
}

config = OmegaConf.create(nested_dict)

ARGS = {
    'd': config,
    'parent_key': '',
    'sep': '/'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — 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
motif_search Ran
ran; our contract draft was wrong, not the code
prescient-design/holo-bench/holo/test_functions/elemental/_motif.py
code served (permissive licence) · get_code("b66ebcc2929ef32a")
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 math

torch.manual_seed(0)

# Construct the arguments for motif_search function
# solution: torch.LongTensor - the sequence to search in
# motif: torch.LongTensor - the pattern to search for
# spacing: Optional[torch.LongTensor] - spacing between motif elements
# mode: str - 'present' or 'count'
# quantization: Optional[int] - quantization factor

# Create a solution tensor (batch_size=2, sequence_length=8)
solution = torch.tensor([
    [1, 2, 3, 4, 5, 6, 7, 8],
    [2, 3, 4, 5, 6, 7, 8, 9]
], dtype=torch.long)

# Create a motif tensor (batch_size=2, motif_size=3)
motif = torch.tensor([
    [1, 3, 5],
    [2, 4, 6]
], dtype=torch.long)

# Create spacing tensor (batch_size=2, spacing_length=2)
# spacing defines gaps between motif elements
spacing = torch.tensor([
    [1, 1],
    [1, 1]
], dtype=torch.long)

# Mode can be 'present' or 'count'
mode = 'present'

# Quantization factor (optional)
quantization = 3

ARGS = {
    'solution': solution,
    'motif': motif,
    'spacing': spacing,
    'mode': mode,
    'quantization': quantization
}
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 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
parse_factory_kwargs Ran
ran on a synthesized input
machinelearninglifescience/poli/src/poli/external_isolated_function_script.py
code served (permissive licence) · get_code("219c3e1e990af172")
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

# Test case 1: Empty string
test1 = ''

# Test case 2: Simple string parameters
test2 = '--param1=value1 --param2=value2'

# Test case 3: List parameters
test3 = '--items=list:a,b,c --names=list:x,y'

# Test case 4: Integer parameters
test4 = '--count=int:42 --size=int:100'

# Test case 5: Float parameters
test5 = '--threshold=float:0.5 --rate=float:1.23'

# Test case 6: Special float values
test6 = '--max_val=float:inf --min_val=float:-inf'

# Test case 7: Boolean parameters
test7 = '--enabled=bool:True --disabled=bool:False'

# Test case 8: None parameters
test8 = '--nothing=none:None'

# Test case 9: Mixed parameters
test9 = '--name=value --count=int:5 --items=list:a,b --score=float:0.9 --active=bool:True --extra=none:None'

ARGS = {
    'factory_kwargs': test9
}
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

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

There is a growing body of work seeking to replicate the success of machine learning (ML) on domains like computer vision (CV) and natural language processing (NLP) to applications involving biophysical data. One of the key ingredients of prior successes in CV and NLP was the broad acceptance of difficult benchmarks that distilled key subproblems into approachable tasks that any junior researcher could investigate, but good benchmarks for biophysical domains are rare. This scarcity is partially due to a narrow focus on benchmarks which simulate biophysical data; we propose instead to carefully abstract biophysical problems into simpler ones with key geometric similarities. In particular we propose a new class of closed-form test functions for biophysical sequence optimization, which we call Ehrlich functions. We provide empirical results demonstrating these functions are interesting objects of study and can be non-trivial to solve with a standard genetic optimization baseline.

For agents

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

get_harvested_code_for_paper("2407.00236")
get_code_for_paper("2407.00236")
have("2407.00236")

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

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

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

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

Connect an agent — have() is free.