SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.11214 · 2018

Kymatio: Scattering Transforms in Python

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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 10 have no contract verdict; 0 failures of our instrument; 2 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/1812.11214.json · badge: /api/ran/1812.11214.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
kymatio/kymatio canonical (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
bkrajina/dlsmicro community (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
FunctionStatusWhere it lives
bootstrap_freq_sweep Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/plot_tools.py
code served (permissive licence) · get_code("477fbe93e4b61e2d")
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 (4, 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
import pandas as pd

np.random.seed(0)

# Create a small DataFrame with synthetic data
# The function expects:
# - df: DataFrame with columns for quantity, replicate_identifier
# - quantity: str, name of column with values
# - replicate_identifier: str, name of column identifying replicates

# Create synthetic data: multiple replicates, each with frequency sweep values
data = []
for replicate_id in range(3):  # 3 replicates
    for freq_idx in range(5):  # 5 frequency points per replicate
        data.append({
            'replicate': replicate_id,
            'viscosity': np.random.rand() * 10 + replicate_id
        })

df = pd.DataFrame(data)

# Parameters for bootstrap_freq_sweep
quantity = 'viscosity'
replicate_identifier = 'replicate'
n_bootstrap = 4
estimator = np.mean

ARGS = {
    'df': df,
    'quantity': quantity,
    'replicate_identifier': replicate_identifier,
    'n_bootstrap': n_bootstrap,
    'estimator': estimator
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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 (4, 5) — shape (4, 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
bootstrap_matrix_byrows Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/plot_tools.py
code served (permissive licence) · get_code("dd2e0cc8c756ccc1")
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 (3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

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

# Create a small 2D matrix with distinct dimensions
# Shape: (n_replicates=5, n_frequencies=4)
M = np.random.randn(5, 4)

# Number of bootstrap samples
n_bootstrap = 3

# Estimator function that computes mean along specified axis
def estimator(M_sample, axis=0):
    return np.mean(M_sample, axis=axis)

ARGS = {
    "M": M,
    "n_bootstrap": n_bootstrap,
    "estimator": estimator
}
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 (3, 4) — shape (3, 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
calc_q Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/analysis_tools.py
code served (permissive licence) · get_code("8109e14fcabf33c8")
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

# Define ARGS dict with valid arguments for calc_q function
ARGS = {
    'n': 1.333,           # Index of refraction of water
    'theta': 0.785398,    # Scattering angle in radians (approximately π/4)
    'lam': 633e-9         # Wavelength of laser in meters (633 nm, typical for DLS)
}
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
df_to_matrix Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/plot_tools.py
code served (permissive licence) · get_code("f63bc40a5e8204dd")
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 (3, 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 pandas as pd

# Create a small sample DataFrame with DLS microrheology-like data
df = pd.DataFrame({
    'replicate_id': ['rep_1', 'rep_1', 'rep_1', 'rep_1', 
                     'rep_2', 'rep_2', 'rep_2', 'rep_2',
                     'rep_3', 'rep_3', 'rep_3'],
    'measurement': [1.5, 2.3, 3.1, 4.2,
                    1.8, 2.5, 3.3, 4.0,
                    1.6, 2.4, 3.2]
})

ARGS = {
    'df': df,
    'quantity': 'measurement',
    'replicate_identifier': 'replicate_id'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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 (3, 3) — shape (3, 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
expexp Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/fit_funcs.py
code served (permissive licence) · get_code("18023ba9963c4172")
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

torch_available = False
try:
    import torch
    torch_available = True
    torch.manual_seed(0)
except ImportError:
    pass

# The function expexp(x, a0, a1, lam, beta) takes numerical parameters
# x: input array/value
# a0: scalar coefficient
# a1: scalar coefficient
# lam: scalar parameter (lambda)
# beta: scalar exponent

x = np.array([0.5, 1.5, 2.5, 3.5])
a0 = 2.0
a1 = 0.5
lam = 1.2
beta = 0.8

ARGS = {
    'x': x,
    'a0': a0,
    'a1': a1,
    'lam': lam,
    'beta': beta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 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
gaussian_weight Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/utils.py
code served (permissive licence) · get_code("9e80d99634a83ccb")
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 (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 numpy as np

# Construct arguments for gaussian_weight function
# The function takes:
# - x: array-like, used in indexing x[i] and broadcasting (x - x[i])
# - i: integer index
# - tau: scalar, used as denominator in gaussian formula

x = np.array([1.0, 2.5, 3.7, 4.2])
i = 1
tau = 0.5

ARGS = {
    "x": x,
    "i": i,
    "tau": tau
}
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 (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
get_cache_dir Ran
ran on a synthesized input
kymatio/kymatio/kymatio/caching.py
code served (permissive licence) · get_code("a54d87d5ca6ee1ed")
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 os
import tempfile

# For get_cache_dir, we need to provide:
# - name: string (optional, defaults to '')
# - cache_base_dir: string (optional, defaults to None)
# - create: boolean (optional, defaults to True)

# Create a temporary directory to use as cache_base_dir
temp_cache_dir = tempfile.mkdtemp()

ARGS = {
    'name': 'test_cache',
    'cache_base_dir': temp_cache_dir,
    'create': True
}
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
loess Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/utils.py
code served (permissive licence) · get_code("1121f8671c6bf8f5")
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. 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

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

# Create small synthetic data for LOESS regression
# x should be sorted for proper LOESS behavior
x = np.array([0.0, 1.0, 2.0, 3.0, 4.0])
# y should correspond to x with some relationship
y = np.array([1.0, 2.5, 3.2, 4.8, 6.1])

# degree: polynomial degree (1 or 2)
degree = 1

# alpha: bandwidth parameter (controls width of local neighborhoods)
alpha = 0.5

ARGS = {
    "x": x,
    "y": y,
    "degree": degree,
    "alpha": alpha
}
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 list — a list 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
stretched_exp Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/fit_funcs.py
code served (permissive licence) · get_code("120d95ac672fa4be")
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 (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

# stretched_exp takes 4 scalar parameters: x, x0, a, beta
# The function computes: x0 * np.exp(-a * x ** beta)
# All parameters are used in arithmetic operations with numpy arrays/scalars

x = np.array([1.0, 2.0, 3.0])
x0 = 5.0
a = 0.5
beta = 2.0

ARGS = {
    "x": x,
    "x0": x0,
    "a": a,
    "beta": beta
}
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 (3,) — shape (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
weighted_linear_reg Ran
ran on a synthesized input
bkrajina/dlsmicro/dlsmicro/backend/utils.py
code served (permissive licence) · get_code("01d04261283b9945")
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 (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

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

# Create small test data for weighted linear regression
# X: feature matrix (n_samples x n_features)
n_samples = 5
n_features = 3
X = np.random.randn(n_samples, n_features)

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

# W: weight matrix (n_samples x n_samples), typically diagonal
# For weighted least squares, W is often a diagonal matrix of weights
W = np.diag(np.random.rand(n_samples) + 0.1)  # Ensure positive weights

ARGS = {
    "X": X,
    "y": y,
    "W": W
}
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 (3,) — shape (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
find_cache_base_dir Not yet run
unverified (harvested, no recorded run)
kymatio/kymatio/kymatio/caching.py
code served (permissive licence) · get_code("904ba0b715bd6109")
How it ran

no invocation recorded.

read_zetasizer_csv_to_dict Not yet run
unverified (harvested, no recorded run)
bkrajina/dlsmicro/dlsmicro/backend/io.py
code served (permissive licence) · get_code("ae295debd766e31c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 10 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
find_cache_base_dir 1 other paper
1 later
2107.09539 (2021-07)
Parametric Scattering Networks
get_cache_dir 1 other paper
1 later
2107.09539 (2021-07)
Parametric Scattering Networks

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 wavelet scattering transform is an invariant signal representation suitable for many signal processing and machine learning applications. We present the Kymatio software package, an easy-to-use, high-performance Python implementation of the scattering transform in 1D, 2D, and 3D that is compatible with modern deep learning frameworks. All transforms may be executed on a GPU (in addition to CPU), offering a considerable speed up over CPU implementations. The package also has a small memory footprint, resulting inefficient memory usage. The source code, documentation, and examples are available undera BSD license at https://www.kymat.io/

For agents

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

get_harvested_code_for_paper("1812.11214")
get_code_for_paper("1812.11214")
have("1812.11214")

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

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

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

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

Connect an agent — have() is free.