SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.16215 · NeurIPS · 2023

Koopman Kernel Regression

Eyke Hüllermeier, T Munich, Petar Bevanda, Max Beier, Armin Lederer, Stefan Sosnowski, Sandra Hirche

arXiv · PDF · Open in the Atlas

Code that ran

30 of 39 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 30 have no contract verdict; 0 failures of our instrument; 9 no recorded run), measured 2026-11-23; 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.16215.json · badge: /api/ran/2305.16215.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
TUM-ITR/koopcore canonical (classifier label)
classifier basis: census
23 ran · 4 no recorded run
Ceyron/machine-learning-and-simulation canonical (classifier label)
classifier basis: census
7 ran · 5 no recorded run
FunctionStatusWhere it lives
approximate_kl_divergence Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/contrib/vi_elbo_intuition_visual_torch.py
code served (permissive licence) · get_code("aa2d12c4c78a3230")
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 0, dtype family float, 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
from torch import distributions

torch.manual_seed(0)

# Create two simple distributions that support sample() and log_prob()
p = distributions.Normal(loc=torch.tensor(0.0), scale=torch.tensor(1.0))
q = distributions.Normal(loc=torch.tensor(0.5), scale=torch.tensor(1.5))

# Define size parameter for sampling
size = 10

ARGS = {
    "p": p,
    "q": q,
    "size": size,
}
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 ndarray, ndim 0, dtype family float, 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
convert_2d_to_complex Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/eigenvalues.py
code served (permissive licence) · get_code("6dfc8a2c6e8eeb01")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# The function convert_2d_to_complex takes a 2D array as input
# It accesses data[:, 0] and data[:, 1], so we need at least 2 columns
# We'll create a small tensor with shape (2, 2) - 2 rows, 2 columns
data = torch.tensor([
    [1.0, 2.0],
    [3.0, 4.0]
], dtype=torch.float32)

ARGS = {
    "data": data
}
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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_ct_to_dt Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/eigenvalues.py
code served (permissive licence) · get_code("f1ab2fc65d7d9d30")
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

ARGS = {
    "e": np.array([0.1, 0.5, 1.0, 2.0]),
    "dt": 1.0
}
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
convert_dt_to_ct Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/eigenvalues.py
code served (permissive licence) · get_code("90213921b6596bd8")
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; 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

# The function convert_dt_to_ct takes:
# - e: a value to take the natural log of
# - dt: a time step (default 1.0)
# It returns np.log(e) / dt

# e should be a numeric value (scalar or array-like)
# dt should be a numeric value

e_value = np.array([2.0, 3.0, 4.0, 5.0])
dt_value = 1.0

ARGS = {
    "e": e_value,
    "dt": dt_value,
}
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 — no output shape is stated: observe_signature.py could not observe it (no_result)
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
discretize_RK4 Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/dynamical_systems.py
code served (permissive licence) · get_code("d3bc66e9e4565788")
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

torch.manual_seed(0)

# Define a simple callable function f that takes a tensor and returns a tensor
# This will be used as the dynamics function in the RK4 integrator
class SimpleDynamics(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x):
        return self.linear(x)

# Create an instance of the dynamics function
f = SimpleDynamics()

# Create a small initial state tensor (batch size 2, dimension 4)
x0 = torch.randn(2, 4)

# Time step for integration
dt = 0.01

# Define the ARGS dictionary with all parameters for discretize_RK4
ARGS = {
    "f": f,
    "dt": dt
}
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
estimate_params Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/contrib/em_gmm_multivariate.py
code served (permissive licence) · get_code("31e15bcbe318a96b")
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 a small sample dataset
np.random.seed(0)
x_sub = np.random.randn(2, 4)  # 2 samples, 4 features

ARGS = {
    "x_sub": x_sub
}
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
get_all_one_step Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/any.py
code served (permissive licence) · get_code("ff728c09ecd69eea")
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 3, 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 jax.numpy as jnp
import jax

