SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1411.5039 · 2014

Introduction to astroML: Machine Learning for Astrophysics

arXiv · PDF · Open in the Atlas

Code that ran

15 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 14 have no contract verdict; 1 failure of our instrument; 5 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/1411.5039.json · badge: /api/ran/1411.5039.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
astroML/astroML canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
LBJ-Wade/astroML community (classifier label)
classifier basis not recorded on the link
14 ran · 3 no recorded run
FunctionStatusWhere it lives
Cminus Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/lumfunc.py
code served (permissive licence) · get_code("4d538191fdf036f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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

# Construct small test arrays for Lynden-Bell's C-minus method
# The function expects 1D arrays of x, y values and their corresponding max values

np.random.seed(0)

# Create 5 sample objects with x, y coordinates
n_objects = 5
x = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
y = np.array([2.0, 3.0, 1.5, 4.5, 2.5])

# xmax: maximum x value observable for each object (limit for x)
xmax = np.array([3.0, 4.0, 5.0, 6.0, 7.0])

# ymax: maximum y value observable for each object (limit for y)
ymax = np.array([4.0, 5.0, 6.0, 7.0, 8.0])

ARGS = {
    "x": x,
    "y": y,
    "xmax": xmax,
    "ymax": ymax,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
TLS_logL Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/linear_model/TLS.py
code served (permissive licence) · get_code("1b49b84c62965761")
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

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

# Define dimensions
N = 2  # number of data points
D = 4  # dimensionality

# Create sample data
X = np.random.randn(N, D).astype(np.float64)

# Create normal vector v
v = np.random.randn(D).astype(np.float64)

# Create diagonal error covariance (N, D) case
dX_diagonal = np.abs(np.random.randn(N, D)).astype(np.float64) + 0.1

ARGS = {
    "v": v,
    "X": X,
    "dX": dX_diagonal,
}
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
angular_dist_to_euclidean_dist Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/correlation.py
code served (permissive licence) · get_code("a900b61fb03e7bbd")
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 numpy as np

# Construct arguments for angular_dist_to_euclidean_dist
D = np.array([[10.0, 20.0, 30.0, 45.0],
              [60.0, 90.0, 120.0, 180.0]])
r = 1.5

ARGS = {
    "D": D,
    "r": r
}
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 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
binned_Cminus Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/lumfunc.py
code served (permissive licence) · get_code("1109c4615399e3f5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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

# Construct small arrays for the Cminus method
# x and y are the primary data arrays
x = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
y = np.array([1.5, 2.5, 3.5, 4.5, 5.5])

# xmax: maximum x value observable for each data point (must be >= x for validity)
xmax = np.array([3.0, 4.0, 5.0, 6.0, 7.0])

# ymax: maximum y value observable for each data point (must be >= y for validity)
ymax = np.array([2.0, 3.0, 4.0, 5.0, 6.0])

# xbins: bin edges for x histogram (need at least 2 edges for 1 bin)
# Should span roughly the range of x values
xbins = np.array([0.5, 2.0, 4.0, 6.0])

# ybins: bin edges for y histogram (need at least 2 edges for 1 bin)
# Should span roughly the range of y values
ybins = np.array([1.0, 3.0, 5.0, 7.0])

# normalize flag
normalize = False

ARGS = {
    'x': x,
    'y': y,
    'xmax': xmax,
    'ymax': ymax,
    'xbins': xbins,
    'ybins': ybins,
    'normalize': normalize
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
binned_statistic_dd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astroML/astroML/astroML/stats/_binned_statistic.py
code served (permissive licence) · get_code("404f2117c295b50d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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 sample data: N points in D dimensions
N = 20
D = 3

# Sample: (N, D) array representing N points in D-dimensional space
sample = np.random.rand(N, D) * 10  # Random points in [0, 10] range

# Values: array of length N with values at each sample point
values = np.random.rand(N) * 100  # Random values in [0, 100] range

# Statistic: use 'mean' as a simple string option
statistic = 'mean'

# Bins: can be int (same for all dims), sequence of ints, or sequence of arrays
bins = 5  # 5 bins per dimension

# Range: sequence of (min, max) tuples for each dimension
range_param = [(0, 10), (0, 10), (0, 10)]

ARGS = {
    'sample': sample,
    'values': values,
    'statistic': statistic,
    'bins': bins,
    'range': range_param
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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
bootstrap Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/resample.py
code served (permissive licence) · get_code("5a73f1eddaa803ee")
How it ran

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

import numpy as np

# Define a simple user_statistic function that computes the mean
def compute_mean(data, **kwargs):
    """Compute row-wise mean of bootstrap samples"""
    if data.ndim == 1:
        return np.array([np.mean(data)])
    return np.mean(data, axis=1)

# Create sample data - 1D array
data = np.array([1.5, 2.3, 3.1, 4.2, 5.0])

ARGS = {
    "data": data,
    "n_bootstraps": 10,
    "user_statistic": compute_mean,
    "kwargs": None,
    "pass_indices": False,
    "random_state": 42
}
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 (10,) — shape (10,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bootstrap_Cminus Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/lumfunc.py
code served (permissive licence) · get_code("e9308fb17e7e948e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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

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

# Create small sample data
n_samples = 10

# x, y: arrays of observed values
x = np.array([1.2, 2.5, 3.1, 4.8, 5.5, 6.2, 7.1, 8.3, 9.0, 10.5])
y = np.array([0.5, 1.2, 1.8, 2.1, 2.9, 3.5, 4.2, 5.1, 5.8, 6.5])

# xmax, ymax: arrays of maximum x and y values for each observation
xmax = np.array([15.0, 14.5, 14.0, 13.5, 13.0, 12.5, 12.0, 11.5, 11.0, 10.5])
ymax = np.array([8.0, 8.5, 9.0, 9.5, 10.0, 10.5, 11.0, 11.5, 12.0, 12.5])

# xbins, ybins: bin edges for histograms
xbins = np.array([0.0, 3.0, 6.0, 9.0, 12.0])
ybins = np.array([0.0, 2.0, 4.0, 6.0, 8.0])

# Parameters
Nbootstraps = 5
normalize = False

ARGS = {
    'x': x,
    'y': y,
    'xmax': xmax,
    'ymax': ymax,
    'xbins': xbins,
    'ybins': ybins,
    'Nbootstraps': Nbootstraps,
    'normalize': normalize
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
crossmatch Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/crossmatch.py
code served (permissive licence) · get_code("9ddd0b13986a126b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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 scipy.spatial import cKDTree

# Create small example datasets for crossmatching
# X1: N1=2 points in D=3 dimensions
X1 = np.array([
    [0.0, 0.0, 0.0],
    [1.0, 1.0, 1.0]
], dtype=float)

# X2: N2=4 points in D=3 dimensions
X2 = np.array([
    [0.1, 0.1, 0.1],
    [1.1, 1.1, 1.1],
    [5.0, 5.0, 5.0],
    [10.0, 10.0, 10.0]
], dtype=float)

# max_distance parameter - set to infinity to accept all matches
max_distance = np.inf

ARGS = {
    "X1": X1,
    "X2": X2,
    "max_distance": max_distance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
crossmatch_angular Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/crossmatch.py
code served (permissive licence) · get_code("d1162866750b16c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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

# For crossmatch_angular, we need:
# X1: array_like, shape (N1, 2) - RA and DEC in degrees
# X2: array_like, shape (N2, 2) - RA and DEC in degrees
# max_distance: float (optional) - maximum radius in degrees

# Create small sample datasets
X1 = np.array([
    [10.5, 20.3],
    [15.2, 25.1]
], dtype=float)

X2 = np.array([
    [10.6, 20.2],
    [15.3, 25.0],
    [50.0, 60.0]
], dtype=float)

max_distance = 1.0  # 1 degree

ARGS = {
    "X1": X1,
    "X2": X2,
    "max_distance": max_distance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
gaussian_basis Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/linear_model/linear_regression.py
code served (permissive licence) · get_code("81dd2671e49c84e6")
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 numpy as np

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

# Define input data X: (n_samples, n_features)
# Using 2 samples and 3 features
X = np.random.randn(2, 3)

# Define means of bases mu: (n_bases, n_features)
# Using 4 bases and 3 features (matching n_features of X)
mu = np.random.randn(4, 3)

# Define sigma: float or array_like that broadcasts to shape of mu
# Using a scalar float
sigma = 1.0

ARGS = {
    "X": X,
    "mu": mu,
    "sigma": sigma
}
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 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
jackknife Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/resample.py
code served (permissive licence) · get_code("6edbb8bfa3740162")
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 numpy as np

def simple_statistic(data, scaling_factor=1.0):
    """A simple user_statistic that returns the mean of each row."""
    data = np.asarray(data)
    if data.ndim == 1:
        return np.mean(data) * scaling_factor
    else:
        return np.mean(data, axis=1) * scaling_factor

def index_based_statistic(indices, scaling_factor=1.0):
    """A user_statistic that works with indices instead of data."""
    indices = np.asarray(indices)
    if indices.ndim == 1:
        return np.mean(indices) * scaling_factor
    else:
        return np.mean(indices, axis=1) * scaling_factor

# Create sample data
data = np.array([1.5, 2.3, 3.1, 4.7, 5.2])

# Define ARGS
ARGS = {
    "data": data,
    "user_statistic": simple_statistic,
    "kwargs": {"scaling_factor": 2.0},
    "return_raw_distribution": False,
    "pass_indices": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
min_component_filter Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/filters.py
code served (permissive licence) · get_code("7f5d8af2583d7bca")
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 (16,) 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
from scipy import optimize, fftpack, signal

np.random.seed(0)

# Create small test data
N = 16
x = np.linspace(0, 1, N)
y = np.sin(2 * np.pi * x) + np.random.normal(0, 0.1, N)
# Add some spikes
y[3] += 2.0
y[10] += 1.5

# Create feature mask marking spike locations
feature_mask = np.zeros(N, dtype=bool)
feature_mask[3] = True
feature_mask[10] = True

ARGS = {
    'x': x,
    'y': y,
    'feature_mask': feature_mask,
    'p': 2,
    'fcut': 0.5,
    'Q': 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 (16,) — shape (16,) 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
ra_dec_to_xyz Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/correlation.py
code served (permissive licence) · get_code("0dd1e23e7ef9d995")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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

# Create sample ra and dec arrays
# ra ranges from 0 to 360 degrees
# dec ranges from -90 to 90 degrees
ra = np.array([0.0, 45.0, 90.0, 180.0, 270.0, 360.0])
dec = np.array([0.0, 30.0, -30.0, 60.0, -60.0, 90.0])

ARGS = {
    "ra": ra,
    "dec": dec,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
uniform_sphere Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/correlation.py
code served (permissive licence) · get_code("fa7729ac3f9237f2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family 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

ARGS = {
    'RAlim': (0.0, 360.0),
    'DEClim': (-90.0, 90.0),
    'size': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family 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
wiener_filter Ran
ran on a synthesized input
LBJ-Wade/astroML/astroML/filters.py
code served (permissive licence) · get_code("c6e6878a8da79be0")
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 (128,) 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 evenly-sampled time series
np.random.seed(0)
N = 128
t = np.linspace(0, 1, N)

# Create synthetic signal: gaussian signal + flat noise
signal_true = 5.0 * np.exp(-0.5 * ((t - 0.5) / 0.1) ** 2)
noise = np.random.randn(N) * 0.5
h = signal_true + noise

# Define arguments
ARGS = {
    't': t,
    'h': h,
    'signal': 'gaussian',
    'noise': 'flat',
    'return_PSDs': False,
    'signal_params': None,
    'noise_params': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 (128,) — shape (128,) 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
FT_continuous Not yet run
unverified (harvested, no recorded run)
LBJ-Wade/astroML/astroML/fourier.py
code served (permissive licence) · get_code("6dd199d7b7c0c43f")
How it ran

no invocation recorded.

IFT_continuous Not yet run
unverified (harvested, no recorded run)
LBJ-Wade/astroML/astroML/fourier.py
code served (permissive licence) · get_code("65d819683dcf45dd")
How it ran

no invocation recorded.

PSD_continuous Not yet run
unverified (harvested, no recorded run)
LBJ-Wade/astroML/astroML/fourier.py
code served (permissive licence) · get_code("595c5d853b055c34")
How it ran

no invocation recorded.

binned_statistic Not yet run
unverified (harvested, no recorded run)
astroML/astroML/astroML/stats/_binned_statistic.py
code served (permissive licence) · get_code("2bfbd04c9d6406ce")
How it ran

no invocation recorded.

binned_statistic_2d Not yet run
unverified (harvested, no recorded run)
astroML/astroML/astroML/stats/_binned_statistic.py
code served (permissive licence) · get_code("b812a36c3b921651")
How it ran

no invocation recorded.

Also present in other papers' code

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

Astronomy and astrophysics are witnessing dramatic increases in data volume as detectors, telescopes and computers become ever more powerful. During the last decade, sky surveys across the electromagnetic spectrum have collected hundreds of terabytes of astronomical data for hundreds of millions of sources. Over the next decade, the data volume will enter the petabyte domain, and provide accurate measurements for billions of sources. Astronomy and physics students are not traditionally trained to handle such voluminous and complex data sets. In this paper we describe astroML; an initiative, based on Python and scikit-learn, to develop a compendium of machine learning tools designed to address the statistical needs of the next generation of students and astronomical surveys. We introduce astroML and present a number of example applications that are enabled by this package.

For agents

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

get_harvested_code_for_paper("1411.5039")
get_code_for_paper("1411.5039")
have("1411.5039")

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

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

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

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

Connect an agent — have() is free.