SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16054 · NeurIPS · 2024

Metric Space Magnitude for Evaluating the Diversity of Latent Representations

Bastian Rieck, Katharina Limbeck, Rayna Andreeva, Rik Sarkar

arXiv · PDF · Open in the Atlas

Code that ran

30 of 33 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; 9 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 19 failures of our instrument; 3 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/2311.16054.json · badge: /api/ran/2311.16054.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
aidos-lab/magnipy canonical (classifier label)
classifier basis: census
17 ran · 3 no recorded run
renata-turkes/turkevs2022on canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
GuyTevet/diversity-eval canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
uoguelph-mlrg/GGM-metrics canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
FunctionStatusWhere it lives
CamleCase2snake_case Ran
ran; our contract draft was wrong, not the code
GuyTevet/diversity-eval/utils.py
code served (permissive licence) · get_code("9095a8a7140419e0")
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 re

def CamleCase2snake_case(string):
    return re.sub('(?<!^)(?=[A-Z])', '_', string).lower()

ARGS = {
    'string': 'CamelCaseString'
}
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 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
add_and_normalize Ran
ran; our contract draft was wrong, not the code
aidos-lab/magnipy/magnipy/magnitude/approximation.py
code served (permissive licence) · get_code("5c72092158a3698e")
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, 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)

# Construct a small matrix S for the function to operate on
# The function uses S.shape[0] and S.device, and performs matrix operations
# Let's make it a 4x4 matrix to keep it small but valid
S = torch.randn(4, 4)

# h is the number of iterations
h = 2

ARGS = {
    "S": S,
    "h": h
}
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, 4) — shape (4, 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
add_and_normalize_asvec Ran
ran; our contract draft was wrong, not the code
aidos-lab/magnipy/magnipy/magnitude/approximation.py
code served (permissive licence) · get_code("b274151040732cd4")
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, 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)

# S should be a square matrix since it's used in matrix multiplication and indexing
# The function uses S.shape[0], S.device, and performs S @ W operations
S = torch.randn(4, 4)

# h should be an integer representing the number of iterations
h = 2

ARGS = {
    "S": S,
    "h": h,
}
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, 4) — shape (4, 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
distances_scipy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aidos-lab/magnipy/magnipy/magnitude/distances.py
code served (permissive licence) · get_code("14cd7a0ab022008b")
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, 3) 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 datasets for X and X2
np.random.seed(0)
X = np.random.randn(2, 4)  # 2 observations, 4 features
X2 = np.random.randn(3, 4)  # 3 observations, 4 features

# Define arguments for distances_scipy
ARGS = {
    'X': X,
    'X2': X2,
    'metric': 'cosine'
}
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 2, dtype family float, shape (2, 3) — shape (2, 3) 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
distances_torch_cdist Ran
ran; our contract draft was wrong, not the code
aidos-lab/magnipy/magnipy/magnitude/distances.py
code served (permissive licence) · get_code("57bcfd22be6bc28d")
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 (2, 3) 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 small tensors for X and X2
# X: shape (2, 4) - 2 samples, 4 dimensions
# X2: shape (3, 4) - 3 samples, 4 dimensions (same feature dimension as X)
X = torch.randn(2, 4)
X2 = torch.randn(3, 4)

