| avg_curve |
Ran ran on a synthesized input |
siqil/CPPOD/verify_bounds.py code served (permissive licence) · get_code("fabe73647c99c24e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
from scipy.interpolate import interp1d
# Create sample data for the function
# x should be a list of arrays (one per curve)
# y should be a list of arrays (one per curve)
# Each x[i] and y[i] pair represents a single curve
# Create 3 curves with different x ranges
x1 = np.linspace(0, 10, 15)
y1 = np.sin(x1) + np.random.normal(0, 0.1, 15)
x2 = np.linspace(2, 12, 15)
y2 = np.sin(x2) + np.random.normal(0, 0.1, 15)
x3 = np.linspace(1, 11, 15)
y3 = np.sin(x3) + np.random.normal(0, 0.1, 15)
x = [x1, x2, x3]
y = [y1, y2, y3]
ARGS = {
'x': x,
'y': y,
'n': 100
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| compress |
Ran ran on a synthesized input |
siqil/CPPOD/summarize_results_std.py code served (permissive licence) · get_code("2889e16a4eb04885") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Analyze the function:
# compress(values) iterates over values
# Each element 'index' has 3 items accessed: index[0], index[1], index[2]
# index[0] is a string (has .islower(), .capitalize(), slicing [:3])
# index[1] is a string (has .capitalize(), slicing [0])
# index[2] is used in an f-string directly (likely a number or string)
# Create test data: list of tuples with 3 elements each
values = [
('hello', 'world', 42),
('Python', 'Code', 99),
]
ARGS = {
'values': values
}
- 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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| compute_empirical_rate |
Ran ran on a synthesized input |
siqil/CPPOD/simulation.py code served (permissive licence) · get_code("9c01d03d3d687ec1") How it ranRan 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 torch
torch.manual_seed(0)
# The function expects seqs to be an iterable of dicts
# Each dict needs 'stop', 'start', and 'time_target' keys
# 'stop' and 'start' are used in arithmetic (subtraction)
# 'time_target' needs to support len()
seqs = [
{
'start': 0,
'stop': 5,
'time_target': [1.0, 2.0, 3.0]
},
{
'start': 2,
'stop': 8,
'time_target': [4.0, 5.0]
}
]
ARGS = {
'seqs': seqs
}
- 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 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
|
| detect_with_param |
Ran ran on a synthesized input |
siqil/CPPOD/train_test_baselines.py code served (permissive licence) · get_code("a7e0a5d5c820838a") How it ranRan 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 method that takes x and a param
def simple_method(x, param):
return x * param
# Define a param value
param_value = 2.5
# Construct ARGS dict
ARGS = {
"method": simple_method,
"param": param_value
}
- 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
|
| fdr |
Ran ran on a synthesized input |
siqil/CPPOD/verify_bounds.py code served (permissive licence) · get_code("389b14bf6e39b4f3") How it ranRan 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 sklearn.metrics as metrics
import numpy as np
def fdr(label, score):
p, r, ts = metrics.precision_recall_curve(label, score)
return (ts, 1 - p[:-1])
# Create binary labels and scores for precision-recall curve
label = np.array([0, 1, 1, 0, 1, 0, 1, 1])
score = np.array([0.1, 0.9, 0.8, 0.2, 0.85, 0.3, 0.7, 0.95])
ARGS = {
'label': label,
'score': score
}
- 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, 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
|
| filter |
Ran ran on a synthesized input |
siqil/CPPOD/summarize_results_std.py code served (permissive licence) · get_code("4aa3c5ddeab25e27") How it ranRan 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 Series. 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
import pandas as pd
def filter(row):
rv = row['value']
rs = row['std']
max_val = np.max(rv)
def f(val, s):
if val == max_val:
return f'\\textbf{{{val:.3f}}} ($\\pm$ {s:.3f})'
else:
return f'{val:.3f} ($\\pm$ {s:.3f})'
return rv.combine(rs, f)
# Create a pandas Series with 'value' and 'std' as the indices
# The function expects row to be a dict-like object with 'value' and 'std' keys
# where both values are Series objects that support .combine() method
value_series = pd.Series([0.5, 0.8, 0.6, 0.9], name='value')
std_series = pd.Series([0.1, 0.05, 0.12, 0.03], name='std')
row = {
'value': value_series,
'std': std_series
}
ARGS = {
'row': row
}
- 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 Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series output the recorded ndim 1 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
|
| fit_len |
Ran ran on a synthesized input |
siqil/CPPOD/baselines.py code served (permissive licence) · get_code("181396fe56ef7323") How it ranRan 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 ECDF. 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 statsmodels.distributions.empirical_distribution import ECDF
# Construct a small train_set with the expected structure
# Each element should be a dict with 'time_target' and 'start' keys
train_set = [
{
'time_target': np.array([1.0, 3.0, 5.0]),
'start': 0.5
},
{
'time_target': np.array([2.0, 4.0, 6.0, 8.0]),
'start': 1.5
},
{
'time_target': np.array([0.0, 2.5, 5.5]),
'start': 0.0
}
]
ARGS = {
'train_set': train_set
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, statsmodels — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ECDF — a ECDF output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ECDF 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
|
| fpr |
Ran ran on a synthesized input |
siqil/CPPOD/verify_bounds.py code served (permissive licence) · get_code("840e400cca257fe4") How it ranRan 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 torch
import numpy as np
import sklearn.metrics as metrics
torch.manual_seed(0)
# The function fpr takes two parameters:
# - label: binary labels for ROC curve (passed to metrics.roc_curve)
# - score: prediction scores (passed to metrics.roc_curve)
# Both should be 1D arrays/lists that metrics.roc_curve can process
label = np.array([0, 1, 1, 0, 1, 0])
score = np.array([0.1, 0.8, 0.9, 0.2, 0.7, 0.3])
ARGS = {
"label": label,
"score": score
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, sklearn, torch — 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
|
| is_sorted |
Ran ran on a synthesized input |
siqil/CPPOD/util.py code served (permissive licence) · get_code("c318b216026d6e0d") How it ranRan 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 bool, 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
torch.manual_seed(0)
# The function is_sorted takes a list and checks if it's sorted in non-decreasing order
# It compares consecutive elements using <= operator
# So we need a list of comparable elements (numbers work fine)
ARGS = {
"l": [1, 2, 3, 4, 5]
}
- 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 bool, 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
|
| merge |
Ran ran on a synthesized input |
siqil/CPPOD/simulation.py code served (permissive licence) · get_code("c072cb5d48da4393") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; 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
torch.manual_seed(0)
# Analyze the function:
# - a: a list/sequence that supports len(), indexing, slicing, and <= comparison
# - b: a list/sequence that supports len(), indexing, slicing, and <= comparison
# - idx: optional list that supports append() and extend(), or None
# The function merges two sorted lists and optionally tracks which list each element came from
a = [1, 3, 5, 7]
b = [2, 4, 6, 8]
idx = []
ARGS = {
"a": a,
"b": b,
"idx": idx
}
- 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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| plot_pr |
Ran ran on a synthesized input |
siqil/CPPOD/util.py code served (permissive licence) · get_code("0983b2520eeb1e62") How it ranRan 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 torch
import numpy as np
import sklearn.metrics as metrics
import matplotlib.pyplot as plt
torch.manual_seed(0)
# Create small synthetic data for binary classification
# label: binary labels (0 or 1)
label = np.array([0, 1, 0, 1, 1, 0])
# score: prediction scores (probabilities or decision function values)
score = np.array([0.1, 0.9, 0.2, 0.8, 0.7, 0.3])
# method: dict with 'name' and 'style' keys used by plot_method
method = {
'name': 'test_method',
'style': '-'
}
ARGS = {
'label': label,
'score': score,
'method': method,
'plot': True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, numpy, sklearn, torch — 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
|
| plot_roc |
Ran ran on a synthesized input |
siqil/CPPOD/util.py code served (permissive licence) · get_code("a104c3fb8fdb9fad") How it ranRan 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 sklearn.metrics as metrics
import matplotlib.pyplot as plt
import numpy as np
torch = None # Not needed for this function
# Create simple binary classification data
np.random.seed(0)
label = np.array([0, 1, 0, 1, 1, 0, 1, 0])
score = np.array([0.1, 0.9, 0.2, 0.8, 0.7, 0.3, 0.95, 0.15])
method = {
'name': 'Test Method',
'style': '-'
}
ARGS = {
'label': label,
'score': score,
'method': method,
'plot': True
}
- 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 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
|
| sim_data_test_omiss |
Ran ran on a synthesized input |
siqil/CPPOD/simulation.py code served (permissive licence) · get_code("79977f4a8f5c7a2f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import copy
def create_test_sequences(n_seqs=2, n_events_per_seq=5):
"""Create minimal test sequences with required fields."""
sequences = []
for seq_idx in range(n_seqs):
start = seq_idx * 10.0
stop = start + 20.0
# Generate random event times between start and stop
n_events = np.random.randint(3, n_events_per_seq + 1)
time_target = np.sort(np.random.uniform(start + 1, stop - 1, n_events))
seq = {
'time_target': time_target,
'start': start,
'stop': stop,
}
sequences.append(seq)
return sequences
def simple_regulator(vt_event):
"""Simple regulator function that returns a scalar or array of rates."""
return 0.5 * np.ones_like(vt_event)
def regulator_generator_func():
"""Generator that creates a new regulator function."""
return simple_regulator
# Create training and test data
data_train = create_test_sequences(n_seqs=3, n_events_per_seq=6)
data_test = create_test_sequences(n_seqs=2, n_events_per_seq=5)
# Define all arguments for sim_data_test_omiss
ARGS = {
'data_train': data_train,
'data_test': data_test,
'p': 0.1,
'seed': 42,
'regulator': None,
'regulator_generator': 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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| detect_len |
Not yet run unverified (harvested, no recorded run) |
siqil/CPPOD/baselines.py code served (permissive licence) · get_code("ef3c842fd1411c86") How it ran |
| detect_rand |
Not yet run unverified (harvested, no recorded run) |
siqil/CPPOD/baselines.py code served (permissive licence) · get_code("a5e787ab2c79e973") How it ran |