SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.01582 · 2023

Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl

arXiv · PDF · Open in the Atlas

Code that ran

22 of 29 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 11 have no contract verdict; 10 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/2305.01582.json · badge: /api/ran/2305.01582.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
MilesCranmer/PySR canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
milescranmer/symbolicregression.jl canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
milescranmer/pysr_paper canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
hftsoi/symbolfit community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
FunctionStatusWhere it lives
cond Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/math_defs.py
code served (permissive licence) · get_code("7339ce430d9364c3")
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 (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 cond(x, y) uses numpy's where function
# where(x > 0.0, y, 0.0) returns y where x > 0.0, else 0.0
# Both x and y should be numpy arrays

x = np.array([1.5, -0.3, 2.1, -1.2])
y = np.array([10.0, 20.0, 30.0, 40.0])

ARGS = {
    "x": x,
    "y": y
}
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 (4,) — shape (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
dataset_formatting Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/processing.py
code served (permissive licence) · get_code("cedb288dc6f7aa5b")
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 valid arguments for dataset_formatting function

# Create simple x data: 5 samples with 3 features each
x = 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],
              [13.0, 14.0, 15.0]])

# Create corresponding y data: 5 samples with 1 target each
y = np.array([[1.5],
              [2.5],
              [3.5],
              [4.5],
              [5.5]])

# Create y_up uncertainties: 5 samples
y_up = np.array([[0.1],
                 [0.2],
                 [0.15],
                 [0.25],
                 [0.3]])

# Create y_down uncertainties: 5 samples
y_down = np.array([[0.1],
                   [0.2],
                   [0.15],
                   [0.25],
                   [0.3]])

# Boolean flag for fitting uncertainties
fit_y_unc = True

ARGS = {
    'x': x,
    'y': y,
    'y_up': y_up,
    'y_down': y_down,
    'fit_y_unc': fit_y_unc
}
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
denoise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MilesCranmer/PySR/pysr/denoising.py
code served (permissive licence) · get_code("2e8d4f68018bb06b")
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 small sample datasets
np.random.seed(42)

# X: feature matrix with shape (n_samples, n_features)
# Using 5 samples with 4 features
X = np.random.randn(5, 4)

# y: target vector with shape (n_samples,)
y = np.random.randn(5)

# Xresampled: optional resampled feature matrix with different n_samples
# Using 3 samples with same 4 features
Xresampled = np.random.randn(3, 4)

# random_state: numpy RandomState for reproducibility
random_state = np.random.RandomState(42)

ARGS = {
    "X": X,
    "y": y,
    "Xresampled": Xresampled,
    "random_state": random_state,
}
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 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
exec_then_eval Ran
ran, honoured the contract we drafted
milescranmer/pysr_paper/src/scripts/benchmark.py
code served (permissive licence) · get_code("dbaba5d6f75f42b2")
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 int, ndim 0, dtype family int, 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 ast

torch.manual_seed(0)

# Analyzing the function:
# - code: a string containing Python code where the last statement is an expression
# - rstate: appears to be unused in the function body, but we need to provide it
# 
# The function parses code, executes all but the last statement,
# then evaluates the last statement as an expression.
# We need to construct valid code and an rstate object.

# Simple code example: define a variable and return it
code = """
x = 5
y = 10
x + y
"""

# rstate can be any object since it's not actually used in the function
rstate = None

ARGS = {
    "code": code,
    "rstate": rstate,
}
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 int, ndim 0, dtype family int, 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
func_sampling_1d Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/evaluate.py
code served (permissive licence) · get_code("dfe1ce2145be470b")
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
import scipy.stats
import sympy

# Define the arguments for func_sampling_1d

# func_str: A parameterized function string using x0 as the independent variable
# and parameters a, b as the parameters to vary
func_str = 'a * x0 + b'

# param: Dictionary with parameter names as keys and tuples of (best_fit, up_unc, down_unc)
# Parameters with up=0 and down=0 are fixed; others are varied
param = {
    'a': (2.0, 0.5, 0.5),      # best_fit=2.0, up_unc=0.5, down_unc=0.5 (varied)
    'b': (1.0, 0.0, 0.0),      # best_fit=1.0, up_unc=0, down_unc=0 (fixed)
}

# cov: Covariance matrix dictionary for the varied parameters
# Keys are formatted as 'param1, param2'
cov = {
    'a, a': 0.25,          # variance of parameter a
    'a, Symbol(\'a\'), Symbol(\'a\')': 0.0,  # covariance between a and itself (diagonal)
}