# The function takes X as input, which is used with jax.vmap operations
# and accessed with X.shape[2:], so X needs to be a multi-dimensional array
# with at least 3 dimensions.
# The convolution operations work on the first two dimensions,
# so we need a 3D or higher dimensional array.

# Create a small test array: shape (batch=2, height=4, width=3)
# This gives us distinct sizes for different dimensions
X = jnp.ones((2, 4, 3))

ARGS = {
    "X": X
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
get_subplots_fig_ax Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/plot.py
code served (permissive licence) · get_code("9a0422aa1a7a1151")
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 matplotlib.pyplot as plt
import matplotlib
matplotlib.use('Agg')  # Use non-interactive backend

# Test case 1: fig_ax is None, use default subplots_kwargs
ARGS = {
    'fig_ax': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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
gramian_tensor_to_lstsq_matrix Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/explicit_invariant_kernels.py
code served (permissive licence) · get_code("72e4361ad07b60fd")
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 ArrayImpl, ndim 2, dtype family float, shape (8, 15) 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 jax
import jax.numpy as jnp

# Create a small Koopman gramian tensor with shape (T, D, Nq, Nb)
# Using distinct dimensions to make shapes unambiguous
T = 2      # time steps
D = 3      # feature dimension
Nq = 4     # query dimension
Nb = 5     # batch dimension

# Create a random gramian tensor
koopman_gramian = jnp.ones((T, D, Nq, Nb), dtype=jnp.float64)

ARGS = {
    "koopman_gramian": koopman_gramian,
    "dtype": jnp.float64,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (8, 15) — shape (8, 15) 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
koopman_kernel Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/explicit_invariant_kernels.py
code served (permissive licence) · get_code("599fce4fcfc64447")
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 ArrayImpl, ndim 3, dtype family float, shape (2, 2, 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 jax.numpy as jnp
import jax

def simple_kernel(x, y):
    """Simple kernel function that computes a Gram matrix."""
    # x shape: (H, d), y shape: (H, d)
    # Returns (H, H) kernel matrix
    return jnp.dot(x, y.T)

# Set up small tensors
H = 3  # number of time points
d = 4  # feature dimension
N1 = 2  # number of query trajectories
N2 = 2  # number of base trajectories
D = 2  # number of eigenvalues
Hq = 5  # query trajectory history (>= H)
Hb = 5  # base trajectory history (>= H)

# Create query trajectories: (N1, Hq, d)
g_1 = jnp.ones((N1, Hq, d))

# Create base trajectories: (N2, Hb, d)
g_2 = jnp.ones((N2, Hb, d))

# Create time vector: (H,)
t_vec = jnp.array([0.0, 1.0, 2.0])

# Create eigenvalues vector: (D,)
l_vec = jnp.array([-0.5, -0.3])

ARGS = {
    "base_kernel": simple_kernel,
    "g_1": g_1,
    "g_2": g_2,
    "t_vec": t_vec,
    "l_vec": l_vec,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (2, 2, 2) — shape (2, 2, 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
load_trajectory_dict Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/data_classes.py
code served (permissive licence) · get_code("c6688b714f2426b2")
How it ran

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

import jax.numpy as jnp
import numpy as np
import tempfile
import os

# Create a temporary directory for the npz file
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, "test_trajectories.npz")

# Create sample trajectory data
# N=2 (number of trajectories), H=5 (time steps), d=3 (spatial dimensions)
N = 2
H = 5
d = 3

# Create sample X data: (N, H, d)
X_data = jnp.ones((N, H, d)) * 0.5

# Create sample T data: (N, H)
T_data = jnp.tile(jnp.arange(H, dtype=jnp.float32), (N, 1))

# Save to npz file with naming convention: key ends with 'x' for data, key ends with 't' for time
np.savez(temp_path, 
         traj1x=np.array(X_data),
         traj1t=np.array(T_data),
         traj2x=np.array(X_data * 2),
         traj2t=np.array(T_data))

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_kernel Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/kernels.py
code served (permissive licence) · get_code("ea268ac4b3e2bf0c")
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 jax.numpy as jnp
import numpy as np

# Define ARGS dict with all parameters for make_kernel
ARGS = {
    'kernel_name': 'square-exponential',
    'p_kernel': {
        'scale': 1.0,
        'inhomogenity': 0.1,
        'degree': 2
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
make_koopman_kernel Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/invariant_kernels.py
code served (permissive licence) · get_code("8e4e65cd0a32e769")
How it ran

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

import jax
import jax.numpy as jnp

def simple_base_kernel(x, y):
    """Simple kernel function that takes two inputs and returns a scalar or matrix."""
    # x and y can be vectors or matrices
    # Return a matrix of kernel evaluations
    if x.ndim == 1:
        x = x[None, :]
    if y.ndim == 1:
        y = y[None, :]
    # Compute simple kernel: exp(-||x - y||^2)
    diff = x[:, None, :] - y[None, :, :]
    distances = jnp.sum(diff**2, axis=-1)
    return jnp.exp(-distances)

def custom_normalize(L):
    """Custom normalization function."""
    if L.size == 0:
        return L
    return L / L.shape[1]

# Set up parameters
D = 3  # number of eigenvalues
H = 4  # horizon/history length

# Create eigenvalues_dt: shape (D,)
eigenvalues_dt = jnp.array([0.9, 0.8, 0.7])

# Create base_kernel function that can be vmapped
base_kernel = simple_base_kernel

# Create einsum_kwargs
einsum_kwargs = {'optimize': True}

# Create normalize function
normalize = custom_normalize

ARGS = {
    'base_kernel': base_kernel,
    'eigenvalues_dt': eigenvalues_dt,
    'H': H,
    'einsum_kwargs': einsum_kwargs,
    'normalize': normalize
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_vector_valued_kernel Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/explicit_invariant_kernels.py
code served (permissive licence) · get_code("ffbeaea4a2febd90")
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 jax.numpy as jnp
import numpy as np

# Define a simple base kernel function
def base_kernel(xq, xb):
    """Simple RBF-like kernel for testing"""
    # xq shape: (n_query, input_dim)
    # xb shape: (n_base, input_dim)
    # output shape: (n_query, n_base)
    diff = xq[:, np.newaxis, :] - xb[np.newaxis, :, :]  # (n_query, n_base, input_dim)
    distances_sq = np.sum(diff ** 2, axis=2)  # (n_query, n_base)
    return np.exp(-distances_sq)

# Set up parameters
D = 3  # output dimension
x_base = jnp.array([[1.0, 2.0, 3.0, 4.0],
                     [2.0, 3.0, 4.0, 5.0]])  # (2, 4) base points

ARGS = {
    "base_kernel": base_kernel,
    "D": D,
    "x_base": x_base
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
mock_data Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/contrib/em_gmm_multivariate.py
code served (permissive licence) · get_code("ac5e3f90105578c2")
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 sklearn.datasets import make_blobs
import matplotlib
matplotlib.use('Agg')  # Use non-interactive backend
import matplotlib.pyplot as plt

# Call the function to inspect its signature
def estimate_params(x_sub):
    num_sub_samples = x_sub.shape[0]
    sum_ = np.sum(x_sub, axis=0)
    mu = sum_ / num_sub_samples
    var = np.var(x_sub, axis=0)
    sigma = np.sqrt(var)
    return (mu, sigma)

def mock_data(n_samples, n_classes):
    x, y = make_blobs(n_samples=n_samples, centers=n_classes, shuffle=False, cluster_std=0.7, random_state=2)
    plt.figure(figsize=(8, 8))
    plt.scatter(x[:, 0], x[:, 1], marker='x')
    plt.title('The sklearn created dataset')
    plt.xlabel('X1')
    plt.ylabel('X2')
    plt.close()  # Close the figure to avoid display issues
    mean_gt = []
    sigma_gt = []
    class_prob_gt = []
    for i in range(n_classes):
        x_sub_idx = np.where(y == i)
        x_sub = x[x_sub_idx]
        mu, sig = estimate_params(x_sub)
        prob = len(x_sub) / n_samples
        mean_gt.append(mu.astype('float64'))
        sigma_gt.append(sig.astype('float64'))
        class_prob_gt.append(prob)
    return (mean_gt, sigma_gt, class_prob_gt)

# Build valid arguments for mock_data
# Parameters: n_samples (int), n_classes (int)
ARGS = {
    'n_samples': 20,
    'n_classes': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, 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
mono_between_enum Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/monomials.py
code served (permissive licence) · get_code("760ebc4e73a31fe7")
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.special import comb

torch.manual_seed(0)

# Analyzing the function:
# - m: appears to be used in comb(n2 + m, n2), comb(n0 + m, n0), comb(n2 + m - 1, n2)
#   This is a numeric parameter (integer)
# - n1: used in comparisons and comb calls, appears to be an integer
# - n2: used in comparisons and comb calls, appears to be an integer
#
# The function takes three integer parameters and performs combinatorial calculations.
# All parameters should be non-negative integers for the comb function to work properly.

ARGS = {
    "m": 5,
    "n1": 2,
    "n2": 4
}
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
mono_between_next_grevlex Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/monomials.py
code served (permissive licence) · get_code("4422ebf49fc59a7a")
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

# Analyze the function signatures:
# mono_between_next_grevlex(m, n1, n2, x)
# - m: integer, dimension count
# - n1: integer, lower bound on sum
# - n2: integer, upper bound on sum
# - x: array-like, monomials that sum to value between n1 and n2

# Create valid arguments
m = 5  # number of variables
n1 = 2  # minimum sum
n2 = 4  # maximum sum

# x should be an array where sum(x) is between n1 and n2
# Let's create x with sum = 3 (which is between 2 and 4)
x = np.array([1, 1, 1, 0, 0], dtype=int)

ARGS = {
    "m": m,
    "n1": n1,
    "n2": n2,
    "x": x
}
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 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
mono_between_next_grlex Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/monomials.py
code served (permissive licence) · get_code("5b919da0f063d4d2")
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

# Analyze the function requirements:
# mono_between_next_grlex(m, n1, n2, x)
# - m: int, must be >= 1 (used as array length)
# - n1: int, must be >= 0
# - n2: int, must be >= n1
# - x: array-like, length m, non-negative integers
#      sum(x) must be between n1 and n2
#      will be modified in place

# Create a valid scenario
m = 5
n1 = 2
n2 = 5
x = np.array([1, 0, 1, 0, 0], dtype=int)

# Verify constraints:
# - m = 5 >= 1 ✓
# - n1 = 2 >= 0 ✓
# - n2 = 5 >= n1 = 2 ✓
# - x has length m ✓
# - all x[i] >= 0 ✓
# - sum(x) = 2, which is between n1=2 and n2=5 ✓

ARGS = {
    'm': m,
    'n1': n1,
    'n2': n2,
    'x': x
}
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 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
normalize_eigenfunctions_by_norm Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/koopman_model.py
code served (permissive licence) · get_code("cb3d0f920549f7d9")
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 ArrayImpl, 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 jax.numpy as jnp

# Create a small matrix L with shape (2, 4)
# This represents 2 eigenfunctions with 4 dimensions each
L = jnp.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
])

ARGS = {
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
normalize_eigenfunctions_by_operator Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/koopman_model.py
code served (permissive licence) · get_code("2eefac08464a0d0c")
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 ArrayImpl, ndim 4, dtype family float, shape (4, 3, 4, 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 jax.numpy as jnp
import jax

# Set seed for reproducibility
jax.config.update('jax_default_prng_impl', 'threefry2x32')

# Create a small test matrix L
# Shape: (D, H) where D=4, H=3
# This will be used in the einsum operations
D, H, E, S = 4, 3, 5, 2

# Create a random complex matrix with distinct dimensions
key = jax.random.PRNGKey(0)
key1, key2 = jax.random.split(key)

# L should be shape (D, H)
L_real = jax.random.normal(key1, (D, H))
L_imag = jax.random.normal(key2, (D, H))
L = L_real + 1j * L_imag

# Ensure L is invertible by making it well-conditioned
# For the einsum 'DH, ES->DE' followed by conjugate and inversion
# We need the intermediate result to be invertible
# The operation 'DH, ES->DE' produces shape (D, E)
# Then we need to invert it, so E must equal E (which it does)

# Let's make sure our L works by checking dimensions
# First einsum: 'DH, ES->DE' where L is (D,H) and L.conj() is (E,S)
# This requires H = E for the contraction to work
# So we need to adjust: let H = E

D, H, S = 4, 3, 2
E = H  # Make E = H so contractions work

key = jax.random.PRNGKey(0)
key1, key2 = jax.random.split(key)

L_real = jax.random.normal(key1, (D, H))
L_imag = jax.random.normal(key2, (D, H))
L = L_real + 1j * L_imag

ARGS = {
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (4, 3, 4, 3) — shape (4, 3, 4, 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
normalize_eigenfunctions_by_steps Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/jax/koopman_model.py
code served (permissive licence) · get_code("1cfff57a9293a2cf")
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, 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)

# The function normalize_eigenfunctions_by_steps takes L as input
# and divides it by L.shape[1] (the size of dimension 1)
# L must be a tensor with at least 2 dimensions
# We'll create a small 2D tensor with distinct dimensions for clarity

L = torch.randn(2, 4)

ARGS = {
    "L": L
}
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, 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
p_norm Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/any.py
code served (permissive licence) · get_code("7ea1ef685fd613d3")
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, 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)

# Analyze the function:
# - e: needs __abs__() method and support for ** operator, .mean(axis=a), .sum(axis=a) - torch.Tensor works
# - a: axis parameter for reduction - should be an int or tuple of ints
# - p: exponent parameter - should be a numeric value
# - mean: boolean flag (default True)

# Create a small tensor with distinct dimensions for later probing
# Shape: (2, 3, 4) - batch=2, feature_dim=3, another_dim=4
e = torch.randn(2, 3, 4)

# Axis to reduce over - use a single axis
a = 1

# Exponent for the norm
p = 2.0

ARGS = {
    "e": e,
    "a": a,
    "p": p,
    "mean": True
}
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 Tensor, 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
rk4 Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/dynamical_systems.py
code served (permissive licence) · get_code("f6b71302a6d554f3")
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, 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)

# Define a simple callable that represents a differential equation
# The function f should take a tensor and return a tensor of the same shape
def f(x):
    # Simple ODE: dx/dt = -x (exponential decay)
    return -x

# Initial condition: small tensor (batch=2, features=4)
x0 = torch.randn(2, 4)

# Time step
dt = 0.01

ARGS = {
    "f": f,
    "x0": x0,
    "dt": dt
}
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 Tensor, 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
rmse Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/any.py
code served (permissive licence) · get_code("f6d85b06a431d110")
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 ArrayImpl, ndim 0, dtype family float, 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 jax.numpy as jnp

# Construct small tensors for testing
X = jnp.array([[1.0, 2.0, 3.0, 4.0],
               [5.0, 6.0, 7.0, 8.0]])  # shape (2, 4)

Y = jnp.array([[1.5, 2.5, 3.5, 4.5],
               [5.5, 6.5, 7.5, 8.5]])  # shape (2, 4)

mean_axis = [0]
sum_axis = None

ARGS = {
    "X": X,
    "Y": Y,
    "mean_axis": mean_axis,
    "sum_axis": sum_axis
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, 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
sample_grid Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/sample.py
code served (permissive licence) · get_code("0062f2e557c26150")
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 jax.numpy as jnp

ARGS = {
    "N1": 3,
    "d": 2,
    "_range": (-1.0, 1.0),
    "dtype": jnp.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, jaxtyping — 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
surrogate_posterior Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/contrib/vi_elbo_intuition_visual_torch.py
code served (permissive licence) · get_code("c558f30361054045")
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 Normal. 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.distributions as dist

torch.manual_seed(0)

# The function expects two parameters: loc_approx and scale_approx
# These are used to construct a Normal distribution, so they should be tensors
# that are broadcastable to valid distribution parameters

# loc_approx: mean parameter of the normal distribution
loc_approx = torch.randn(2, 4)

# scale_approx: standard deviation parameter of the normal distribution
# Must be positive, so we use exp or abs to ensure positivity
scale_approx = torch.nn.functional.softplus(torch.randn(2, 4))

ARGS = {
    "loc_approx": loc_approx,
    "scale_approx": scale_approx,
}
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 Normal — a Normal output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Normal 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
surrogate_posterior_parameter Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/univariate_normal_posterior_vi.py
code served (permissive licence) · get_code("cb95017ad0122041")
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

# Create a small dataset for the surrogate_posterior_parameter function
np.random.seed(0)
dataset = np.random.randn(10) + 2.0  # 10 samples with mean around 2.0

# Define hyperparameters for the Bayesian model
alpha_0 = 2.0
beta_0 = 1.0
mu_0 = 0.0
tau_0 = 1.0
max_iter = 100

ARGS = {
    "dataset": dataset,
    "alpha_0": alpha_0,
    "beta_0": beta_0,
    "mu_0": mu_0,
    "tau_0": tau_0,
    "max_iter": max_iter,
}
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
tmap Ran
ran on a synthesized input
TUM-ITR/koopcore/koopcore/auxilliary/multithreading.py
code served (permissive licence) · get_code("07e2e4902a0f5796")
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
from queue import Queue
from threading import Thread
import traceback

torch.manual_seed(0)

# Define a simple function that will be called by tmap
def sample_function(*args, device=None, result=None, run=None, **kwargs):
    """Sample function that takes args and stores results"""
    if result is not None:
        result[run] = sum(args) if args else 0

# Define devices - using CPU only
devices = ['cpu', 'cpu']

# Define log function - a simple callable
def log_func(val):
    pass

# Define the function parameter
function = sample_function

ARGS = {
    'function': function,
    'devices': devices,
    'log': log_func
}
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
true_posterior Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/contrib/vi_elbo_intuition_visual_torch.py
code served (permissive licence) · get_code("97e20fc4e726685e")
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 MixtureSameFamily. 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.distributions as dist

torch.manual_seed(0)

# For a mixture distribution with 3 components:
# - mixture_probs: probabilities for the 3 mixture components
# - mus: means for each of the 3 components
# - sigmas: standard deviations for each of the 3 components

mixture_probs = torch.tensor([0.2, 0.3, 0.5])
mus = torch.tensor([0.0, 2.0, -1.0])
sigmas = torch.tensor([0.5, 1.0, 0.8])

ARGS = {
    'mixture_probs': mixture_probs,
    'mus': mus,
    'sigmas': sigmas
}
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 MixtureSameFamily — a MixtureSameFamily output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MixtureSameFamily 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
true_posterior_parameter Ran
ran on a synthesized input
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/univariate_normal_posterior_vi.py
code served (permissive licence) · get_code("9330ce580a5a376c")
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

# Create a small dataset with known properties
np.random.seed(42)
dataset = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Prior hyperparameters for Normal-Gamma conjugate prior
alpha_0 = 2.0  # shape parameter for Gamma prior on precision
beta_0 = 1.0   # rate parameter for Gamma prior on precision
mu_0 = 0.0     # mean of Normal prior on mu
tau_0 = 1.0    # precision of Normal prior on mu

ARGS = {
    "dataset": dataset,
    "alpha_0": alpha_0,
    "beta_0": beta_0,
    "mu_0": mu_0,
    "tau_0": tau_0
}
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
em Not yet run
unverified (harvested, no recorded run)
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/em_gmm.py
code served (permissive licence) · get_code("362705c2ca3ed543")
How it ran

no invocation recorded.

em Not yet run
unverified (harvested, no recorded run)
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/em_multivariate_gmm.py
code served (permissive licence) · get_code("ca84bfff521d9b46")
How it ran

no invocation recorded.

em Not yet run
unverified (harvested, no recorded run)
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/contrib/em_gmm_multivariate.py
code served (permissive licence) · get_code("057f69e5229c5333")
How it ran

no invocation recorded.

em_sieved Not yet run
unverified (harvested, no recorded run)
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/em_gmm_with_sieving.py
code served (permissive licence) · get_code("0e91c42fab93bb7c")
How it ran

no invocation recorded.

em_with_guesses Not yet run
unverified (harvested, no recorded run)
Ceyron/machine-learning-and-simulation/english/probabilistic_machine_learning/em_gmm_with_sieving.py
code served (permissive licence) · get_code("a60c74d010e4b551")
How it ran

no invocation recorded.

get_equilibrium_evals Not yet run
unverified (harvested, no recorded run)
TUM-ITR/koopcore/koopcore/auxilliary/dynamical_systems.py
code served (permissive licence) · get_code("e76ca414c11ec7ed")
How it ran

no invocation recorded.

load_trajectory_data_train_test Not yet run
unverified (harvested, no recorded run)
TUM-ITR/koopcore/koopcore/auxilliary/data_classes.py
code served (permissive licence) · get_code("55fab559ff449555")
How it ran

no invocation recorded.

plot_data Not yet run
unverified (harvested, no recorded run)
TUM-ITR/koopcore/koopcore/auxilliary/plot.py
code served (permissive licence) · get_code("9d2bdad369559772")
How it ran

no invocation recorded.

plot_eigevalues Not yet run
unverified (harvested, no recorded run)
TUM-ITR/koopcore/koopcore/auxilliary/plot.py
code served (permissive licence) · get_code("bb5e6fdfb9fa307c")
How it ran

no invocation recorded.

Also present in other papers' code

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

Many machine learning approaches for decision making, such as reinforcement learning, rely on simulators or predictive models to forecast the time-evolution of quantities of interest, e.g., the state of an agent or the reward of a policy. Forecasts of such complex phenomena are commonly described by highly nonlinear dynamical systems, making their use in optimization-based decision-making challenging. Koopman operator theory offers a beneficial paradigm for addressing this problem by characterizing forecasts via linear time-invariant (LTI) ODEs, turning multistep forecasts into sparse matrix multiplication. Though there exists a variety of learning approaches, they usually lack crucial learning-theoretic guarantees, making the behavior of the obtained models with increasing data and dimensionality unclear. We address the aforementioned by deriving a universal Koopman-invariant reproducing kernel Hilbert space (RKHS) that solely spans transformations into LTI dynamical systems. The resulting Koopman Kernel Regression (KKR) framework enables the use of statistical learning tools from function approximation for novel convergence results and generalization error bounds under weaker assumptions than existing work. Our experiments demonstrate superior forecasting performance compared to Koopman operator and sequential data predictors in RKHS.

For agents

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

get_harvested_code_for_paper("2305.16215")
get_code_for_paper("2305.16215")
have("2305.16215")

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

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

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

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

Connect an agent — have() is free.