| bootstrap_ci |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/stats.py code served (permissive licence) · get_code("51eac5b0969514f0") 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 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
# Set seed for reproducibility
np.random.seed(0)
# Create sample values for bootstrap_ci
values = np.array([1.2, 2.3, 3.1, 4.5, 5.2, 6.7, 7.1, 8.9, 9.3, 10.1])
ARGS = {
"values": values,
"n_boot": 1000,
"ci": 95.0,
"seed": 0,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| centroid |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/baselines.py code served (permissive licence) · get_code("010bd987d79354b2") 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 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
# Create a small point cloud with shape (n, d)
# Using n=5 points and d=3 dimensions
points = np.array([
[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[7.0, 8.0, 9.0],
[2.0, 3.0, 4.0],
[5.0, 6.0, 7.0]
], dtype=float)
ARGS = {
"points": points
}
- 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
|
| centroid_drift |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/baselines.py code served (permissive licence) · get_code("e7862623f7a48f35") 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 numpy as np
# Create two small point clouds
# Cloud a: 2 points in 4D space
a = np.array([
[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]
], dtype=float)
# Cloud b: 2 points in 4D space (different from a)
b = np.array([
[2.0, 3.0, 4.0, 5.0],
[6.0, 7.0, 8.0, 9.0]
], dtype=float)
ARGS = {
"a": a,
"b": b
}
- 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
|
| correlate |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/trajectories.py code served (permissive licence) · get_code("fca13e03452f7848") 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 numpy as np
import pandas as pd
# Create a small DataFrame with 'step' and feature columns
np.random.seed(0)
steps = [0, 0, 1, 1, 2, 2]
feature_values = [1.5, 2.0, 3.5, 4.0, 5.5, 6.0]
df = pd.DataFrame({
'step': steps,
'feature_col': feature_values
})
# Create a Series for behavior with matching step indices
behavior = pd.Series(
data=[2.1, 3.8, 5.2],
index=[0, 1, 2],
name='behavior'
)
ARGS = {
'df': df,
'feature': 'feature_col',
'behavior': behavior
}
- 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 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
|
| cross_val_accuracy |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/classify.py code served (permissive licence) · get_code("58620dcaa4abb2eb") 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 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 small sample data for cross-validation
np.random.seed(0)
n_samples = 20
n_features = 4
# Generate synthetic features
X = np.random.randn(n_samples, n_features).astype(float)
# Generate binary labels with stratification possible
# Create balanced classes
y = np.array([0, 1] * (n_samples // 2))
# Define arguments for cross_val_accuracy
ARGS = {
'X': X,
'y': y,
'n_splits': 5,
'seed': 0,
'C': 1.0
}
- 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 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
|
| feature_trajectory |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/trajectories.py code served (permissive licence) · get_code("b456e001ef79cc16") 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
import pandas as pd
# Create a sample DataFrame with the required columns
data = {
'run': ['run_1', 'run_1', 'run_1', 'run_1', 'run_2', 'run_2'],
'condition': ['cond_A', 'cond_A', 'cond_A', 'cond_B', 'cond_A', 'cond_A'],
'layer': [0, 0, 1, 0, 0, 0],
'step': [1, 2, 1, 1, 1, 2],
'loss': [0.5, 0.4, 0.6, 0.7, 0.5, 0.3],
'accuracy': [0.8, 0.85, 0.75, 0.7, 0.8, 0.9]
}
df = pd.DataFrame(data)
ARGS = {
'df': df,
'feature': 'loss',
'run': 'run_1',
'condition': 'cond_A',
'layer': 0
}
- 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 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
|
| fit_full |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/classify.py code served (permissive licence) · get_code("3ded0586954bc634") 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 Pipeline. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import Pipeline, make_pipeline
from sklearn.preprocessing import StandardScaler
# Create small synthetic data for X and y
np.random.seed(0)
X = np.random.randn(10, 4).astype(float) # 10 samples, 4 features
y = np.random.randint(0, 2, 10).astype(int) # 10 binary labels
ARGS = {
"X": X,
"y": y,
"C": 1.0,
}
- 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 Pipeline — a Pipeline output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Pipeline 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
|
| get_device |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/device.py code served (permissive licence) · get_code("71935ebe55b1fe12") 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 device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
torch.manual_seed(0)
ARGS = {
"prefer": None
}
- 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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
|
| js |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/divergence.py code served (permissive licence) · get_code("7aa603bd51e0bc2f") 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 ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# The function js() takes two numpy arrays (p and q) and an optional eps parameter
# p and q should be array-like that can be normalized to probability distributions
# They should have a "last axis" along which the operation is performed
# Create small test distributions
p = np.array([[0.7, 0.2, 0.05, 0.05],
[0.25, 0.25, 0.25, 0.25]])
q = np.array([[0.6, 0.3, 0.05, 0.05],
[0.33, 0.33, 0.33, 0.01]])
eps = 1e-12
ARGS = {
"p": p,
"q": q,
"eps": eps
}
- 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 (2,) — shape (2,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| kl |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/divergence.py code served (permissive licence) · get_code("626cff0e7fb7d225") 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 ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small test arrays for p and q
# The function expects numpy arrays of any shape, with operations along the last axis
# Using shape (2, 4) to have a small batch with 4 probability values per sample
p = np.array([
[0.2, 0.3, 0.5, 0.0],
[0.1, 0.2, 0.3, 0.4]
], dtype=float)
q = np.array([
[0.25, 0.25, 0.25, 0.25],
[0.15, 0.25, 0.35, 0.25]
], dtype=float)
eps = 1e-12
ARGS = {
"p": p,
"q": q,
"eps": eps
}
- 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 (2,) — shape (2,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| l2_mean_diff |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/stats.py code served (permissive licence) · get_code("6e3e6544a6c1b59a") 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 numpy as np
# Create two small numpy arrays with different shapes for distinct dimensions
# a: batch of 2 samples, each with 4 features
a = np.array([[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]])
# b: batch of 2 samples, each with 4 features
b = np.array([[2.0, 3.0, 4.0, 5.0],
[6.0, 7.0, 8.0, 9.0]])
ARGS = {
"a": a,
"b": b
}
- 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
|
| load_exp1 |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/config.py code served (permissive licence) · get_code("d376d5df57d73f50") 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 Exp1Config. 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 pathlib import Path
import tempfile
import yaml
# Create a temporary YAML configuration file for testing
temp_dir = tempfile.TemporaryDirectory()
config_path = Path(temp_dir.name) / "exp1_config.yaml"
config_dict = {
'name': 'test_experiment',
'model': {
'name': 'gpt2',
'revision': None,
'layers': [0, 1, 2],
'n_probe_layers': 5,
'include_embedding': False,
'dtype': 'float32',
'attn_implementation': None,
'batch_size': 16,
'max_length': 128
},
'topology': {
'metric': 'euclidean',
'maxdim': 1,
'thresh': float('inf'),
'n_subsamples': 64,
'subsample_size': None,
'subsample_fraction': 0.8,
'seed': 0,
'point_cloud': 'last_token',
'tokens_per_prompt': 16
},
'prompt_set': 'smoke',
'n_per_condition': None,
'results_dir': 'results',
'activations_dir': 'activations/exp1',
'seed': 0
}
config_path.write_text(yaml.dump(config_dict))
ARGS = {
'path': str(config_path)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Exp1Config — a Exp1Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Exp1Config 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
|
| load_exp2 |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/config.py code served (permissive licence) · get_code("73de5f9e3f567281") 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 Exp2Config. 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 tempfile
from pathlib import Path
import yaml
# Create a temporary YAML config file for load_exp2
yaml_content = {
'name': 'test_exp2',
'base_model': 'gpt2',
'runs': {
'run1': {'steps': 100},
'run2': {'steps': 200}
},
'train': {
'n_train': 1000,
'max_steps': 300,
'save_steps': 25,
'batch_size': 2,
'grad_accum': 4,
'learning_rate': 0.0001,
'max_length': 256,
'lora': {'r': 4, 'alpha': 8, 'dropout': 0.1},
'dtype': 'float32',
'stop_at': 150
},
'topology': {
'metric': 'cosine',
'maxdim': 2,
'thresh': 0.5,
'n_subsamples': 32,
'subsample_size': 16,
'subsample_fraction': 0.7,
'seed': 42,
'point_cloud': 'all_tokens',
'tokens_per_prompt': 8
},
'eval_n_each': 100,
'n_probe_layers': 3,
'behavior': {'max_new_tokens': 64, 'batch_size': 4},
'extract_batch_size': 8,
'source_name': 'test_source',
'checkpoints_dir': 'checkpoints/test',
'activations_dir': 'activations/test',
'results_dir': 'results/test',
'seed': 123
}
# Create a temporary file with the YAML content
with tempfile.NamedTemporaryFile(mode='w', suffix='.yaml', delete=False) as f:
yaml.dump(yaml_content, f)
temp_yaml_path = f.name
ARGS = {
'path': temp_yaml_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Exp2Config — a Exp2Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Exp2Config output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_classifier |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/classify.py code served (permissive licence) · get_code("ce79861aaeb0f94f") 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 Pipeline. 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 sklearn.linear_model import LogisticRegression
from sklearn.pipeline import Pipeline, make_pipeline
from sklearn.preprocessing import StandardScaler
torch.manual_seed(0)
ARGS = {
"C": 1.0,
"max_iter": 2000,
}
- 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 Pipeline — a Pipeline output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Pipeline 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
|
| pca_summaries |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/pca.py code served (permissive licence) · get_code("2afb52bea555bc85") 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. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
# Create a small sample dataset with distinct dimensions
# 5 samples, 3 features
X = np.array([
[1.0, 2.0, 3.0],
[2.0, 3.0, 4.0],
[3.0, 4.0, 5.0],
[4.0, 5.0, 6.0],
[5.0, 6.0, 7.0]
], dtype=float)
ARGS = {
"X": X,
"n_components": 2
}
- 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
|
| permutation_test |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/stats.py code served (permissive licence) · get_code("7b708cec491923b8") 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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create sample data for group_a and group_b
# group_a: (n_a, k) array - 2 samples, 4 features
group_a = np.array([
[1.0, 2.0, 3.0, 4.0],
[1.5, 2.5, 3.5, 4.5]
])
# group_b: (n_b, k) array - 3 samples, 4 features
group_b = np.array([
[5.0, 6.0, 7.0, 8.0],
[5.5, 6.5, 7.5, 8.5],
[6.0, 7.0, 8.0, 9.0]
])
# Define a custom statistic function if needed (already provided as default)
def custom_statistic(a, b):
"""Calculate L2 norm of mean difference"""
return float(np.linalg.norm(a.mean(axis=0) - b.mean(axis=0)))
ARGS = {
'group_a': group_a,
'group_b': group_b,
'statistic': custom_statistic,
'n_permutations': 100,
'seed': 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| plot_evolution |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/viz/dynamics_plots.py code served (permissive licence) · get_code("5c2f34c82a56e379") 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 PosixPath. 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 pathlib import Path
import tempfile
# Create temporary directory for saving plots
temp_dir = tempfile.mkdtemp()
# Create sample data for plot_evolution
# steps_by_run: dict mapping run name to array of step numbers
steps_by_run = {
'helpful': np.array([0, 100, 200, 300]),
'harmless': np.array([0, 100, 200, 300]),
'mixed': np.array([0, 100, 200, 300])
}
# series_by_run: dict mapping run name to (mean, lo, hi) tuple of arrays
series_by_run = {
'helpful': (
np.array([0.5, 0.6, 0.7, 0.75]), # mean
np.array([0.45, 0.55, 0.65, 0.70]), # lo
np.array([0.55, 0.65, 0.75, 0.80]) # hi
),
'harmless': (
np.array([0.4, 0.5, 0.6, 0.65]), # mean
np.array([0.35, 0.45, 0.55, 0.60]), # lo
np.array([0.45, 0.55, 0.65, 0.70]) # hi
),
'mixed': (
np.array([0.3, 0.4, 0.5, 0.55]), # mean
np.array([0.25, 0.35, 0.45, 0.50]), # lo
np.array([0.35, 0.45, 0.55, 0.60]) # hi
)
}
ARGS = {
'steps_by_run': steps_by_run,
'series_by_run': series_by_run,
'path': Path(temp_dir) / 'evolution_plot.png',
'ylabel': 'Performance Score',
'title': 'Training Evolution Across Runs'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
|
| plot_grokking_dual |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/viz/dynamics_plots.py code served (permissive licence) · get_code("d8547f900598f5f0") 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 PosixPath. 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
import matplotlib.pyplot as plt
from pathlib import Path
import tempfile
torch.manual_seed(0)
# Create temporary directory for saving output
temp_dir = tempfile.mkdtemp()
# Create sample data
steps = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
topo_values = np.array([0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55])
behav_values = np.array([0.9, 0.85, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1])
ARGS = {
'steps': steps,
'topo_values': topo_values,
'behav_values': behav_values,
'path': Path(temp_dir) / 'test_plot.png',
'run': 'helpful',
'topo_label': 'Topological Complexity',
'behav_label': 'Behavioral Accuracy',
'topo_step': 5,
'behav_step': 7,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
|
| plot_velocity |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/viz/dynamics_plots.py code served (permissive licence) · get_code("939124d0678a49c4") 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 PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import matplotlib.pyplot as plt
from pathlib import Path
import numpy as np
ARGS = {
'vel_by_run': {
'helpful': {
0: (np.array([0, 100, 200, 300]), np.array([0.0, 0.5, 0.3, 0.2])),
1: (np.array([0, 100, 200]), np.array([0.0, 0.4, 0.25]))
},
'harmless': {
0: (np.array([0, 100, 200, 300, 400]), np.array([0.0, 0.6, 0.4, 0.3, 0.1])),
1: (np.array([0, 100]), np.array([0.0, 0.7]))
},
'mixed': {
0: (np.array([0, 50, 150]), np.array([0.0, 0.8, 0.5]))
}
},
'path': '/tmp/test_plot_velocity.png',
'title': 'Wasserstein Velocity Over Training'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
|
| resolve_dtype |
Ran ran; our contract draft was wrong, not the code |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/device.py code served (permissive licence) · get_code("a3e3458fdf8343c4") 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 dtype. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
torch.manual_seed(0)
ARGS = {
"name": "float32",
"device": torch.device("cpu"),
}
- 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 dtype — a dtype output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dtype 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
|
| subsample_clouds |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/sampling.py code served (permissive licence) · get_code("40e12ee7da8f1e50") 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 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
# Create a small point cloud with shape (n, dim)
# Using n=10 points, dim=4 features
points = np.random.randn(10, 4).astype(np.float32)
ARGS = {
"points": points,
"size": 5,
"n_draws": 3,
"seed": 0,
"replace": False,
}
- 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 3, 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
|
| symmetric_kl |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/divergence.py code served (permissive licence) · get_code("fdbc97bb9b626e9b") 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 ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small numpy arrays for p and q
# These should be probability-like distributions (non-negative values)
# Use distinct shapes to allow probing: batch_size=2, num_classes=4
p = np.array([
[0.7, 0.2, 0.05, 0.05],
[0.1, 0.1, 0.3, 0.5]
], dtype=float)
q = np.array([
[0.6, 0.25, 0.1, 0.05],
[0.2, 0.2, 0.3, 0.3]
], dtype=float)
# Standard epsilon for numerical stability
eps = 1e-12
ARGS = {
"p": p,
"q": q,
"eps": eps,
}
- 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 (2,) — shape (2,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| total_variance |
Ran ran, honoured the contract we drafted |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/baselines.py code served (permissive licence) · get_code("436bdd000624200b") 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 numpy as np
# Create a small points array with shape (5, 3)
# This will have multiple points in 3D space
points = np.array([
[1.0, 2.0, 3.0],
[2.0, 3.0, 4.0],
[3.0, 4.0, 5.0],
[4.0, 5.0, 6.0],
[5.0, 6.0, 7.0]
], dtype=float)
ARGS = {
"points": points
}
- 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
|
| describe |
Not yet run unverified (harvested, no recorded run) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/device.py code served (permissive licence) · get_code("3171b6f56f728abf") How it ran |
| global_filtration_range |
Not yet run unverified (harvested, no recorded run) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/dynamics.py code served (permissive licence) · get_code("baccdceec0407bef") How it ran |
| run_velocity |
Not yet run unverified (harvested, no recorded run) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/dynamics.py code served (permissive licence) · get_code("0d1728208d5ec90a") How it ran |
| trajectory_with_ci |
Not yet run unverified (harvested, no recorded run) |
malhotranaman/tracking-representation-dynamics-with-persistent-homology/src/phlatent/analysis/dynamics.py code served (permissive licence) · get_code("91527b5241b8ad09") How it ran |