SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.06781 · 2026

xaitimesynth: Evaluating Attribution Methods with Synthetic Ground Truth xaitimesynth: A Python Package for Evaluating Attribution Methods for Time Series with Synthetic Ground Truth

Gregor Baer

arXiv · PDF · Open in the Atlas

Code that ran

14 of 18 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 failures of our instrument; 4 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/2603.06781.json · badge: /api/ran/2603.06781.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
gregorbaer/xaitimesynth canonical (classifier label)
classifier basis: census
14 ran · 4 no recorded run
FunctionStatusWhere it lives
add_feature Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/functions.py
code served (permissive licence) · get_code("3aea1dd3315b504d")
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 FeatureAdder. 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 numpy as np
from typing import Any, Dict, Optional

torch.manual_seed(0)

# Create a minimal component dictionary
component = {
    "name": "seasonal_pattern",
    "type": "sine_wave",
    "amplitude": 1.5,
    "frequency": 0.1,
    "phase": 0.0
}

# Define ARGS mapping all parameters of add_feature
ARGS = {
    "component": component,
    "start_pct": 0.1,
    "end_pct": 0.9,
    "length_pct": None,
    "random_location": False
}
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 FeatureAdder — a FeatureAdder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FeatureAdder 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_signal Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/functions.py
code served (permissive licence) · get_code("841ee1be85a20356")
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 SignalAdder. 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 numpy as np
from typing import Dict, Any, Optional

torch.manual_seed(0)

# Create a minimal component dictionary
# The component should define signal characteristics
component = {
    "type": "noise",
    "amplitude": 0.5,
    "frequency": 1.0,
    "phase": 0.0,
    "config": {
        "seed": 42,
        "distribution": "gaussian"
    }
}

