| balance_trial_type |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/datasets/dataloader.py code served (permissive licence) · get_code("11674efba59f4974") 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 torch
import numpy as np
torch.manual_seed(0)
np.random.seed(0)
# Construct valid arguments for balance_trial_type
# data_spikes: shape (time_steps, num_trials, num_neurons)
# We need this to be indexable by [:, idx][..., neurons_sess]
data_spikes = torch.randn(5, 10, 8) # 5 time steps, 10 trials, 8 neurons
# data_jaw: shape (time_steps, num_trials, num_sessions) or None
data_jaw = torch.randn(5, 10, 2) # 5 time steps, 10 trials, 2 sessions
# session_info: list of arrays
# session_info[0][id_sess] contains trial type labels for each trial in session id_sess
# session_info[-1][id_sess] contains neuron indices for session id_sess
# The function iterates through len(session_info) - 1 elements plus the last one
session_info = [
[np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1]), # trial types for session 0
np.array([1, 0, 1, 0, 1, 0, 1, 0, 1, 0])], # trial types for session 1
[np.array([0, 1, 2, 3, 4, 5, 6, 7, 0, 1]), # some intermediate info for session 0
np.array([2, 3, 4, 5, 6, 7, 0, 1, 2, 3])], # intermediate info for session 1
[np.arange(4), # neuron indices for session 0
np.arange(4, 8)] # neuron indices for session 1
]
# data_perc: probability distribution over trial types
# Must match the number of unique trial types in session_info[0]
data_perc = np.array([0.5, 0.5]) # 2 trial types with equal probability
ARGS = {
'data_spikes': data_spikes,
'data_jaw': data_jaw,
'session_info': session_info,
'data_perc': data_perc,
'seed': 42
}
- 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 — 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
|
| divide_max_eig |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/models/rec_weight_matrix.py code served (permissive licence) · get_code("7870c872a518ef56") 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 2, dtype family float, shape (4, 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)
# Construct arguments for divide_max_eig function
# The function expects:
# - thetas: a tensor that will be indexed and used for eigenvalue computation
# - p_exc: a float representing the proportion for exclusion
# thetas should be a square matrix (for eigvals to work)
# Using shape (4, 4) for a small square matrix
thetas = torch.randn(4, 4, dtype=torch.float32)
# p_exc should be a float between 0 and 1
p_exc = 0.5
ARGS = {
"thetas": thetas,
"p_exc": p_exc,
}
- 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 2, dtype family float, shape (4, 4) — shape (4, 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
|
| firing_rate_loss |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/losses.py code served (permissive licence) · get_code("1c3cf82188837b05") 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)
# Construct arguments for firing_rate_loss function
# Parameters: firing_rate, model_spikes, trial_onset, timestep
# firing_rate: should be convertible to tensor, represents baseline firing rates
# Looking at usage: torch.tensor(firing_rate, device=model_spikes.device)
# and then compared with model_fr which has shape after mean(0).mean(0)
firing_rate = np.array([0.5, 1.2, 0.8, 0.9])
# model_spikes: tensor that supports indexing [:trial_onset] and .mean(0).mean(0)
# Shape should be (time, batch, neurons) or similar to support two mean operations
# Using shape (10, 5, 4) - time=10, batch=5, neurons=4
model_spikes = torch.randn(10, 5, 4)
# trial_onset: integer index for slicing model_spikes
trial_onset = 3
# timestep: scalar (int or float) for division
timestep = 0.01
ARGS = {
"firing_rate": firing_rate,
"model_spikes": model_spikes,
"trial_onset": trial_onset,
"timestep": timestep,
}
- 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
|
| firing_rates |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/datasets/pseudodata.py code served (permissive licence) · get_code("8056c8ec51b1015a") 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 (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
np.random.seed(0)
ARGS = {
'num_neurons': 10,
'average': 5.0,
'std': 2.0,
'mode': 'log_normal'
}
- 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 (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
|
| forward_backward_split |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/loss_splitter.py code served (permissive licence) · get_code("ff57b8451376888d") 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 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 torch
import torch.nn as nn
torch.manual_seed(0)
# Create small tensors for the forward and backward passes
z_forward = torch.randn(2, 4, requires_grad=True)
z_backward = torch.randn(2, 4, requires_grad=True)
ARGS = {
"z_forward": z_forward,
"z_backward": z_backward,
}
- 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 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
|
| keep_trial_types_behaviour |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/datasets/dataloader.py code served (permissive licence) · get_code("8e8d4e11a5c554cf") 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 torch
import numpy as np
torch.manual_seed(0)
# Construct minimal valid arguments for keep_trial_types_behaviour
# data_spikes: shape (batch, trials, neurons) - used with indexing [keep[session]]
data_spikes = torch.randn(2, 5, 4)
# jaw: shape (batch, trials, sessions) - can be None or tensor, used with indexing
jaw = torch.randn(2, 5, 3)
# rewrite_spikes: shape (batch, max_trials, neurons) - tensor that gets rewritten
rewrite_spikes = torch.zeros(2, 5, 4)
# rewrite_jaw: shape (batch, max_trials, sessions) - tensor that gets rewritten
rewrite_jaw = torch.zeros(2, 5, 3)
# session_info: list-like structure
# session_info[0] = list of trial type arrays per session
# session_info[1] = list of some data per session
# session_info[2] = list of some data per session
# session_info[3] = list of neuron indices per session (last element)
session_info = [
[np.array([0, 1, 0, 1, 0]), np.array([1, 0, 1, 0, 1])], # trial types per session
[np.array([10, 11, 12, 13, 14]), np.array([20, 21, 22, 23, 24])], # data per session
[np.array([100, 101, 102, 103, 104]), np.array([200, 201, 202, 203, 204])], # data per session
[np.array([0, 1, 2, 3]), np.array([0, 1, 2, 3])] # neuron indices per session
]
# trial_types: list of trial types to keep
trial_types = [0, 1]
ARGS = {
'data_spikes': data_spikes,
'jaw': jaw,
'rewrite_spikes': rewrite_spikes,
'rewrite_jaw': rewrite_jaw,
'session_info': session_info,
'trial_types': trial_types
}
- 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 — 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
|
| load_training_opt |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/config.py code served (permissive licence) · get_code("bd02845f0343ce95") 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 SimpleNamespace. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
import os
import json
import tempfile
from types import SimpleNamespace
torch.manual_seed(0)
# Create a temporary directory to serve as the log path
temp_dir = tempfile.mkdtemp()
# Create a minimal opt.json file in the temp directory
opt_dict = {
'datapath': './datasets',
'device': 'cpu',
'log_every_n_steps': 50,
'batch_size': 50,
'lr': 0.0003,
'w_decay': 0.01,
'l1_decay': 0.01,
'n_units': 300,
'n_steps': 100000,
'start': -0.1,
'stop': 0.5,
'n_stim_amp': 4,
'trial_onset': 1.0,
'stim_duration': 0.01,
'input_f0': 2.0,
'dt': 1.0,
'n_rnn_in': 128,
'scale_fun': 'log',
'stim_valance': 5,
'coeff_firing_rate_distro_reg': 0.0,
'coeff_loss': 1.0,
'input_seed': 0,
'noise_level_list': [0.16, 0.16, 0.16],
'tau_list': [10.0, 10.0, 10.0],
'tau_adaptation': 144.0,
'areas': ['wS1', 'mPFC', 'tjM1'],
'thalamic_delay': 0.005,
'n_delay': 5,
'inter_delay': 5,
'stim': [1, 2, 3, 4],
'spike_filter_std': 5,
'verbose': 1,
'hidden_perc': 0.0,
'exc_inh_tau_mem_ratio': 2.0,
'lsnn_version': 'simplified',
'reaction_time_limits': None,
'rec_groups': 1,
'seed': 0,
'loss_neuron_wise': 0,
'loss_trial_wise': 0,
'coeff_trial_loss': 1,
'loss_firing_rate': 1,
'simple_loss': 0,
'restrict_inter_area_inh': 1,
'prop_adaptive': 0.0,
'spike_function': 'bernoulli',
'train_bias': False,
'train_noise_bias': False,
'bias_in_mem': True,
'trial_offset': False,
'latent_space': 2,
'train_adaptation': False,
'train_delays': False,
'trial_matching': False,
'p_exc': 0.85,
'early_stop': 2000,
'conductance_based': False,
'trial_loss_area_specific': True,
'geometric_loss': False,
'resample': 2,
'motor_areas': [],
'jaw_delay': 40,
'jaw_min_delay': 12,
'tau_jaw': 100,
'trial_types': [0, 1, 2, 3],
'temperature': 7.5,
'latent_new': False,
'with_behaviour': False,
'z_score': True,
'with_task_splitter': False,
'jaw_open_loop': False,
'jaw_tongue': 1,
'jaw_nonlinear': False,
'scaling_jaw_in_model': False,
'balance_trial_types': False,
't_trial_gan': True,
'loss_trial_matched_mle': False,
'use_logits': False,
'stim_onsets': [0, 1],
'p_exc_in': 0.8,
'v_rest': 0,
'thr': 0.1,
'trial_offset_bound': False,
'v_rest_bound': False,
'pop_per_area': 1,
}
# Write opt.json to temp directory
with open(os.path.join(temp_dir, 'opt.json'), 'w') as f:
json.dump(opt_dict, f)
ARGS = {
'log_path': temp_dir,
}
- 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 SimpleNamespace — a SimpleNamespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNamespace output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_kernels |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/datasets/pseudodata.py code served (permissive licence) · get_code("f74304bd98138a07") 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 (400,) 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
ARGS = {
"tau_rise": 0.01,
"tau_fall": 0.05,
"timestep": 0.001,
}
- 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 (400,) — shape (400,) 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
|
| make_onset_timeseries |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/datasets/pseudodata.py code served (permissive licence) · get_code("d21ee6be74d717ad") 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 (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
ARGS = {
"time": 5,
"length": 10
}
- 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 (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
|
| norm_squared |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/loss_splitter.py code served (permissive licence) · get_code("18eb4144ecf9f5a0") 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 2, dtype family float, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# The function norm_squared takes a single parameter 'a' and:
# 1. Squares it with torch.square(a)
# 2. Sums along dimension 1 with keepdim=True
# So 'a' should be a 2D tensor where dimension 1 represents features to sum
a = torch.randn(2, 4)
ARGS = {
"a": a
}
- 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 2, dtype family float, shape (2, 1) — shape (2, 1) 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
|
| num_areas |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/model_loader.py code served (permissive licence) · get_code("7139dbc0132df4af") 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 torch
import torch.nn as nn
torch.manual_seed(0)
class DummyRSNN(nn.Module):
def __init__(self):
super().__init__()
# area_index should be a tensor mapping neuron indices to areas
# We'll create a small tensor with area assignments
self.area_index = torch.tensor([0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2], dtype=torch.long)
class DummyModel(nn.Module):
def __init__(self):
super().__init__()
self.rsnn = DummyRSNN()
# sessions is a tensor that identifies which session each neuron belongs to
# We'll use shape (12,) to match area_index length
self.sessions = torch.tensor([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=torch.long)
model = DummyModel()
# session parameter should be a tensor indicating session membership for each element
# It should have the same length as model.rsnn.area_index
session = torch.tensor([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=torch.long)
ARGS = {
"model": model,
"session": session,
}
- 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 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
|
| post_synaptic_weight |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/models/rec_weight_matrix.py code served (permissive licence) · get_code("91545f885a44942c") 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 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 torch
torch.manual_seed(0)
# thetas: shape (batch, n_neurons) where neurons are split into excitatory and inhibitory
# p_exc: proportion of neurons that are excitatory (float between 0 and 1)
thetas = torch.randn(2, 4) # batch=2, n_neurons=4
p_exc = 0.5 # 50% excitatory, 50% inhibitory
ARGS = {
"thetas": thetas,
"p_exc": p_exc,
}
- 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 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
|
| restricted_inter_inh_thetas_init |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/models/rec_weight_matrix.py code served (permissive licence) · get_code("f73b206cea5b28f7") 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 2, dtype family float, shape (6, 6) 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)
# Construct arguments for restricted_inter_inh_thetas_init
n_neurons = 6
p_exc = 0.7 # 70% excitatory neurons
area_index = torch.tensor([0, 0, 0, 1, 1, 1]) # 2 areas with 3 neurons each
eps = 0.1
ARGS = {
"n_neurons": n_neurons,
"p_exc": p_exc,
"area_index": area_index,
"eps": eps,
}
- 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 2, dtype family float, shape (6, 6) — shape (6, 6) 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
|
| scale_function |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/config.py code served (permissive licence) · get_code("4eff8fc364ab552d") 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 Opt. 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.
class Opt:
def __init__(self, scale_fun, n_stim_amp):
self.scale_fun = scale_fun
self.n_stim_amp = n_stim_amp
ARGS = {
'opt': Opt(scale_fun='sigmoid', n_stim_amp=10)
}
- 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 Opt — a Opt output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Opt 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
|
| truncated_proj_a_on_b |
Ran ran on a synthesized input |
epfl-lcn/pub-sourmpis2023-neurips/infopath/loss_splitter.py code served (permissive licence) · get_code("8a89f77bfb5bb95c") 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 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 torch
torch.manual_seed(0)
# Analyze the function:
# - Takes parameters: a, b, epsilon (with default)
# - a and b are tensors used with:
# * torch.all() check
# * arithmetic operations (* / +, -)
# * .sum(1, keepdim=True) - so they need at least 2 dimensions
# * torch.relu, torch.sqrt
# - epsilon is a float used in .clip(min=epsilon)
# Create small tensors with batch size 2 and feature dimension 4
a = torch.randn(2, 4)
b = torch.randn(2, 4)
epsilon = 1e-16
ARGS = {
"a": a,
"b": b,
"epsilon": epsilon,
}
- 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 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
|
| load_opt_old |
Not yet run unverified (harvested, no recorded run) |
epfl-lcn/pub-sourmpis2023-neurips/infopath/config.py code served (permissive licence) · get_code("bb0bda1c2df02d4a") How it ran |