SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.21222 · 2024

Reconstructing dynamics from sparse observations with no training on target system

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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, 4 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 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/2410.21222.json · badge: /api/ran/2410.21222.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
Zheng-Meng/Dynamics-Reconstruction-ML canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_success_rate Ran
ran, violated the contract we drafted
Zheng-Meng/Dynamics-Reconstruction-ML/response/chaos_transformer_read_and_test_data_revision.py
code served (permissive licence) · get_code("7d0306a3f2eab718")
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

# Construct arguments for calculate_success_rate
# The function expects:
# 1. loss_ml_in: array-like of loss values
# 2. loss_threshold: float threshold for success (default 0.01)

# Create a small array of loss values
# Some values below threshold (success), some above (failure)
loss_ml_in = np.array([0.005, 0.008, 0.015, 0.002, 0.020, 0.009])

loss_threshold = 0.01

ARGS = {
    "loss_ml_in": loss_ml_in,
    "loss_threshold": loss_threshold,
}
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
combined_loss_function Ran
ran; our contract draft was wrong, not the code
Zheng-Meng/Dynamics-Reconstruction-ML/transformer_encoder.py
code served (permissive licence) · get_code("3bbac76d75336a41")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Create tiny tensors for outputs and targets
batch_size = 2
output_dim = 4
outputs = torch.randn(batch_size, output_dim)
targets = torch.randn(batch_size, output_dim)

# Define a smoothness loss function that takes outputs and returns a scalar loss
class SmoothnesslossFunction(nn.Module):
    def forward(self, outputs):
        # Simple smoothness loss: penalize differences between consecutive elements
        # This is a stand-in that computes some smoothness metric
        diff = torch.diff(outputs, dim=1)
        return torch.mean(diff ** 2)

smoothness_loss_fn = SmoothnesslossFunction()

# Define ARGS dict with all parameters
ARGS = {
    "outputs": outputs,
    "targets": targets,
    "smoothness_loss_fn": smoothness_loss_fn,
    "mse_weight": 1.0,
    "smoothness_weight": 0.1,
}
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 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
func_foodchain Ran
ran, violated the contract we drafted
Zheng-Meng/Dynamics-Reconstruction-ML/chaotic_systems.py
code served (permissive licence) · get_code("9c704e9f2ce5900e")
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

# func_foodchain takes three parameters: x, t, and params
# x: appears to be array-like with at least 3 elements (x[0], x[1], x[2])
# t: time variable (not used in function body, but required parameter)
# params: numpy array that can be empty or have at least 3 elements

# Create state vector x with 3 components (prey, herbivore, predator)
x = np.array([1.0, 0.5, 0.2])

# Create time variable
t = 0.0

# Create params array with three parameters: k, yc, yp
params = np.array([0.94, 1.7, 5.0])

ARGS = {
    "x": x,
    "t": t,
    "params": params
}
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
func_lorenz Ran
ran, violated the contract we drafted
Zheng-Meng/Dynamics-Reconstruction-ML/chaotic_systems.py
code served (permissive licence) · get_code("2e0f972dd943252d")
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

# Construct arguments for func_lorenz
x = np.array([1.0, 2.0, 3.0])  # Initial state vector with 3 components
t = 0.0  # Time parameter
params = np.array([10.0, 28.0, 8/3])  # Lorenz parameters: sigma, rho, beta

ARGS = {
    'x': x,
    't': t,
    'params': params
}
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
func_rossler Ran
ran, violated the contract we drafted
Zheng-Meng/Dynamics-Reconstruction-ML/chaotic_systems.py
code served (permissive licence) · get_code("3a38282f95f88c56")
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

# Construct arguments for func_rossler
# The function takes x (state vector), t (time), and params (parameter array)

# x should be a 1D numpy array with 3 elements (based on indexing x[0], x[1], x[2])
x = np.array([1.0, 2.0, 3.0])

# t is time - can be a scalar
t = 0.0

# params should be a numpy array with 3 elements (a, b, c) or empty
# Test with non-empty params
params = np.array([0.2, 0.2, 5.7])