# x: Independent variable array for the original sampling points
x = np.array([0.0, 1.0, 2.0, 3.0])

# x_finer: Independent variable array for finer sampling points
x_finer = np.array([0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0])

# n_samples: Number of Monte Carlo samples to draw
n_samples = 100

ARGS = {
    'func_str': func_str,
    'param': param,
    'cov': cov,
    'x': x,
    'x_finer': x_finer,
    'n_samples': n_samples,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sympy — 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
gen_dataset_using_generator Ran
ran; our contract draft was wrong, not the code
milescranmer/pysr_paper/src/scripts/benchmark.py
code served (permissive licence) · get_code("f6c7138e24af8065")
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
import mpmath as mp
import pandas as pd
import ast

# Set random seed for reproducibility
np.random.seed(42)
rstate = np.random.RandomState(42)

# Create a simple problem dict with data_generator
problem = {
    'data_generator': {
        'args': ['x', 'y'],
        'callable': 'x + y',
        'size': 5,
        'ranges': {
            'x': [1.0, 10.0, 'log'],
            'y': [0.5, 5.0, 'linear']
        },
        'noise': {
            'type': 'stdev',
            'scale': 0.1
        }
    }
}

ARGS = {
    'problem': problem,
    'rstate': rstate
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
mpmath, numpy, pandas — 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
generate_table_environment Ran
ran; our contract draft was wrong, not the code
MilesCranmer/PySR/pysr/export_latex.py
code served (permissive licence) · get_code("35cac027aec2fc9a")
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 1, dtype family float; 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 torch
import numpy as np

# Analyze the function: generate_table_environment takes columns as a list[str]
# The function uses: len(columns), iterates through columns to map them
# Default is ['equation', 'complexity', 'loss']
# All keys in column_map are: 'complexity', 'loss', 'equation', 'score'

# Construct valid arguments
ARGS = {
    'columns': ['equation', 'complexity', 'loss']
}
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 1, dtype family float — 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
go_to_level Ran
ran on a synthesized input
milescranmer/symbolicregression.jl/benchmark/analyze.py
code served (permissive licence) · get_code("425b9408358a1729")
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 Node. 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

class Node:
    def __init__(self, children=None):
        self.children = children if children is not None else {}

# Create a nested tree structure
leaf_node = Node()
level_1_node = Node({0: leaf_node})
level_0_node = Node({1: level_1_node})
root_node = Node({2: level_0_node})

ARGS = {
    "node": root_node,
    "levels": [2, 1, 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 Node — a Node output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Node 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
histogram_scale Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/processing.py
code served (permissive licence) · get_code("009111bb1da07095")
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 small numpy arrays for the function
np.random.seed(0)

x = np.array([0.1, 0.3, 0.5, 0.7, 0.9])
y = np.array([1.0, 2.5, 3.2, 2.1, 0.5])
y_up = np.array([1.2, 2.8, 3.5, 2.4, 0.8])
y_down = np.array([0.8, 2.2, 2.9, 1.8, 0.2])

ARGS = {
    'x': x,
    'y': y,
    'y_up': y_up,
    'y_down': y_down,
    'x_min': 0.0,
    'x_max': 1.0,
    'scale_y_by': 'max'
}
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
load_pysr_graph Ran
ran on a synthesized input
milescranmer/symbolicregression.jl/benchmark/family_tree.py
code served (permissive licence) · get_code("787326048f48a5af")
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 DiGraph. 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 json
import tempfile
import os

# Create a temporary JSONL file with sample PySR trace data
temp_dir = tempfile.mkdtemp()
jsonl_path = os.path.join(temp_dir, "pysr_trace.jsonl")

# Write sample trace records
trace_data = [
    {
        "record_type": "iteration",
        "mutations": {
            "0": {
                "parent": None,
                "loss": 0.5,
                "cost": 1.0,
                "tree": "x + y",
                "events": [
                    {
                        "type": "mutate",
                        "child": 1,
                        "time": 0.1,
                        "mutation": {"operator": "insert", "node": "sin"}
                    }
                ]
            },
            "1": {
                "parent": 0,
                "loss": 0.4,
                "cost": 1.5,
                "tree": "sin(x) + y",
                "events": [
                    {
                        "type": "crossover",
                        "parent1": 0,
                        "parent2": None,
                        "child1": 2,
                        "child2": None,
                        "time": 0.2,
                        "details": {"method": "subtree"}
                    }
                ]
            },
            "2": {
                "parent": 1,
                "loss": 0.35,
                "cost": 2.0,
                "tree": "sin(x + y)",
                "events": [
                    {
                        "type": "tuning",
                        "child": 3,
                        "time": 0.3,
                        "mutation": {"param": "lr", "value": 0.01}
                    }
                ]
            },
            "3": {
                "parent": 2,
                "loss": 0.3,
                "cost": 2.1,
                "tree": "sin(x + y)",
                "events": []
            }
        }
    },
    {
        "record_type": "other_type",
        "some_field": "should be skipped"
    }
]

with open(jsonl_path, 'w') as f:
    for record in trace_data:
        f.write(json.dumps(record) + '\n')

ARGS = {
    "jsonl_path": jsonl_path,
    "progress": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiGraph — a DiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiGraph 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
multi_denoise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MilesCranmer/PySR/pysr/denoising.py
code served (permissive licence) · get_code("788c8f857dfc7e08")
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
from numpy.random import RandomState

# Create small sample data
np.random.seed(0)
random_state = RandomState(0)

# X: feature matrix with 2 samples and 4 features
X = np.random.randn(2, 4)

# y: target matrix with 2 samples and 3 output columns
y = np.random.randn(2, 3)

# Xresampled: resampled feature matrix with 3 samples and 4 features
Xresampled = np.random.randn(3, 4)

ARGS = {
    "X": X,
    "y": y,
    "Xresampled": Xresampled,
    "random_state": random_state,
}
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 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
piecewise Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/math_defs.py
code served (permissive licence) · get_code("d09001cea2cb6d5d")
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 torch
import numpy as np

torch.manual_seed(0)

# The function piecewise takes two parameters: y and x
# It uses numpy's where function to return y where x > 0.0, else 0.0
# Both y and x should be numpy arrays (or compatible with numpy operations)

y = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

x = np.array([[0.5, -0.3, 1.2, -0.1],
              [2.0, -1.5, 0.0, 3.5]])

ARGS = {
    'y': y,
    'x': x
}
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 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
round_a_number Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/utils.py
code served (permissive licence) · get_code("8835c31e0f902ddc")
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 float64, ndim 0, dtype family float; 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
from math import log10

# Set up numpy for reproducibility
np.random.seed(0)

# Create a valid numpy float number to round
number = np.float64(3.14159265359)

# Define the sig_fig parameter
sig_fig = 6

# Construct the ARGS dictionary
ARGS = {
    "number": number,
    "sig_fig": sig_fig
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
round_numbers_in_sympy_expr Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/utils.py
code served (permissive licence) · get_code("83cf752c5fd1aa95")
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 Add. 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 sympy

# Create a simple sympy expression with various numbers
x = sympy.Symbol('x')
sympy_expr = 2.71828*x**2 + 3.14159*x + 1.41421

ARGS = {
    'sympy_expr': sympy_expr,
    'sig_fig': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Add — a Add output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Add 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
run_feature_selection Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MilesCranmer/PySR/pysr/feature_selection.py
code served (permissive licence) · get_code("e6060650fde67a36")
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

# Create small sample data
np.random.seed(0)
X = np.random.randn(10, 5).astype(np.float64)  # 10 samples, 5 features
y = np.random.randn(10).astype(np.float64)     # 10 target values
select_k_features = 3
random_state = np.random.RandomState(42)

ARGS = {
    "X": X,
    "y": y,
    "select_k_features": select_k_features,
    "random_state": random_state,
}
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 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
simplify_graph Ran
ran on a synthesized input
milescranmer/symbolicregression.jl/benchmark/family_tree.py
code served (permissive licence) · get_code("d9fc600105551ba1")
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 DiGraph. 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 networkx as nx
import torch
import numpy as np

# Create a simple graph with nodes and edges that have the expected attributes
G = nx.DiGraph()

# Add nodes with the attributes that simplify_graph expects
G.add_node(0, cost=1.5, loss=0.3, tree='x + y')
G.add_node(1, cost=2.0, loss=0.5, tree='(x + y) * z + sin(w)')
G.add_node(2, cost=3.0, loss=0.7, tree='This is a very long tree representation that should be truncated')

# Add edges with the attributes that simplify_graph expects
G.add_edge(0, 1, type='mutation', time=0.01)
G.add_edge(1, 2, type='crossover', time=0.02)
G.add_edge(0, 2, type='simplification', time=0.015)

ARGS = {
    'G': G
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiGraph — a DiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiGraph 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
square Ran
ran on a synthesized input
hftsoi/symbolfit/symbolfit/math_defs.py
code served (permissive licence) · get_code("e4406709fbceb341")
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 (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 torch

torch.manual_seed(0)

x = torch.tensor([2.0, 3.0, 4.0, 5.0])

ARGS = {
    "x": x
}
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 (4,) — shape (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
sympy2jax Ran
ran; our contract draft was wrong, not the code
MilesCranmer/PySR/pysr/export_jax.py
code served (permissive licence) · get_code("2b540eef802dcbec")
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 sympy
from sympy import symbols, cos, sin, sqrt, log, exp
from sympy.codegen.cfunctions import log2, log10

# Create simple symbolic expressions for testing
x, y, z = symbols('x y z')

# Test case 1: Simple expression with multiplication and addition
expr1 = 2.5 * x + 3.7 * y

# Test case 2: Expression with various functions
expr2 = sympy.cos(x) + sympy.sin(y) + sympy.sqrt(z)

# Test case 3: Simple power expression
expr3 = x**2 + y**3

# Test case 4: Expression with division and absolute value
expr4 = sympy.Abs(x) / (y + 1)

# Define symbols_in lists
symbols_in_2 = [x, y]
symbols_in_3 = [x, y, z]

# selection parameter (optional)
selection_2 = None
selection_3 = None

# extra_jax_mappings (optional, can be None or empty dict)
extra_mappings = None

ARGS = {
    "expression": expr1,
    "symbols_in": symbols_in_2,
    "selection": selection_2,
    "extra_jax_mappings": extra_mappings,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, sympy — 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
sympy2jaxtext Ran
ran; our contract draft was wrong, not the code
MilesCranmer/PySR/pysr/export_jax.py
code served (permissive licence) · get_code("7dcdebb05351545b")
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 sympy
from sympy.codegen.cfunctions import log2, log10

# Create a simple symbolic expression
x, y = sympy.symbols('x y')
expr = x + 2*y  # Simple expression: x + 2*y

# Parameters list to accumulate discovered float constants
parameters = []

# List of symbols in order
symbols_in = [x, y]

# Extra JAX mappings (optional, can be empty dict)
extra_jax_mappings = {}

ARGS = {
    'expr': expr,
    'parameters': parameters,
    'symbols_in': symbols_in,
    'extra_jax_mappings': extra_jax_mappings,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — 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
sympy2latex Ran
ran; our contract draft was wrong, not the code
MilesCranmer/PySR/pysr/export_latex.py
code served (permissive licence) · get_code("2f9e8a418b2ddf46")
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 sympy
from sympy.printing.latex import LatexPrinter

class PreciseLatexPrinter(LatexPrinter):
    """Modified SymPy printer with custom float precision."""

    def __init__(self, settings=None, prec=3):
        super().__init__(settings)
        self.prec = prec

    def _print_Float(self, expr):
        reduced_float = sympy.Float(expr, self.prec)
        return super()._print_Float(reduced_float)

def sympy2latex(expr, prec=3, full_prec=True, **settings) -> str:
    """Convert sympy expression to LaTeX with custom precision."""
    settings['full_prec'] = full_prec
    printer = PreciseLatexPrinter(settings=settings, prec=prec)
    return str(printer.doprint(expr))

# Setup code to construct valid arguments
x = sympy.Symbol('x')
y = sympy.Symbol('y')

# Create a simple sympy expression
expr = x**2 + y + sympy.Float(3.14159265359)

ARGS = {
    'expr': expr,
    'prec': 3,
    'full_prec': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — 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
sympy2latextable Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MilesCranmer/PySR/pysr/export_latex.py
code served (permissive licence) · get_code("87522bac09e9f038")
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 pandas as pd
import sympy
import numpy as np

# Create a minimal DataFrame with sympy expressions and numeric columns
equations_data = {
    'sympy_format': [
        sympy.symbols('x') + 2*sympy.symbols('y'),
        sympy.sin(sympy.symbols('x')) + sympy.cos(sympy.symbols('y')),
        sympy.exp(sympy.symbols('x')) - 1,
    ],
    'complexity': [5, 8, 3],
    'loss': [0.123456, 0.987654, 0.456789],
    'score': [0.95, 0.87, 0.92],
}

equations_df = pd.DataFrame(equations_data)

ARGS = {
    'equations': equations_df,
    'indices': [0, 1],
    'precision': 3,
    'columns': ['equation', 'complexity', 'loss', 'score'],
    'max_equation_length': 50,
    'output_variable_name': 'y',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sympy — 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
sympy2numpy Ran
ran; our contract draft was wrong, not the code
MilesCranmer/PySR/pysr/export_numpy.py
code served (permissive licence) · get_code("550105efb9068877")
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 CallableEquation. 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
import pandas as pd
from sympy import symbols, sin, cos, Symbol, Expr
from numpy.typing import NDArray

# Create symbolic variables
x, y = symbols('x y')

# Create a simple symbolic expression (e.g., sin(x) + cos(y))
eqn = sin(x) + cos(y)
sympy_symbols = [x, y]

# Create a selection array (optional parameter)
selection = np.array([True, True, False, False])

ARGS = {
    'eqn': eqn,
    'sympy_symbols': sympy_symbols,
    'selection': selection,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CallableEquation — a CallableEquation output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CallableEquation 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_gof Not yet run
unverified (harvested, no recorded run)
hftsoi/symbolfit/symbolfit/evaluate.py
code served (permissive licence) · get_code("33cebf0739d3fc8e")
How it ran

no invocation recorded.

func_evaluate Not yet run
unverified (harvested, no recorded run)
hftsoi/symbolfit/symbolfit/evaluate.py
code served (permissive licence) · get_code("94e2bf0b5e9e59fc")
How it ran

no invocation recorded.

functions_unscale Not yet run
unverified (harvested, no recorded run)
hftsoi/symbolfit/symbolfit/processing.py
code served (permissive licence) · get_code("86deced1b26d9eec")
How it ran

no invocation recorded.

isinstalled Not yet run
unverified (harvested, no recorded run)
MilesCranmer/PySR/pysr/julia_extensions.py
code served (permissive licence) · get_code("6ddcd76b319a6e15")
How it ran

no invocation recorded.

load_package Not yet run
unverified (harvested, no recorded run)
MilesCranmer/PySR/pysr/julia_extensions.py
code served (permissive licence) · get_code("748684a68ada334b")
How it ran

no invocation recorded.

pysr Not yet run
unverified (harvested, no recorded run)
MilesCranmer/PySR/pysr/deprecated.py
code served (permissive licence) · get_code("6f4e50a90f40bacf")
How it ran

no invocation recorded.

sympy2torch Not yet run
unverified (harvested, no recorded run)
MilesCranmer/PySR/pysr/export_torch.py
code served (permissive licence) · get_code("4da53042a817d8dd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 29 distinct functions with an identity, 13 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 13 later) and 16 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
denoise 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
generate_table_environment 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
isinstalled 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
load_package 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
multi_denoise 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
pysr 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
run_feature_selection 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
sympy2jax 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
sympy2jaxtext 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
sympy2latex 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
sympy2latextable 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
sympy2numpy 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees
sympy2torch 1 other paper
1 later
2602.23561 (2026-02)
VaSST: Variational Inference for Symbolic Regression using Soft Symbolic Trees

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

PySR is an open-source library for practical symbolic regression, a type of machine learning which aims to discover human-interpretable symbolic models. PySR was developed to democratize and popularize symbolic regression for the sciences, and is built on a high-performance distributed back-end, a flexible search algorithm, and interfaces with several deep learning packages. PySR's internal search algorithm is a multi-population evolutionary algorithm, which consists of a unique evolve-simplify-optimize loop, designed for optimization of unknown scalar constants in newly-discovered empirical expressions. PySR's backend is the extremely optimized Julia library SymbolicRegression.jl, which can be used directly from Julia. It is capable of fusing user-defined operators into SIMD kernels at runtime, performing automatic differentiation, and distributing populations of expressions to thousands of cores across a cluster. In describing this software, we also introduce a new benchmark, "EmpiricalBench," to quantify the applicability of symbolic regression algorithms in science. This benchmark measures recovery of historical empirical equations from original and synthetic datasets.

For agents

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

get_harvested_code_for_paper("2305.01582")
get_code_for_paper("2305.01582")
have("2305.01582")

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

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

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

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

Connect an agent — have() is free.