ARGS = {
    'X': X,
    'X2': X2,
    'kwargs': {'p': 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 (2, 3) — shape (2, 3) 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
dominatingSet Ran
ran, honoured the contract we drafted
aidos-lab/magnipy/magnipy/magnitude/approximation.py
code served (permissive licence) · get_code("80d356a274d36e9d")
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 int, 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
from scipy.spatial import distance_matrix
import networkx as nx

# Create a small dataset X
# The function uses X to compute a distance matrix, so it needs to be a 2D array
# of points. Let's create 5 points in 3D space for a small example.
np.random.seed(0)
X = np.random.randn(5, 3)

# epsilon is the threshold for the distance matrix to determine graph connectivity
epsilon = 0.5

ARGS = {
    "X": X,
    "epsilon": epsilon
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, 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 int, 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
fit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renata-turkes/turkevs2022on/SRC/model.py
pointer only (licence: NONE) · get_code("9e95cd27c390703a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_scales Ran
ran, honoured the contract we drafted
aidos-lab/magnipy/magnipy/magnitude/scales.py
code served (permissive licence) · get_code("c38c6f0621bdc25b")
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

ARGS = {
    "t_conv": 10.0,
    "n_ts": 10,
    "log_scale": False,
    "one_point_property": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (10,) — shape (10,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_score Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renata-turkes/turkevs2022on/SRC/model.py
pointer only (licence: NONE) · get_code("30e11bb16f36a080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_scores_under_trnsfs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renata-turkes/turkevs2022on/SRC/model.py
pointer only (licence: NONE) · get_code("390fc61038cf65b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hawkes_process Ran
ran, honoured the contract we drafted
aidos-lab/magnipy/magnipy/utils/datasets.py
code served (permissive licence) · get_code("74d190a61229bca5")
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 (11, 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 numpy as np

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

# Define arguments for hawkes_process function
# lam: lambda parameter - controls the initial Poisson process intensity
# alpha: alpha parameter - controls the branching/hawkes intensity

ARGS = {
    "lam": 5.0,      # Average number of initial events
    "alpha": 0.3     # Branching intensity parameter
}
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 (11, 2) — shape (11, 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
interpolate_functions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aidos-lab/magnipy/magnipy/magnitude/function_operations.py
code served (permissive licence) · get_code("c0b92e7dd7294e11")
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.interpolate import interp1d

# Create sample data for the two magnitude functions
mag1 = np.array([0.5, 1.2, 1.8, 2.1, 2.3])
ts1 = np.array([0.1, 0.5, 1.0, 1.5, 2.0])

mag2 = np.array([0.3, 0.9, 1.5, 2.0, 2.4])
ts2 = np.array([0.2, 0.6, 1.2, 1.8, 2.2])

ARGS = {
    'mag': mag1,
    'ts': ts1,
    'mag2': mag2,
    'ts2': ts2,
    'kind': 'linear'
}
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
mag_convergence Ran
ran, honoured the contract we drafted
aidos-lab/magnipy/magnipy/magnitude/convergence.py
code served (permissive licence) · get_code("2a2d2f77cab8ed08")
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 torch
import numpy as np
from scipy.optimize import toms748

torch.manual_seed(0)

# Define a simple function whose root we want to find
# For example: f(x) = x^2 - 4, which has roots at x = ±2
def f(x):
    """A simple quadratic function: x^2 - 4"""
    return x**2 - 4

# Set up the arguments for mag_convergence
# We need x0 and x1 to bracket a root
# Since f(x) = x^2 - 4:
#   f(0) = -4 (negative)
#   f(3) = 9 - 4 = 5 (positive)
# So the root is between 0 and 3 (the root at x=2)

ARGS = {
    "x0": 0.0,
    "x1": 3.0,
    "f": f,
    "max_iterations": 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — 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
magitude_dimension_profile_interp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aidos-lab/magnipy/magnipy/magnitude/dimension.py
code served (permissive licence) · get_code("77bc05fdc7bdda07")
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 small test data for the function
# mag: array of magnitude values evaluated at scales ts
# ts: array of scaling parameters
# The function computes slopes on a log-log plot

# Create a simple magnitude function: mag ~ ts^alpha for some alpha
# This gives a linear relationship on log-log scale
ts = np.array([0.1, 0.2, 0.4, 0.8, 1.6])
# Create magnitude values following a power law: mag = 2 * ts^1.5
mag = 2.0 * (ts ** 1.5)

ARGS = {
    "mag": mag,
    "ts": ts,
    "return_log_scale": False,
    "one_point_property": True,
}
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
parse_path_list Ran
ran; our contract draft was wrong, not the code
GuyTevet/diversity-eval/utils.py
code served (permissive licence) · get_code("19370684bb74474d")
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 list, 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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
temp_subdir = os.path.join(temp_dir, 'subdir')
os.makedirs(temp_subdir, exist_ok=True)

# Create some test CSV files
csv_file1 = os.path.join(temp_dir, 'test1.csv')
csv_file2 = os.path.join(temp_subdir, 'test2.csv')
default_csv = os.path.join(temp_dir, 'default.csv')

with open(csv_file1, 'w') as f:
    f.write('col1,col2\n1,2\n')

with open(csv_file2, 'w') as f:
    f.write('col1,col2\n3,4\n')

with open(default_csv, 'w') as f:
    f.write('col1,col2\n5,6\n')

ARGS = {
    'path_str': f'{csv_file1},{temp_subdir}',
    'default_path': default_csv,
    'file_extension': '.csv'
}
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 list, ndim 1, dtype family float — a list 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
plot_bar_chart Ran
ran; our contract draft was wrong, not the code
renata-turkes/turkevs2022on/SRC/plots.py
pointer only (licence: NONE) · get_code("99e35b75b8ef77a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

plot_point_cloud Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renata-turkes/turkevs2022on/SRC/plots.py
pointer only (licence: NONE) · get_code("1ffb8e1cff07b206")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

represents_int Ran
ran, violated the contract we drafted
GuyTevet/diversity-eval/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from aminebdj/openyolo3d, is pointer only (licence: NONE) · get_code("945af43d6054ff01")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aminebdj/openyolo3d, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_circle Ran
ran, honoured the contract we drafted
renata-turkes/turkevs2022on/SRC/data_construction.py
pointer only (licence: NONE) · get_code("0e0cf18213ce587d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_closed_curve Ran
ran, honoured the contract we drafted
renata-turkes/turkevs2022on/SRC/data_construction.py
pointer only (licence: NONE) · get_code("b9eb1ba39ca9e0f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_levy Ran
ran, honoured the contract we drafted
aidos-lab/magnipy/magnipy/utils/datasets.py
code served (permissive licence) · get_code("3938597695a61b0a")
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 (500, 3) 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
import scipy.stats as st

ARGS = {
    "alpha": 1.5,
    "seed": 0,
    "n_steps": 500,
    "dim": 3,
}
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 2, dtype family float, shape (500, 3) — shape (500, 3) 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
sample_parabola Ran
ran, honoured the contract we drafted
renata-turkes/turkevs2022on/SRC/data_construction.py
pointer only (licence: NONE) · get_code("69c9cfb6c70b3a98")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_sphere Ran
ran, honoured the contract we drafted
aidos-lab/magnipy/magnipy/utils/datasets.py
code served (permissive licence) · get_code("206ca962357ee7ca")
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 (5, 3) 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

ARGS = {
    "n": 5,
    "d": 3,
}
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 (5, 3) — shape (5, 3) 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
scale_when_almost_scattered Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aidos-lab/magnipy/magnipy/magnitude/scales.py
code served (permissive licence) · get_code("bd503d1c36734b04")
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

# Create a small distance matrix
# D should be symmetric with zeros on diagonal (distances from points to themselves)
np.random.seed(0)
n_obs = 5
D = np.random.rand(n_obs, n_obs)
# Make it symmetric
D = (D + D.T) / 2
# Zero out diagonal (distance from point to itself is 0)
np.fill_diagonal(D, 0)

# Define parameters
n = None  # Will default to D.shape[0]
q = None  # Will default to 1/n

ARGS = {
    "D": D,
    "n": n,
    "q": q,
}
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
scale_when_scattered Ran
ran, violated the contract we drafted
aidos-lab/magnipy/magnipy/magnitude/scales.py
code served (permissive licence) · get_code("7af97385a5f3cea1")
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

# Create a small distance matrix
# D should be a square matrix of distances (n_obs x n_obs)
# For a valid distance matrix, diagonal should be 0, and off-diagonal should be positive
n_obs = 5
D = np.array([
    [0.0, 1.2, 2.3, 3.1, 4.0],
    [1.2, 0.0, 1.5, 2.2, 3.0],
    [2.3, 1.5, 0.0, 1.8, 2.5],
    [3.1, 2.2, 1.8, 0.0, 1.3],
    [4.0, 3.0, 2.5, 1.3, 0.0]
], dtype=np.float64)

ARGS = {
    "D": D,
    "n": None
}
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
time_function Ran
ran; our contract draft was wrong, not the code
uoguelph-mlrg/GGM-metrics/evaluation/gin_evaluation.py
code served (permissive licence) · get_code("9dbb5a4e5682531e")
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 function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import time

torch.manual_seed(0)

def time_function(func):
    def wrapper(*args, **kwargs):
        start = time.time()
        results = func(*args, **kwargs)
        end = time.time()
        return (results, end - start)
    return wrapper

# Define a simple test function to be wrapped and timed
def sample_function(x, y, multiplier=1):
    time.sleep(0.01)
    return (x + y) * multiplier

# Define ARGS dict mapping every parameter of time_function
ARGS = {
    'func': sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
tnet Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renata-turkes/turkevs2022on/SRC/point_net.py
pointer only (licence: NONE) · get_code("13e464fa266c83c1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renata-turkes/turkevs2022on when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

weights_cholesky Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aidos-lab/magnipy/magnipy/magnitude/weights.py
code served (permissive licence) · get_code("aa5ef8d6a72b7142")
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
from scipy.linalg import cho_factor
from scipy.linalg import solve_triangular, solve

# Create a small positive definite similarity matrix
np.random.seed(0)
n_obs = 4
# Generate a random matrix and make it symmetric positive definite
A = np.random.randn(n_obs, n_obs)
Z = A @ A.T + np.eye(n_obs)  # Ensure positive definiteness

ARGS = {
    "Z": Z
}
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 (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
weights_cholesky_torch Ran
ran; our contract draft was wrong, not the code
aidos-lab/magnipy/magnipy/magnitude/weights.py
code served (permissive licence) · get_code("f865a4ad55735480")
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 (1, 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)

# Create a small positive definite matrix that can be used with Cholesky decomposition
# A positive definite matrix can be constructed as Z = A @ A.T where A is any matrix
A = torch.randn(4, 4)
Z = A @ A.T

ARGS = {
    "Z": Z
}
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 (1, 4) — shape (1, 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
weights_naive_torch Ran
ran; our contract draft was wrong, not the code
aidos-lab/magnipy/magnipy/magnitude/weights.py
code served (permissive licence) · get_code("40786c634187db66")
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)

# Create a small invertible similarity matrix
# Using a 4x4 matrix to keep it simple and ensure invertibility
Z = torch.randn(4, 4)
# Make it symmetric and positive definite by multiplying with its transpose
Z = Z @ Z.T + torch.eye(4)

ARGS = {
    "Z": Z
}
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
compute_magnitude_from_distances Not yet run
unverified (harvested, no recorded run)
aidos-lab/magnipy/magnipy/magnitude/compute.py
code served (permissive licence) · get_code("84017b2cb70badb0")
How it ran

no invocation recorded.

distances_isomap Not yet run
unverified (harvested, no recorded run)
aidos-lab/magnipy/magnipy/magnitude/distances.py
code served (permissive licence) · get_code("fe1b4f6db80e1301")
How it ran

no invocation recorded.

guess_convergence_scale Not yet run
unverified (harvested, no recorded run)
aidos-lab/magnipy/magnipy/magnitude/convergence.py
code served (permissive licence) · get_code("3b042402ff1ced65")
How it ran

no invocation recorded.

Also present in other papers' code

Of 33 samples lifted from this paper's linked repositories, 33 carry a function identity and 0 do not. Of the 33 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 31 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
represents_int 7 other papers
3 dated earlier, 1 the same month, 3 later
1906.01140 (2019-06)
Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
aaai_16558 (2021 (year only))
DocParser: Hierarchical Document Structure Parsing from Renderings
2306.03908 (2023-06)
SAM3D: Segment Anything in 3D Scenes
and 4 more not named here
time_function 1 other paper
1 dated earlier
2305.04111 (2023-05)
Efficient and Degree-Guided Graph Generation via Discrete Diffusion Modeling

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

The magnitude of a metric space is a novel invariant that provides a measure of the 'effective size' of a space across multiple scales, while also capturing numerous geometrical properties, such as curvature, density, or entropy. We develop a family of magnitude-based measures of the intrinsic diversity of latent representations, formalising a novel notion of dissimilarity between magnitude functions of finite metric spaces. Our measures are provably stable under perturbations of the data, can be efficiently calculated, and enable a rigorous multi-scale characterisation and comparison of latent representations. We show their utility and superior performance across different domains and tasks, including (i) the automated estimation of diversity, (ii) the detection of mode collapse, and (iii) the evaluation of generative models for text, image, and graph data.

For agents

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

get_harvested_code_for_paper("2311.16054")
get_code_for_paper("2311.16054")
have("2311.16054")

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

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

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

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

Connect an agent — have() is free.