ARGS = {
    "x": x,
    "t": t,
    "params": params
}
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
interpolate_sequence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zheng-Meng/Dynamics-Reconstruction-ML/response/chaos_transformer_read_and_test_interpolation.py
code served (permissive licence) · get_code("6a3610447f84830c")
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 (6, 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
import scipy.interpolate

# Create a masked sequence with shape (T, dim)
# T=6 timesteps, dim=4 dimensions
# Use mostly zeros with some non-zero values to test interpolation
masked_seq = np.array([
    [1.0, 2.0, 0.0, 4.0],
    [0.0, 0.0, 3.0, 0.0],
    [2.0, 0.0, 6.0, 8.0],
    [0.0, 1.0, 0.0, 0.0],
    [3.0, 0.0, 9.0, 5.0],
    [0.0, 4.0, 0.0, 0.0]
], dtype=np.float32)

# Add batch dimension to match function's squeeze(0) call
masked_seq_with_batch = masked_seq[np.newaxis, :, :]

ARGS = {
    'masked_seq': masked_seq_with_batch,
    'method': 'linear'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (6, 4) — shape (6, 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
mask_data_transformer Ran
ran; our contract draft was wrong, not the code
Zheng-Meng/Dynamics-Reconstruction-ML/utils.py
code served (permissive licence) · get_code("43bab82dae4edf53")
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 numpy as np

np.random.seed(0)

# Create a small numpy array with distinct dimensions (sequence_length=5, features=3)
x = np.random.randn(5, 3).astype(np.float32)

# mask_ratio: float between 0 and 1, representing fraction of elements to mask
mask_ratio = 0.4

# mask_as: value to replace masked elements with
mask_as = 0

ARGS = {
    "x": x,
    "mask_ratio": mask_ratio,
    "mask_as": mask_as,
}
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 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
read_and_normalize_chaos Ran
ran; our contract draft was wrong, not the code
Zheng-Meng/Dynamics-Reconstruction-ML/utils.py
code served (permissive licence) · get_code("4b65c1e65e800d4c")
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 os
import pickle
import random
import tempfile
import numpy as np
from sklearn.preprocessing import MinMaxScaler

# Create a temporary pickle file with dummy data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "chaos_data.pkl")

# Generate synthetic data: 50000 rows x 5 columns
synthetic_data = np.random.randn(50000, 5).astype(np.float32)
with open(temp_file, 'wb') as f:
    pickle.dump(synthetic_data, f)

ARGS = {
    "file_path": temp_file,
    "data_read_length": 20000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
read_and_preprocess_directory_chaos Ran
ran; our contract draft was wrong, not the code
Zheng-Meng/Dynamics-Reconstruction-ML/utils.py
code served (permissive licence) · get_code("53469f74ef05781e")
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 os
import pickle
import random
import tempfile
import numpy as np
from sklearn.preprocessing import MinMaxScaler

def read_and_normalize_chaos(file_path, data_read_length):
    with open(file_path, 'rb') as pkl_file:
        data = pickle.load(pkl_file)
    random_start = random.randint(10000, len(data) - data_read_length - 10000)
    data = data[random_start:random_start + data_read_length, :]
    scaler = MinMaxScaler()
    normalized_data = scaler.fit_transform(data)
    filename = os.path.basename(file_path)
    return (normalized_data, filename)

def read_and_preprocess_directory_chaos(directory_path, data_read_length):
    all_data = []
    filenames = []
    file_names = sorted(os.listdir(directory_path))
    for filename in file_names:
        if filename.endswith('.pkl'):
            file_path = os.path.join(directory_path, filename)
            normalized_data, file_name = read_and_normalize_chaos(file_path, data_read_length)
            all_data.append(normalized_data)
            filenames.append(file_name)
    return (all_data, filenames)

# Create a temporary directory with pickle files for testing
temp_dir = tempfile.mkdtemp()

# Create sample pickle files with numpy arrays
# Each file has 30000 rows and 5 columns
sample_data_1 = np.random.randn(30000, 5)
sample_data_2 = np.random.randn(30000, 5)

with open(os.path.join(temp_dir, 'data_1.pkl'), 'wb') as f:
    pickle.dump(sample_data_1, f)

with open(os.path.join(temp_dir, 'data_2.pkl'), 'wb') as f:
    pickle.dump(sample_data_2, f)

# Set random seed for reproducibility
random.seed(42)

ARGS = {
    'directory_path': temp_dir,
    'data_read_length': 5000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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

Also present in other papers' code

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

In applications, an anticipated situation is where the system of interest has never been encountered before and sparse observations can be made only once. Can the dynamics be faithfully reconstructed from the limited observations without any training data? This problem defies any known traditional methods of nonlinear time-series analysis as well as existing machine-learning methods that typically require extensive data from the target system for training. We address this challenge by developing a hybrid transformer and reservoir-computing machine-learning scheme. The key idea is that, for a complex and nonlinear target system, the training of the transformer can be conducted not using any data from the target system, but with essentially unlimited synthetic data from known chaotic systems. The trained transformer is then tested with the sparse data from the target system. The output of the transformer is further fed into a reservoir computer for predicting the long-term dynamics or the attractor of the target system. The power of the proposed hybrid machine-learning framework is demonstrated using a large number of prototypical nonlinear dynamical systems, with high reconstruction accuracy even when the available data is only 20% of that required to faithfully represent the dynamical behavior of the underlying system. The framework provides a paradigm of reconstructing complex and nonlinear dynamics in the extreme situation where training data does not exist and the observations are random and sparse.

For agents

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

get_harvested_code_for_paper("2410.21222")
get_code_for_paper("2410.21222")
have("2410.21222")

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

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

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

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

Connect an agent — have() is free.