| choose_target_index |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/exp/run_downstream_cross_variable.py code served (permissive licence) · get_code("5d4859749b71e15c") 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
# Construct a valid sequence array
# The function accesses sequence[96:, 0], so we need:
# - At least 97 rows (index 96 and beyond)
# - At least 1 column (column 0)
# Create a sequence with some non-zero values in the range [96:, 0]
sequence = np.zeros((200, 5), dtype=np.float32)
# Add some non-zero values in the [96:, 0] slice to create candidates
sequence[100, 0] = 1.0
sequence[150, 0] = 2.0
sequence[180, 0] = 3.0
# Test both deterministic True and False
deterministic = True
ARGS = {
"sequence": sequence,
"deterministic": deterministic
}
- 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_cross_pixels |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YilaiLiu-HKU/MIDiff/gasf_cross_visualization.py code served (permissive licence) · get_code("c2f2a847ff3d28c9") 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 int, shape (4, 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
# Construct arguments for classify_cross_pixels
app = np.array([0, 1, 2, 0], dtype=np.int32)
poi = np.array([0, 1, 0, 3, 2], dtype=np.int32)
ARGS = {
"app": app,
"poi": poi
}
- 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 int, shape (4, 5) — shape (4, 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
|
| display_model_name |
Ran ran; our contract draft was wrong, not the code |
YilaiLiu-HKU/MIDiff/exp/analyze_max_distribution.py code served (permissive licence) · get_code("5e0ccb6477a5f644") 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 str. 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
ARGS = {
'model_name': 'our'
}
- 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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
|
| inverse_transform_with_max_compensation |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YilaiLiu-HKU/MIDiff/gasf_cross_conversion_inverse.py code served (permissive licence) · get_code("3fc3e204c5176b8d") 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
# Create a small app_trace array with shape (2, 4)
# This represents a batch of 2 samples with 4 features
app_trace = np.array([
[0.0, 1.5, 2.3, 0.0],
[1.2, 0.0, 3.1, 0.5]
], dtype=np.float64)
# Create stats dict with log_feature_maxes
# Shape should be (4,) to match the second dimension of app_trace
stats = {
'log_feature_maxes': np.array([2.0, 1.5, 2.5, 1.8], dtype=np.float64)
}
ARGS = {
'app_trace': app_trace,
'stats': stats
}
- 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
|
| is_strict_one_hot |
Ran ran, violated the contract we drafted |
YilaiLiu-HKU/MIDiff/gasf_cross_conversion.py code served (permissive licence) · get_code("cc498180eb272d19") 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 numpy as np
# Construct a valid one-hot encoded vector (has exactly one 1, rest are 0s)
strict_one_hot = np.array([0, 1, 0, 0])
ARGS = {
"poi_vector": strict_one_hot
}
- 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 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
|
| load_and_preprocess_samples |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/reshape.py code served (permissive licence) · get_code("c9107bca78e54362") 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 3, dtype family float, shape (2, 192, 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
import torch
import tempfile
import os
torch.manual_seed(0)
# Create a temporary .pth file with sample data
temp_dir = tempfile.mkdtemp()
torch_file_path = os.path.join(temp_dir, "samples.pth")
# Create sample data: (batch=2, seq_len=150, features=3)
# This will test the padding logic since 150 < 192
sample_data = torch.randn(2, 150, 3)
# Save to .pth file
torch.save(sample_data, torch_file_path)
ARGS = {
"torch_file_path": torch_file_path,
"target_seq_len": 192,
}
- 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 ndarray, ndim 3, dtype family float, shape (2, 192, 3) — shape (2, 192, 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
|
| load_csv_as_tensor |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/exp/run_downstream_cross_variable.py code served (permissive licence) · get_code("d0145d5462b48da3") 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 3, dtype family float, shape (2, 192, 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
import tempfile
import os
# Create a temporary CSV file with the correct dimensions
# The function expects 576 columns (192 * 3) and will reshape to (batch, 192, 3)
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test_data.csv")
# Create sample data: 2 rows (batch size), 576 columns (192 * 3)
sample_data = np.random.randn(2, 576).astype(np.float32)
np.savetxt(csv_path, sample_data, delimiter=',')
ARGS = {
'path': csv_path
}
- 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 3, dtype family float, shape (2, 192, 3) — shape (2, 192, 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
|
| load_reference_stats |
Ran ran; our contract draft was wrong, not the code |
YilaiLiu-HKU/MIDiff/gasf_cross_conversion_inverse.py code served (permissive licence) · get_code("420feeb89f853bc9") 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 tempfile
import os
# Create a temporary NPZ file with the expected structure
temp_dir = tempfile.mkdtemp()
dataset_path = os.path.join(temp_dir, 'dataset.npz')
# Create sample data matching the expected structure
# 'Category_ID_Traffic (Byte)' should be a 3D array (categories, samples, features)
app_traffics = np.random.randint(0, 1000, size=(5, 10, 8)).astype(np.float32)
# Add some zeros to test the zero_mask logic
app_traffics[0, :, 0] = 0
# Save to NPZ file
np.savez(dataset_path, **{'Category_ID_Traffic (Byte)': app_traffics})
ARGS = {
'dataset_npz': dataset_path
}
- 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 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
|
| minmax_scale |
Ran ran, violated the contract we drafted |
YilaiLiu-HKU/MIDiff/gasf_cross_conversion.py code served (permissive licence) · get_code("04ae23b2d96418d4") 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
# Construct valid arguments for minmax_scale function
# The function takes a time series (ts) and applies min-max normalization
# Create a small numpy array as the time series input
ts = np.array([1.0, 2.5, 3.0, 4.5, 5.0])
ARGS = {
"ts": ts
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| process_single_image |
Ran ran; our contract draft was wrong, not the code |
YilaiLiu-HKU/MIDiff/gasf_cross_conversion_inverse.py code served (permissive licence) · get_code("866dc384b1fd642e") 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 scipy.stats import mode
# Set random seed for reproducibility
np.random.seed(0)
# Construct the stats dictionary
# The function uses stats['log_feature_maxes'] which should be shape (app_n,) = (20,)
stats = {
'log_feature_maxes': np.random.randn(20).astype(np.float64) + 2.0
}
# Construct the image array
# Based on the function logic:
# - time_steps = 192
# - app_n = 20
# - poi_n = image.shape[1] // app_n, so image.shape[1] should be divisible by 20
# - image will be reshaped to (192, 20, poi_n)
# Let's use poi_n = 5, so image.shape[1] = 100
time_steps = 192
app_n = 20
poi_n = 5
image = np.random.randn(time_steps, app_n * poi_n).astype(np.float32)
# Construct mean_factor as a float between 0 and 1
mean_factor = 0.6
# Create the tuple argument for process_single_image
args = (image, stats, mean_factor)
ARGS = {
'args': args
}
- 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 — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| read_dataset |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/reshape.py code served (permissive licence) · get_code("3440370fb4371b96") 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 (3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import os
import pandas as pd
import tempfile
# Create a temporary CSV file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.csv")
# Write some test data to the CSV file
test_data = np.array([
[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0],
[9.0, 10.0, 11.0, 12.0]
])
df_temp = pd.DataFrame(test_data)
df_temp.to_csv(temp_file, header=False, index=False)
ARGS = {
'file_path': temp_file
}
- 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 ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 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
|
| read_dataset |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/exp/analyze_max_distribution.py code served (permissive licence) · get_code("6373168fbb9fc6d8") 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 (3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import pandas as pd
import tempfile
from pathlib import Path
# Create a temporary CSV file for testing
temp_dir = tempfile.mkdtemp()
temp_file = Path(temp_dir) / "test_data.csv"
# Create sample data with some negative values to test the np.maximum(values, 0.0)
sample_data = np.array([
[1.0, 2.0, -3.0, 4.0],
[-5.0, 6.0, 7.0, -8.0],
[9.0, -10.0, 11.0, 12.0]
])
# Write to CSV without header
pd.DataFrame(sample_data).to_csv(temp_file, header=False, index=False)
# Construct ARGS dict
ARGS = {
'file_path': str(temp_file)
}
- 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 ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 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
|
| read_dataset |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/exp/evaluate_generation_metrics.py code served (permissive licence) · get_code("377a7b4b41281640") 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 (3, 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 os
import numpy as np
import pandas as pd
import tempfile
# Create a temporary CSV file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.csv")
# Write some test data to the CSV file
test_data = np.array([
[1.5, 2.3, -1.0, 4.2],
[0.5, -0.3, 2.1, -3.5],
[-2.0, 1.1, 0.5, 0.8]
])
df = pd.DataFrame(test_data)
df.to_csv(temp_file, header=False, index=False)
# Define the arguments dict
ARGS = {
'file_path': temp_file
}
- 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 ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 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
|
| split_indices |
Ran ran; our contract draft was wrong, not the code |
YilaiLiu-HKU/MIDiff/exp/run_downstream_cross_variable.py code served (permissive licence) · get_code("17a265daf892dd60") 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
ARGS = {
"num_samples": 100,
"seed": 42,
"train_ratio": 0.8,
}
- 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
|
| split_into_three_dimensions |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YilaiLiu-HKU/MIDiff/exp/analyze_max_distribution.py code served (permissive licence) · get_code("e0a8b68d317b6dbc") 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 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 numpy array with shape (n_samples, n_features)
# where n_features is divisible by 3
# Using shape (2, 6) so it can be reshaped to (2, 2, 3)
data = np.arange(12).reshape(2, 6).astype(np.float32)
ARGS = {
"data": data
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| split_into_three_realdimensions |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YilaiLiu-HKU/MIDiff/reshape.py code served (permissive licence) · get_code("a6b4945b90543a90") 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 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 torch
import numpy as np
torch.manual_seed(0)
# The function expects a 2D array/tensor with shape (n_samples, n_features)
# where n_features is divisible by 3
# It will reshape it to (n_samples, seq_len, 3) and return three separate tensors
# Create a small test tensor: 2 samples, 12 features (divisible by 3)
data = torch.randn(2, 12)
ARGS = {
'data': data
}
- 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 tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| split_into_three_realdimensions |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YilaiLiu-HKU/MIDiff/exp/evaluate_generation_metrics.py code served (permissive licence) · get_code("2723b67dee663cf6") 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 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 sample data with shape [n_samples, 3*seq_len]
# Using n_samples=2, seq_len=4, so total features = 12
n_samples = 2
seq_len = 4
n_features = 3 * seq_len
data = np.random.randn(n_samples, n_features).astype(np.float32)
ARGS = {
'data': data
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| to_gasf_cross |
Ran ran, violated the contract we drafted |
YilaiLiu-HKU/MIDiff/gasf_cross_conversion.py code served (permissive licence) · get_code("cafdf7448dcfa59d") 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 (4, 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
# Analyze the function:
# - to_gasf_cross takes two parameters: x and y
# - Both are used with np.arccos(), so they should be numpy arrays
# - x is indexed with [:, None] suggesting it's 1D
# - y is indexed with [None, :] suggesting it's 1D
# - The function performs element-wise arccos and outer product via broadcasting
# - Values passed to arccos must be in [-1, 1] range
# Create small 1D arrays with valid values for arccos (in range [-1, 1])
x = np.array([0.0, 0.5, -0.5, 0.8]) # shape (4,)
y = np.array([0.2, -0.3, 0.9]) # shape (3,) - distinct from x's size
ARGS = {
"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 — 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 (4, 3) — shape (4, 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
|
| traces_to_eval_array |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YilaiLiu-HKU/MIDiff/changetocsv.py code served (permissive licence) · get_code("0a61a46bcd4c66da") 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, 15) 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 traces
# app_traces: [N, T, C] - N=2 samples, T=5 timesteps, C=4 channels
app_traces = np.random.rand(2, 5, 4).astype(np.float32)
# poi_traces: [N, T, P] - N=2 samples, T=5 timesteps, P=3 POI categories
poi_traces = np.random.rand(2, 5, 3).astype(np.float32)
# Ensure some background POI (category 0) by making first channel dominant in some places
poi_traces[:, :, 0] = np.random.rand(2, 5) * 2 # Make category 0 more likely sometimes
ARGS = {
'app_traces': app_traces,
'poi_traces': poi_traces,
}
- 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, 15) — shape (2, 15) 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
|
| transform_non_zero_to_one |
Ran ran, honoured the contract we drafted |
YilaiLiu-HKU/MIDiff/exp/evaluate_generation_metrics.py code served (permissive licence) · get_code("7f5c1523f822c29d") 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 int, shape (3, 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
# Create a small test array with mixed zero and non-zero values
data = np.array([
[0, 1, 2, 0],
[5, 0, -3, 4],
[0, 0, 7, 0]
], dtype=np.int32)
ARGS = {
"data": data
}
- 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 int, shape (3, 4) — shape (3, 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
|