| bin_index |
Ran ran, honoured the contract we drafted |
melikechi-lab/just-add-noise/applications/plot_ipss_selection_cardinality.py code served (permissive licence) · get_code("a57a3c2af9cc1d8e") 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 int, ndim 0, dtype family int, 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
def bin_index(n_categories):
cardinality_bins = [(2, 2, '2'), (3, 4, '3-4'), (5, 8, '5-8'), (9, 20, '9-20'), (21, np.inf, '>20/continuous')]
for i, (low, high, _) in enumerate(cardinality_bins):
if low <= n_categories <= high:
return i
return len(cardinality_bins) - 1
ARGS = {
"n_categories": 5
}
- 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 int, ndim 0, dtype family int, 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
|
| classify_column |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/methods/dataset_types.py code served (permissive licence) · get_code("f1de94c98d2b851c") 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 pandas as pd
import numpy as np
# Create test data with various column types
numeric_continuous = pd.Series([1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.1, 11.2, 12.3, 13.4, 14.5, 15.6, 16.7, 17.8, 18.9, 19.0, 20.1, 21.2])
numeric_categorical = pd.Series([1, 1, 2, 2, 3, 3, 4, 4, 5, 5])
numeric_constant = pd.Series([42, 42, 42, 42])
string_categorical = pd.Series(['apple', 'banana', 'apple', 'cherry', 'banana', 'date'])
string_constant = pd.Series(['same', 'same', 'same'])
with_nulls = pd.Series([1.0, 2.0, np.nan, 4.0, 5.0])
ARGS = {
'col': numeric_continuous
}
- 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 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
|
| cls |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/methods/ufi.py code served (permissive licence) · get_code("e5cd13354af38148") 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 (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
from sklearn.ensemble import RandomForestClassifier
from sklearn.utils import check_random_state
# Create a minimal RandomForestClassifier and fit it
np.random.seed(0)
n_samples = 10
n_features = 4
n_estimators = 3
X = np.random.randn(n_samples, n_features)
y = np.random.randint(0, 2, n_samples)
# Fit a RandomForestClassifier
rf_clf = RandomForestClassifier(n_estimators=n_estimators, random_state=0)
rf_clf.fit(X, y)
# Ensure each tree has a random_state attribute
for tree in rf_clf.estimators_:
tree.random_state = 0
ARGS = {
"self": rf_clf,
"X": X,
"y": y
}
- 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 (4,) — shape (4,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| cnts_bin_corr |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/methods/data_generation.py code served (permissive licence) · get_code("edcc43e990e38dbe") 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
# Construct valid arguments for cnts_bin_corr function
ARGS = {
'n': 10, # number of samples
'p_cnts': 5, # number of continuous features
'p_bin': 4, # number of binary features
'p_corr': 2, # number of correlated pairs
'true_cnts_idx': [0, 1], # indices of true continuous features
'true_bin_idx': [0, 1], # indices of true binary features
'target_rho': 0.7, # target correlation
'snr': 2.0, # signal-to-noise ratio
'signal_type': 'linear', # signal type: 'linear' or 'nonlinear'
'seed': 42 # random seed
}
- 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 — 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
|
| cnts_bin_indep |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/methods/data_generation.py code served (permissive licence) · get_code("4a11ee9be1839609") 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
# Set seed for reproducibility
np.random.seed(0)
# Define parameters for cnts_bin_indep function
n = 10 # number of samples
p_cnts = 5 # number of continuous features
p_bin = 3 # number of binary features
true_cnts_idx = [0, 2] # indices of true continuous features
true_bin_idx = [1] # indices of true binary features
snr = 2.0 # signal-to-noise ratio
signal_type = 'linear' # or 'nonlinear'
seed = 42 # random seed
ARGS = {
'n': n,
'p_cnts': p_cnts,
'p_bin': p_bin,
'true_cnts_idx': true_cnts_idx,
'true_bin_idx': true_bin_idx,
'snr': snr,
'signal_type': signal_type,
'seed': seed
}
- 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 — 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
|
| inbag_times_ |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/methods/ufi.py code served (permissive licence) · get_code("b4128a6e6568f39f") 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 2, dtype family float, shape (2, 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
from sklearn.utils import check_random_state
class MockRandomForest:
"""Minimal RandomForest-like object for testing inbag_times_"""
def __init__(self, n_estimators=3, random_seed=42):
self.n_estimators = n_estimators
self.estimators_ = []
for i in range(n_estimators):
estimator = MockEstimator(random_state=random_seed + i)
self.estimators_.append(estimator)
class MockEstimator:
"""Minimal estimator with random_state attribute"""
def __init__(self, random_state=42):
self.random_state = random_state
# Create a tiny training dataset
X = np.array([
[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]
])
# Create a RandomForest-like object
rf = MockRandomForest(n_estimators=3, random_seed=42)
ARGS = {
"self": rf,
"X": X
}
- 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 2, dtype family float, shape (2, 3) — shape (2, 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
|
| jitterRF |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
melikechi-lab/just-add-noise/methods/jitter.py code served (permissive licence) · get_code("9e41914ee0bd76dd") 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 dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import time
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier
# Create small sample data
np.random.seed(0)
n_samples = 10
n_features = 5
# X: 10 samples, 5 features
X = np.random.randn(n_samples, n_features)
# y for regression: continuous values
y_regression = np.random.randn(n_samples)
# y for classification: binary labels
y_classification = np.random.randint(0, 2, n_samples)
# cat_idx: indices of categorical features (e.g., features 1 and 3)
cat_idx = [1, 3]
# rf_args: arguments for RandomForest models
rf_args = {
'n_estimators': 5,
'random_state': 42,
'max_depth': 3,
}
ARGS = {
'X': X,
'y': y_regression,
'task': 'regression',
'jitter_method': 'per_tree',
'jitter_strength': 0.0001,
'cat_idx': cat_idx,
'n_estimators': 5,
'random_state': 42,
'max_depth': 3,
}
- 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| jitterXGB |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
melikechi-lab/just-add-noise/methods/jitter.py code served (permissive licence) · get_code("51fa5a399b6efa08") 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 dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small dataset for regression task
np.random.seed(0)
n_samples = 10
n_features = 4
X = np.random.randn(n_samples, n_features)
# Make some features categorical by having few unique values
X[:, 0] = np.random.randint(0, 3, n_samples)
X[:, 1] = np.random.randint(0, 2, n_samples)
y_regression = np.random.randn(n_samples)
y_classification = np.random.randint(0, 2, n_samples)
ARGS = {
'X': X,
'y': y_regression,
'task': 'regression',
'jitter_method': 'one_time',
'jitter_strength': 0.0001,
'max_depth': 3,
'cat_idx': [0, 1]
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, xgboost — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| jitter_categoricals |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
melikechi-lab/just-add-noise/applications/ipss_null_spikein_study.py code served (permissive licence) · get_code("4233cfeeb6de43d7") 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 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Set random seed for reproducibility
np.random.seed(0)
# Create a small numpy array representing features with some categorical columns
# Shape: (2 rows, 4 columns) - batch size 2, 4 features
X = np.array([
[1.5, 2.3, 3.1, 4.2],
[5.0, 6.1, 7.3, 8.5]
], dtype=np.float32)
# Indices of categorical columns (selecting columns 1 and 3)
cat_idx = [1, 3]
# Create an RNG instance (numpy random generator)
rng = np.random.RandomState(42)
ARGS = {
"X": X,
"cat_idx": cat_idx,
"rng": rng
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
|
| jitter_categoricals |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
melikechi-lab/just-add-noise/applications/ipss_selection_study.py code served (permissive licence) · get_code("17ef372cf6739d2e") 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 2, dtype family float, shape (2, 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
random_seed = 302
jitter_strength = 0.0001
def jitter_categoricals(X, cat_idx):
"""One fixed uniform jitter realization on the categorical columns."""
rng = np.random.default_rng(random_seed)
out = X.astype(float, copy=True)
out[:, cat_idx] += rng.uniform(-jitter_strength, jitter_strength, size=(X.shape[0], len(cat_idx)))
return out
# Create a small numpy array with shape (2, 4) - 2 samples, 4 features
X = np.array([
[1, 2, 3, 4],
[5, 6, 7, 8]
], dtype=int)
# Indices of categorical columns - select 2 out of 4 columns
cat_idx = [0, 2]
ARGS = {
"X": X,
"cat_idx": cat_idx
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
|
| normalize_text |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/applications/mixed_importance_utils.py code served (permissive licence) · get_code("8bbc006234ea32db") 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 pandas as pd
# Create a sample pandas Series with various text values and missing values
series_data = pd.Series([
" Hello World ",
"CLINICAL TEXT",
None,
" lowercase string ",
pd.NA
])
ARGS = {
'series': series_data
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- 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
|
| read_feature_by_sample |
Ran ran, honoured the contract we drafted |
melikechi-lab/just-add-noise/applications/mixed_importance_utils.py code served (permissive licence) · get_code("ac2f70f28527f6ee") 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 DataFrame. 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 pandas as pd
# Create a temporary tab-separated file with feature-by-sample data
with tempfile.NamedTemporaryFile(mode='w', suffix='.tsv', delete=False) as f:
temp_path = Path(f.name)
# Write feature-by-sample table (features as rows, samples as columns)
f.write("FEATURE_ID\tsample_1\tsample_2\tsample_3\n")
f.write("feature_A\t1.5\t2.3\t3.1\n")
f.write("feature_B\t4.2\tNA\t5.6\n")
f.write("feature_C\t7.8\t8.9\t[Not Available]\n")
f.write("feature_D\t10.1\t11.2\t12.3\n")
ARGS = {
'path': temp_path,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
|
| read_pooled_kidney_clinical |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/applications/mixed_importance_utils.py code served (permissive licence) · get_code("db9b48278800588e") 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 DataFrame. 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 pandas as pd
import os
# Create temporary directory with mock TSV files
temp_dir = tempfile.mkdtemp()
data_dir = Path(temp_dir)
# Create mock clinical data files
kirc_data = pd.DataFrame({
'SAMPLE_ID': ['KIRC_001', 'KIRC_002'],
'age': [45, 67],
'gender': ['M', 'F'],
'stage': ['I', 'III']
})
kirc_data.set_index('SAMPLE_ID', inplace=True)
kirc_data.to_csv(data_dir / 'KIRC.txt', sep='\t')
kipr_data = pd.DataFrame({
'SAMPLE_ID': ['KIPR_001', 'KIPR_002'],
'grade': ['G2', 'G3'],
'tumor_size': [2.5, 4.1]
})
kipr_data.set_index('SAMPLE_ID', inplace=True)
kipr_data.to_csv(data_dir / 'KIPR.txt', sep='\t')
kich_data = pd.DataFrame({
'SAMPLE_ID': ['KICH_001', 'KICH_002'],
'subtype': ['TypeA', 'TypeB'],
'survival': [12, 36]
})
kich_data.set_index('SAMPLE_ID', inplace=True)
kich_data.to_csv(data_dir / 'KICH.txt', sep='\t')
ARGS = {
'data_dir': data_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
|
| regr |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/methods/ufi.py code served (permissive licence) · get_code("be798f3d785ffbc6") 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 (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
from sklearn.ensemble import RandomForestRegressor
from sklearn.datasets import make_regression
# Create a simple RandomForestRegressor and fit it
X, y = make_regression(n_samples=10, n_features=4, n_informative=3, random_state=42)
rf = RandomForestRegressor(n_estimators=3, random_state=42, max_depth=3)
rf.fit(X, y)
# Prepare arguments for the regr function
ARGS = {
'self': rf,
'X': X,
'y': y
}
- 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 (4,) — shape (4,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| spike_in_nulls |
Ran ran; our contract draft was wrong, not the code |
melikechi-lab/just-add-noise/applications/ipss_null_spikein_study.py code served (permissive licence) · get_code("7e9afcd93664f75b") 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
# Set random seed for reproducibility
np.random.seed(0)
rng = np.random.RandomState(42)
# Create a small sample dataset
# X shape: (n_samples, n_features) = (5, 6)
# Let's say columns 0, 2, 4 are categorical, columns 1, 3, 5 are continuous
n_samples = 5
n_features = 6
X = np.array([
[0, 1.5, 1, 2.3, 2, 3.1],
[1, 2.1, 0, 1.8, 1, 2.9],
[0, 3.2, 2, 0.5, 0, 1.2],
[2, 1.1, 1, 2.2, 2, 3.5],
[1, 2.8, 0, 1.9, 1, 2.4],
], dtype=float)
# Define which columns are categorical (indices 0, 2, 4)
cat_idx = [0, 2, 4]
# Number of null continuous and categorical predictors to add
n_cont = 2
n_cat = 1
ARGS = {
"X": X,
"cat_idx": cat_idx,
"rng": rng,
"n_cont": n_cont,
"n_cat": n_cat,
}
- 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 — 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
|
| selected |
Not yet run unverified (harvested, no recorded run) |
melikechi-lab/just-add-noise/applications/plot_ipss_selection_cardinality.py code served (permissive licence) · get_code("4065e91f72689dd1") How it ran |