# Define all arguments for add_signal function
ARGS = {
    "component": component,
    "start_pct": 0.1,
    "end_pct": 0.9,
    "length_pct": 0.8,
    "random_location": False,
    "shared_location": 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 SignalAdder — a SignalAdder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SignalAdder 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
constant Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/components.py
code served (permissive licence) · get_code("132de940c6367e8c")
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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'value': 0.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
gaussian_noise Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/components.py
code served (permissive licence) · get_code("da7dcee3e68705cc")
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 torch
import numpy as np

torch.manual_seed(0)

# This function takes optional parameters and returns a dictionary
# The parameters are:
# - mu: float (mean of Gaussian distribution)
# - sigma: float (standard deviation of Gaussian distribution)
# - **kwargs: additional parameters

ARGS = {
    'mu': 0.5,
    'sigma': 2.0,
}
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 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
generate_constant Ran
ran, honoured the contract we drafted
gregorbaer/xaitimesynth/xaitimesynth/generators.py
code served (permissive licence) · get_code("8a3520b84961c428")
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 = {
    "n_timesteps": 10,
    "value": 5.0,
    "rng": np.random.RandomState(42),
    "length": 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 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
generate_gaussian_noise Ran
ran, honoured the contract we drafted
gregorbaer/xaitimesynth/xaitimesynth/generators.py
code served (permissive licence) · get_code("b55175e52746ea3a")
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 (50,) 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(42)

# Create a random number generator instance
rng = np.random.RandomState(42)

# Define ARGS dictionary with all parameters
ARGS = {
    "n_timesteps": 100,
    "mu": 0.0,
    "sigma": 0.1,
    "rng": rng,
    "length": 50,
}
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 (50,) — shape (50,) 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
generate_random_walk Ran
ran, honoured the contract we drafted
gregorbaer/xaitimesynth/xaitimesynth/generators.py
code served (permissive licence) · get_code("b6d67dfcf7bb3c02")
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

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

# Create a RandomState instance for the rng parameter
rng = np.random.RandomState(42)

# Define all arguments for generate_random_walk
ARGS = {
    "n_timesteps": 10,
    "step_size": 0.1,
    "rng": rng,
    "length": 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 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
minmax_normalize Ran
ran, violated the contract we drafted
gregorbaer/xaitimesynth/xaitimesynth/functions.py
code served (permissive licence) · get_code("ffe63eebb6da8988")
How it ran

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

import numpy as np

# Create a simple test array with distinct min and max values
data = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Define feature_range as a tuple with default values
feature_range = (0, 1)

ARGS = {
    "data": data,
    "feature_range": feature_range,
}
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 (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
pointing_game Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gregorbaer/xaitimesynth/xaitimesynth/metrics.py
code served (permissive licence) · get_code("d188756da7d2905e")
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 float, 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 numpy as np

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

# Create a minimal dataset dictionary matching TimeSeriesBuilder.build() output
dataset = {
    'metadata': {
        'n_samples': 3,
        'n_timesteps': 5,
        'n_dimensions': 4
    },
    'feature_masks': {
        'mask_dim0': np.array([
            np.array([True, False, True, False, True]),
            np.array([False, True, False, True, False]),
            np.array([True, True, False, False, True])
        ]),
        'mask_dim1': np.array([
            np.array([False, True, False, True, False]),
            np.array([True, False, True, False, True]),
            np.array([False, False, True, True, False])
        ]),
        'mask_dim2': np.array([
            np.array([True, True, False, False, False]),
            np.array([False, False, True, True, True]),
            np.array([True, False, False, True, False])
        ]),
        'mask_dim3': np.array([
            np.array([False, False, True, True, True]),
            np.array([True, True, False, False, False]),
            np.array([False, True, True, False, True])
        ])
    }
}

# Create valid attributions with shape (n_samples, n_timesteps, n_dims)
attributions = np.random.randn(3, 5, 4)

# Valid sample indices (subset of available samples)
sample_indices = [0, 1]

# Valid dimension indices (subset of available dimensions)
dim_indices = [0, 2, 3]

ARGS = {
    'attributions': attributions,
    'dataset': dataset,
    'sample_indices': sample_indices,
    'dim_indices': dim_indices
}
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 float, 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
random_walk Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/components.py
code served (permissive licence) · get_code("b4098243f5038a68")
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 torch
import numpy as np

torch.manual_seed(0)

# The function random_walk takes step_size as a float parameter
# and **kwargs for additional parameters
# It returns a dictionary with the component definition

# Construct ARGS dict with all parameters
ARGS = {
    'step_size': 0.1,
}
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 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
register_component Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/registry.py
code served (permissive licence) · get_code("56d2af0eee141c55")
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
from typing import Any, Callable, Dict, Optional

torch.manual_seed(0)

# Define a simple component function for testing
def sample_component_func():
    """A sample component function."""
    return "sample_output"

# Define another component function with a different name
def another_component():
    """Another sample component function."""
    return "another_output"

# Clear any existing registry state for this test
_COMPONENT_REGISTRY = {}
_SIGNAL_COMPONENTS = set()
_FEATURE_COMPONENTS = set()

# Test case 1: decorator with no arguments (uses component_func directly)
ARGS = {
    "component_func": sample_component_func,
    "component_type": "signal"
}
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
register_component_generator Ran
ran; our contract draft was wrong, not the code
gregorbaer/xaitimesynth/xaitimesynth/registry.py
code served (permissive licence) · get_code("aed7b553bae4e790")
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 inspect
from functools import wraps
from typing import Any, Callable, Dict, Optional

# Mock the GENERATOR_FUNCS that the function imports
class MockGenerators:
    GENERATOR_FUNCS = {}

import sys
mock_generators = MockGenerators()
sys.modules['generators'] = type(sys)('generators')
sys.modules['generators'].GENERATOR_FUNCS = mock_generators.GENERATOR_FUNCS

# Create a minimal generator function to pass to the decorator
def generate_sine_wave(n_timesteps, rng, length=None, frequency=0.1):
    """A sample generator function."""
    return {"data": "sine_wave"}

# Set up the module for the generator function
class MockModule:
    pass

mock_module = MockModule()
mock_module.__name__ = 'test_module'
sys.modules['test_module'] = mock_module
generate_sine_wave.__module__ = 'test_module'

# Construct arguments for register_component_generator
ARGS = {
    'name': 'my_sine_component',
    'component_type': 'both',
    'default_overrides': {
        'frequency': 0.2,
        'amplitude': 1.5
    }
}
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 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
relevance_mass_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gregorbaer/xaitimesynth/xaitimesynth/metrics.py
code served (permissive licence) · get_code("fd4d5be440eee2bb")
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 float, 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 numpy as np

# Construct a minimal valid dataset
n_samples = 3
n_timesteps = 5
n_dims = 4

# Create sample data
data = np.random.randn(n_samples, n_timesteps, n_dims).astype(np.float32)

# Create feature masks - one per dimension
feature_masks = {
    f'feature_dim{i}': np.random.rand(n_samples, n_timesteps) > 0.5
    for i in range(n_dims)
}

# Build the dataset dict matching TimeSeriesBuilder.build() format
dataset = {
    'metadata': {
        'n_samples': n_samples,
        'n_timesteps': n_timesteps,
        'n_dimensions': n_dims,
    },
    'feature_masks': feature_masks,
}

# Create attributions with matching shape
attributions = np.random.randn(n_samples, n_timesteps, n_dims).astype(np.float32)

# Define optional parameters
sample_indices = [0, 1]
dim_indices = [0, 1, 2]

ARGS = {
    'attributions': attributions,
    'dataset': dataset,
    'sample_indices': sample_indices,
    'dim_indices': dim_indices,
}
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 float, 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
relevance_rank_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gregorbaer/xaitimesynth/xaitimesynth/metrics.py
code served (permissive licence) · get_code("387b61de15eeb6c3")
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 float, 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 numpy as np
from typing import Dict, List, Optional, Tuple, Union

# Create a minimal dataset dictionary matching TimeSeriesBuilder.build() format
def create_minimal_dataset():
    n_samples = 5
    n_timesteps = 10
    n_dims = 3
    
    dataset = {
        'metadata': {
            'n_samples': n_samples,
            'n_timesteps': n_timesteps,
            'n_dimensions': n_dims,
        },
        'feature_masks': {
            'feature_0_dim0': np.random.rand(n_samples, n_timesteps) > 0.5,
            'feature_1_dim1': np.random.rand(n_samples, n_timesteps) > 0.5,
            'feature_2_dim2': np.random.rand(n_samples, n_timesteps) > 0.5,
        }
    }
    return dataset

# Create valid attributions matching the dataset
def create_attributions():
    n_samples = 5
    n_timesteps = 10
    n_dims = 3
    return np.random.randn(n_samples, n_timesteps, n_dims)

ARGS = {
    'attributions': create_attributions(),
    'dataset': create_minimal_dataset(),
    'sample_indices': [0, 1, 2],
    'dim_indices': [0, 1],
}
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 float, 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
generate_cylinder_bell_funnel Not yet run
unverified (harvested, no recorded run)
gregorbaer/xaitimesynth/xaitimesynth/datasets.py
code served (permissive licence) · get_code("e51aaafbdfcd06d8")
How it ran

no invocation recorded.

get_component_parameters Not yet run
unverified (harvested, no recorded run)
gregorbaer/xaitimesynth/xaitimesynth/registry.py
code served (permissive licence) · get_code("e627b8455bd3af91")
How it ran

no invocation recorded.

prepare_feature_highlights Not yet run
unverified (harvested, no recorded run)
gregorbaer/xaitimesynth/xaitimesynth/visualization.py
code served (permissive licence) · get_code("e200ef7c51cd6f83")
How it ran

no invocation recorded.

prepare_plot_data Not yet run
unverified (harvested, no recorded run)
gregorbaer/xaitimesynth/xaitimesynth/visualization.py
code served (permissive licence) · get_code("66df16025739e7ab")
How it ran

no invocation recorded.

Also present in other papers' code

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

Evaluating time series attribution methods is difficult because real-world datasets rarely provide ground truth for which time points drive a prediction. A common workaround is to generate synthetic data where class-discriminating features are placed at known locations, but each study currently reimplements this from scratch. We introduce xaitimesynth, a Python package that provides reusable infrastructure for this evaluation approach. The package generates synthetic time series following an additive model where each sample is a sum of background signal and a localized, class-discriminating feature, with the feature window automatically tracked as a ground truth mask. A fluent data generation API and YAML configuration format allow flexible and reproducible dataset definitions for both univariate and multivariate time series. The package also provides standard localization metrics, including AUC-PR, AUC-ROC, Relevance Mass Accuracy, and Relevance Rank Accuracy. xaitimesynth is open source and available at https://github.com/gregorbaer/xaitimesynth.

For agents

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

get_harvested_code_for_paper("2603.06781")
get_code_for_paper("2603.06781")
have("2603.06781")

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

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

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

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

Connect an agent — have() is free.