| activation |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/models/utils.py code served (permissive licence) · get_code("db1e29d0f75ef2ae") 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 SiLU. 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
from torch import nn
torch.manual_seed(0)
ARGS = {
'act_type': 'swish'
}
- 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 SiLU — a SiLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SiLU 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
|
| bin_classify_patches |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/features/sampling.py code served (permissive licence) · get_code("ebcc8aa2f3792088") 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. 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 patch data
# patches shape: (num_patches, height, width) - used for metric_func
patches = np.random.randint(0, 100, size=(2, 4, 3), dtype=np.uint8)
# patch_coords: list of (pi, pj) tuples for patches
patch_coords = [(0, 1), (2, 3)]
# patch_times: list of time values for patches
patch_times = [10, 20]
# zero_patch_coords: list of (pi, pj) tuples for zero-valued patches
zero_patch_coords = [(1, 2), (3, 4)]
# zero_patch_times: list of time values for zero patches
zero_patch_times = [5, 15]
# bins: sorted array of bin boundaries
bins = np.array([25, 50, 75])
# zero_value: the value to classify as "zero"
zero_value = 0
# metric_func: function that computes metrics from patches
# Default is None, so the function will use its built-in metric_func
metric_func = None
# scale: optional lookup table for scaling values
# Not using scale in this test
scale = None
ARGS = {
"bins": bins,
"patches": patches,
"patch_coords": patch_coords,
"patch_times": patch_times,
"zero_patch_coords": zero_patch_coords,
"zero_patch_times": zero_patch_times,
"zero_value": zero_value,
"metric_func": metric_func,
"scale": scale,
}
- 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 — a list 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
|
| confusion_matrix |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/confmatrix.py code served (permissive licence) · get_code("f2263dfddca0d1e7") 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, 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 fc_frac and obs_frac
# The function treats them as probability fractions, so values in [0, 1]
fc_frac = np.array([[0.2, 0.8, 0.3, 0.9],
[0.1, 0.7, 0.4, 0.6]])
obs_frac = np.array([[0.1, 0.9, 0.5, 0.8],
[0.3, 0.6, 0.2, 0.95]])
prob_threshold = 0.5
ARGS = {
"fc_frac": fc_frac,
"obs_frac": obs_frac,
"prob_threshold": prob_threshold
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (2, 2) — shape (2, 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
|
| confusion_matrix_thresholds |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/confmatrix.py code served (permissive licence) · get_code("cbfb31bff0aefba5") 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, 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
# Set random seed for reproducibility
np.random.seed(0)
# Create small numpy arrays with distinct shapes for fc_frac and obs_frac
# These represent forecast fractions and observation fractions
fc_frac = np.random.rand(4, 3) # Shape (4, 3) - forecast probabilities
obs_frac = np.random.rand(4, 3) # Shape (4, 3) - observation probabilities
# Create a list of probability thresholds to test
thresholds = [0.3, 0.5, 0.7]
ARGS = {
'fc_frac': fc_frac,
'obs_frac': obs_frac,
'thresholds': thresholds
}
- 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, 2, 3) — shape (2, 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
|
| confusion_matrix_thresholds_leadtime |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/confmatrix.py code served (permissive licence) · get_code("76b21856146ac180") 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 4, dtype family float, shape (2, 2, 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 understand what it needs:
# - confusion_matrix_thresholds_leadtime takes fc_frac, obs_frac, thresholds
# - fc_frac and obs_frac are indexed with [..., lt, :, :] where lt is from range(fc_frac.shape[2])
# - So they need at least 3 dimensions
# - thresholds is iterated over with "for t in thresholds"
# - confusion_matrix compares fc_frac and obs_frac with prob_threshold values
# - Values are compared with > operator, so they should be numeric arrays with values in [0, 1] for probability-like data
# Create small test arrays
# Shape: (2, 3, 4, 5, 6) to have distinct dimensions
# Dimensions: [batch=2, feature=3, leadtime=4, height=5, width=6]
np.random.seed(0)
fc_frac = np.random.rand(2, 3, 4, 5, 6).astype(np.float32)
obs_frac = np.random.rand(2, 3, 4, 5, 6).astype(np.float32)
# Thresholds for probability comparison
thresholds = np.array([0.3, 0.5, 0.7])
ARGS = {
'fc_frac': fc_frac,
'obs_frac': obs_frac,
'thresholds': thresholds
}
- 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 4, dtype family float, shape (2, 2, 4, 3) — shape (2, 2, 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
|
| convert_var_for_saving |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/features/io.py code served (permissive licence) · get_code("cf2cd534394d8503") 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 int, shape (10,) 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 to pass as input
# The function expects a normalized array that will be denormalized and clipped
x = np.random.randn(10).astype(np.float32)
# Define all parameters for the function
ARGS = {
'x': x,
'fill_value': 0.02,
'min_value': 0.05,
'max_value': 118.428,
'mean': -0.051,
'std': 0.528
}
- 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 int, shape (10,) — shape (10,) 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
|
| crps_ensemble |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/crps.py code served (permissive licence) · get_code("75943c22120aebe7") 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
# Create observation array with shape (2, 3)
observation = np.array([[1.2, 2.1, 3.5],
[0.8, 1.9, 2.3]], dtype=np.float64)
# Create forecasts array with shape (2, 3, 5)
# Last dimension is the ensemble members
forecasts = np.array([[[0.9, 1.1, 1.3, 1.5, 1.7],
[1.8, 2.0, 2.2, 2.4, 2.6],
[3.1, 3.3, 3.5, 3.7, 3.9]],
[[0.5, 0.7, 0.9, 1.1, 1.3],
[1.6, 1.8, 2.0, 2.2, 2.4],
[2.0, 2.2, 2.4, 2.6, 2.8]]], dtype=np.float64)
ARGS = {
'observation': observation,
'forecasts': forecasts
}
- 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, 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
|
| crps_ensemble_multiscale |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/crps.py code served (permissive licence) · get_code("aa6dea747c932747") 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 observation array (2D spatial grid: 4x4)
observation = np.random.randn(4, 4).astype(np.float32)
# Create small forecasts array (2D spatial grid: 4x4, with 3 ensemble members)
# Shape: (4, 4, 3) - last dimension is ensemble forecasts
forecasts = np.random.randn(4, 4, 3).astype(np.float32)
ARGS = {
"observation": observation,
"forecasts": forecasts,
}
- 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
|
| decode_saved_var_to_rainrate |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/features/io.py code served (permissive licence) · get_code("7f03dc080c1b06b0") 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, 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
# The function uses x as a numpy array with comparison operations and indexing
# It optionally uses preproc as a dict-like object with callable values
# preproc is indexed by time step t and each callable takes a slice of y
# Create a small test input array
# Shape: (height, width, time, channels) based on the preproc indexing pattern
x = np.array([[[1, 2, 100, 500],
[1000, 50000, 65533, 65534]],
[[1, 1, 1, 50000],
[65533, 65533, 100, 200]]], dtype=np.uint16)
# Create a minimal preproc dict
# It needs to be indexable by time step (0, 1, 2, 3 for shape[2]=4)
# Each entry should be callable that takes an array and returns an array
preproc_dict = {
0: lambda arr: arr * 1.0,
1: lambda arr: arr * 1.1,
2: lambda arr: arr * 0.9,
3: lambda arr: arr * 1.05,
}
ARGS = {
'x': x,
'fill_value': 0.02,
'min_value': 0.05,
'threshold': 0.1,
'max_value': 118.428,
'mean': -0.051,
'std': 0.528,
'log': False,
'preproc': preproc_dict,
}
- 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, 2, 4) — shape (2, 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
|
| ensemble_nll_normal |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/models/distributions.py code served (permissive licence) · get_code("174a827fede88455") 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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# ensemble is used with:
# - ensemble.mean(dim=1)
# - ensemble.var(dim=1, unbiased=True)
# These operations expect a tensor with at least 2 dimensions
# The result of mean and var should broadcast with sample[:, None, ...]
# sample is used with:
# - sample[:, None, ...] to add a dimension
# - subtraction with mean (broadcasting)
# - .square() and division operations on the diff
# Create ensemble: shape (batch_size, num_models, feature_dim)
# Using distinct sizes: 2 batch, 3 models, 4 features
ensemble = torch.randn(2, 3, 4)
# Create sample: shape (batch_size, feature_dim)
# Must be compatible with ensemble for broadcasting
sample = torch.randn(2, 4)
# epsilon is a small float to prevent numerical issues
epsilon = 1e-05
ARGS = {
"ensemble": ensemble,
"sample": sample,
"epsilon": epsilon,
}
- 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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| fractions_ensemble |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/fss.py code served (permissive licence) · get_code("ccc9d5748608a1a1") 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 small observation and forecasts arrays
# observation: 2D array of shape (4, 3) - small spatial grid
observation = np.random.randn(4, 3).astype(np.float32)
# forecasts: 3D array of shape (4, 3, 5) - ensemble of 5 forecasts
# The function takes mean over last axis (ensemble members)
forecasts = np.random.randn(4, 3, 5).astype(np.float32)
# threshold: scalar value for binarization
threshold = 0.5
# max_scale: maximum scale for the coarsening loop
max_scale = 256
ARGS = {
"observation": observation,
"forecasts": forecasts,
"threshold": threshold,
"max_scale": max_scale,
}
- 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
|
| get_patches |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/features/patches.py code served (permissive licence) · get_code("78380992e5f30b16") 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 datetime import datetime, timedelta
class MockReader:
def __init__(self):
self.phys_values = True
def variable_for_time(self, t, variable):
# Return a 2D array large enough to contain multiple patches
# patch_shape is (32, 32), so we need at least 64x64 to get 2 patches in each dimension
return np.random.rand(128, 128).astype(np.float32)
def mock_nonzero_count(patch_box):
# Count nonzero elements
return np.count_nonzero(patch_box)
def mock_pool(patch_box):
# Simple pooling: just return the patch as-is or apply simple averaging
return patch_box
# Create base epoch
base_epoch = datetime(1970, 1, 1)
# Create time points (datetime objects)
t1 = base_epoch + timedelta(days=1)
t2 = base_epoch + timedelta(days=2)
# Create patches dict mapping time to list of (i, j) coordinates
patches = {
t1: [(0, 0), (0, 1), (1, 0)],
t2: [(0, 0), (1, 1)],
}
ARGS = {
'reader': MockReader(),
'variable': 'temperature',
'patches': patches,
'patch_shape': (32, 32),
'nonzero_count_func': mock_nonzero_count,
'epoch': base_epoch,
'postproc': None,
'pool': None,
'min_nonzeros_to_include': 1,
}
- 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
|
| histogram |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/histogram.py code served (permissive licence) · get_code("ac175e372929cf52") 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 int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small observation and forecasts arrays
# observation shape: (batch, spatial_dim, timesteps, ...)
# forecasts shape: (batch, spatial_dim, timesteps, ...)
batch_size = 2
spatial_dim = 4
n_timesteps = 3
observation = np.random.randn(batch_size, spatial_dim, n_timesteps)
forecasts = np.random.randn(batch_size, spatial_dim, n_timesteps)
# Create bins for histogram
bins = np.array([-2.0, -1.0, 0.0, 1.0, 2.0])
ARGS = {
"observation": observation,
"forecasts": forecasts,
"bins": bins,
}
- 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 int — 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
|
| kl_from_standard_normal |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/models/distributions.py code served (permissive licence) · get_code("f2494184413c3b19") 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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create small tensors for mean and log_var
# These represent parameters of a variational autoencoder posterior
batch_size = 2
latent_dim = 4
mean = torch.randn(batch_size, latent_dim)
log_var = torch.randn(batch_size, latent_dim)
ARGS = {
"mean": mean,
"log_var": log_var,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| normalization |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/models/utils.py code served (permissive licence) · get_code("9c2597fbddd2688d") 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 GroupNorm. 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
from torch import nn
torch.manual_seed(0)
ARGS = {
'channels': 64,
'norm_type': 'group',
'num_groups': 32
}
- 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 GroupNorm — a GroupNorm output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GroupNorm 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
|
| patch_locations |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/features/patches.py code served (permissive licence) · get_code("339d89795e411b17") 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.
from datetime import datetime, timedelta
import numpy as np
# Construct valid arguments for patch_locations function
time_range = (
datetime(2023, 1, 1, 0, 0, 0),
datetime(2023, 1, 1, 0, 15, 0)
)
patch_box = (
(0, 3), # range for pi: 0 to 2
(0, 4) # range for pj: 0 to 3
)
patch_shape = (32, 32)
interval = timedelta(minutes=5)
epoch = (1970, 1, 1)
ARGS = {
"time_range": time_range,
"patch_box": patch_box,
"patch_shape": patch_shape,
"interval": interval,
"epoch": epoch
}
- 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
|
| rank_distribution |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/rank.py code served (permissive licence) · get_code("0fdb75e5730ec729") 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 (33,) 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 concurrent
import multiprocessing
# Create a small numpy array of ranks
# The function expects ranks to be raveled and processed
# num_forecasts is used to create bins from -0.5 to num_forecasts + 0.6
ranks = np.array([[1, 5, 3, 2],
[8, 4, 7, 6]])
num_forecasts = 32
ARGS = {
'ranks': ranks,
'num_forecasts': num_forecasts
}
- 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 (33,) — shape (33,) 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
|
| ranks_ensemble |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/rank.py code served (permissive licence) · get_code("2501a7f14e03e0b6") 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 (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
import concurrent
import multiprocessing
# Set seed for reproducibility
np.random.seed(0)
# Create small test data
# observation: shape (2, 3) - 6 elements total
observation = np.array([[1.5, 2.3, 3.1],
[4.2, 5.8, 6.4]], dtype=np.float32)
# forecasts: shape (2, 3, 4) - for each of 6 observation points, 4 ensemble members
forecasts = np.array([[[1.0, 2.0, 1.5, 3.0],
[2.1, 2.5, 3.0, 2.8],
[3.0, 3.5, 2.9, 4.0]],
[[4.0, 4.5, 4.1, 5.0],
[5.5, 6.0, 5.9, 6.5],
[6.0, 6.5, 7.0, 6.2]]], dtype=np.float32)
# noise_scale: small positive float
noise_scale = 1e-06
# rng: numpy random generator (None will use default in function)
rng = None
ARGS = {
"observation": observation,
"forecasts": forecasts,
"noise_scale": noise_scale,
"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 int, 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
|
| ranks_multiscale |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/analysis/rank.py code served (permissive licence) · get_code("11e52746c9a0795a") 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
# Set seed for reproducibility
np.random.seed(0)
# Create small test data for ranks_multiscale
# observation: spatial data (height, width)
# forecasts: spatial data with ensemble dimension (height, width, ensemble_members)
# Make dimensions distinct so we can track them
# observation shape: (4, 4) - 4x4 spatial grid
observation = np.random.randn(4, 4).astype(np.float32)
# forecasts shape: (4, 4, 3) - 4x4 spatial grid with 3 ensemble members
forecasts = np.random.randn(4, 4, 3).astype(np.float32)
ARGS = {
"observation": observation,
"forecasts": forecasts,
}
- 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
|
| sample_from_standard_normal |
Ran ran on a synthesized input |
meteoswiss/ldcast/ldcast/models/distributions.py code served (permissive licence) · get_code("baeb617f027ac19c") 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 Tensor, ndim 3, dtype family float, shape (2, 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 torch
torch.manual_seed(0)
# Create small tensors for mean and log_var
# mean: batch_size=2, latent_dim=4
mean = torch.randn(2, 4)
# log_var: same shape as mean
log_var = torch.randn(2, 4)
# num: optional parameter for expanding batch dimension
num = 3
ARGS = {
"mean": mean,
"log_var": log_var,
"num": num,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 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
|
| frac_from_file |
Not yet run unverified (harvested, no recorded run) |
meteoswiss/ldcast/ldcast/analysis/fss.py code served (permissive licence) · get_code("c566b4fa04d9a567") How it ran |
| hist_from_file |
Not yet run unverified (harvested, no recorded run) |
meteoswiss/ldcast/ldcast/analysis/histogram.py code served (permissive licence) · get_code("42439dd27eea6c3b") How it ran |
| indices_with_complete_sample |
Not yet run unverified (harvested, no recorded run) |
meteoswiss/ldcast/ldcast/features/sampling.py code served (permissive licence) · get_code("9bc4f280671d3d7d") How it ran |