SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.06635 · NeurIPS · 2020

Modeling Shared Responses in Neuroimaging Studies through MultiView ICA

Bertrand Thirion, Aapo Hyvärinen, Alexandre Gramfort, Hugo Richard, Luigi Gresele, Pierre Ablin

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2006.06635.json · badge: /api/ran/2006.06635.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hbp-brain-charting/public_protocols canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
hugorichard/multiviewica canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
add_probes Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Color/protocol.py
code served (permissive licence) · get_code("88d0ad41eb1a415c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 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
from sklearn.utils import check_random_state

# Analyze the function:
# - block_types: iterable of unique block identifiers, used in for loop
# - block_sequence: array-like, passed to np.repeat
# - stim_per_block: int, passed to np.repeat as repeat count
# - probe_proportion: float, used in multiplication (0 < probe_proportion < 1)
# - random_state: int or RandomState, passed to check_random_state

# Create small valid arguments
ARGS = {
    "block_types": ["A", "B", "C"],  # 3 distinct block types
    "block_sequence": np.array([0, 1, 2, 0, 1]),  # 5 blocks, values correspond to indices in block_types
    "stim_per_block": 2,  # repeat each block 2 times
    "probe_proportion": 0.5,  # select 50% of stimuli as probes
    "random_state": 42,  # seed for reproducibility
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_presence Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Color/paradigm_descriptors.py
code served (permissive licence) · get_code("c42ea4c4d9bf9ad1")
How it ran

Ran 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

# Setup for check_presence function
# The function takes a filename (string) and a list_of_files (list of strings)
# It checks if the filename exists in the list, and if so, appends a count to avoid duplicates

filename = "document.pdf"
list_of_files = ["document.pdf", "document.pdf", "report.txt", "document.pdf"]

ARGS = {
    "filename": filename,
    "list_of_files": list_of_files
}
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
cluster Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Color/colored_patch.py
code served (permissive licence) · get_code("9d5bc491034f54ec")
How it ran

Ran 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

# The function cluster takes:
# - xy: a 2D numpy array of shape (n_samples, n_features) containing points to cluster
# - n_circles: an integer specifying the number of clusters

# Create a small dataset with 6 points in 2D space
np.random.seed(0)
xy = np.random.randn(6, 2).astype(np.float64)

# Number of clusters to find
n_circles = 2

ARGS = {
    "xy": xy,
    "n_circles": n_circles,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_deg_to_pix Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Motion/protocol.py
code served (permissive licence) · get_code("958b17ed8c7eedaa")
How it ran

Ran 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 math import tan, radians

# Analyze the function to understand what parameters are needed:
# 1. screen_params: dict with keys 'distance', 'res_xy', 'size_xy'
# 2. exp_params_deg: dict with keys like 'field_size_x', 'field_size_y', 'dot_density', etc.

# Build screen_params - represents physical screen characteristics
screen_params = {
    'distance': 60.0,  # distance to screen in cm
    'res_xy': (1920, 1080),  # screen resolution in pixels (width, height)
    'size_xy': (53.0, 30.0)  # screen size in cm (width, height)
}

# Build exp_params_deg - experiment parameters in degrees
exp_params_deg = {
    'field_size_x': 30.0,  # field size in degrees (x)
    'field_size_y': 25.0,  # field size in degrees (y)
    'dot_density': 5.0,  # dot density per square degree
}

ARGS = {
    'screen_params': screen_params,
    'exp_params_deg': exp_params_deg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
extend_to_all_fields Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Motion/protocol.py
code served (permissive licence) · get_code("98ca0aee6ebd66d5")
How it ran

Ran 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 torch

torch.manual_seed(0)

# Create a minimal experiment parameter dictionary
exp_param = {
    'field_size_x': 100.0,
    'field_size_y': 100.0,
    'field_center_x': 0.0,
    'field_center_y': 0.0,
    'n_dots': 1000,
}

ARGS = {
    'exp_param': exp_param
}
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 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
filter_logfile Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/MathLanguage/paradigm_descriptors.py
code served (permissive licence) · get_code("8f6ceb43e2d8f09b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Create a sample logfile dataframe with the required columns
data = {
    'pm': ['999', '116', '116', '5', '7'],
    'cond': ['TTL', 'pulse1', 'pulse2', 'arithprin1', 'colorlessg2'],
    'stype': ['sound', 'sound', 'sound', 'sound', 'text'],
    'time': [1000.0, 1500.0, 2000.0, 2500.0, 3000.0]
}

logfile = pd.DataFrame(data)

ARGS = {
    'logfile': logfile
}
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 DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
formula Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Motion/protocol.py
code served (permissive licence) · get_code("be10ee44e90511f7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from math import tan, radians

torch.manual_seed(0)

ARGS = {
    "deg": 45.0,
    "distance": 10.0,
    "res": 2.0,
    "size": 100.0
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_stim_sequence Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Color/protocol.py
code served (permissive licence) · get_code("dfdf7a9562e555a1")
How it ran

Ran 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
import pandas
import tempfile
import os
from PIL import Image

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create test images
test_image_1 = Image.new('RGB', (32, 32), color='red')
test_image_2 = Image.new('RGB', (32, 32), color='blue')
test_image_3 = Image.new('RGB', (32, 32), color='green')
test_image_4 = Image.new('RGB', (32, 32), color='yellow')

# Save test images
img_path_1 = os.path.join(temp_dir, 'img1.png')
img_path_2 = os.path.join(temp_dir, 'img2.png')
img_path_3 = os.path.join(temp_dir, 'img3.png')
img_path_4 = os.path.join(temp_dir, 'img4.png')

test_image_1.save(img_path_1)
test_image_2.save(img_path_2)
test_image_3.save(img_path_3)
test_image_4.save(img_path_4)

# Create a CSV file with stimulus sequence
csv_path = os.path.join(temp_dir, 'stim_sequence.csv')
df = pandas.DataFrame({
    'block': [1, 1, 2, 2],
    'fname': [img_path_1, img_path_2, img_path_3, img_path_4]
})
df.to_csv(csv_path, index=False)

ARGS = {
    'stim_sequence_file': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, pandas — 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
make_stim_sequence_random Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Color/protocol.py
code served (permissive licence) · get_code("e4658906c6b4ade5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import pandas
import tempfile
import os

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()

ARGS = {
    'num_blocks': 4,
    'stim_per_block': 3,
    'probe_proportion': 0.33,
    'seq_fname': os.path.join(temp_dir, 'stim_sequence.csv'),
    'path': 'color_stimuli',
    'random_state': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
visual_angles_to_pixels Ran
ran on a synthesized input
hbp-brain-charting/public_protocols/Color/colored_patch.py
code served (permissive licence) · get_code("767242b4a012d931")
How it ran

Ran 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 math

# Construct arguments for visual_angles_to_pixels
ARGS = {
    "ang_ecc": 2.58,
    "ang_ele": 2.0,
    "ang_stim": 1.72,
    "screen_xy": (0.6, 0.45),
    "res_xy": (1920, 1080),
    "distance": 0.89,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
extract_desc Not yet run
unverified (harvested, no recorded run)
hbp-brain-charting/public_protocols/Motion/paradigm_descriptors.py
code served (permissive licence) · get_code("be6d1404c5e8593a")
How it ran

no invocation recorded.

get_run Not yet run
unverified (harvested, no recorded run)
hbp-brain-charting/public_protocols/MathLanguage/paradigm_descriptors.py
code served (permissive licence) · get_code("81f9ddfe6cf4b4e1")
How it ran

no invocation recorded.

multiviewica Not yet run
unverified (harvested, no recorded run)
hugorichard/multiviewica/multiviewica/_multiviewica.py
code served (permissive licence) · get_code("7e896233b31da349")
How it ran

no invocation recorded.

random_label Not yet run
unverified (harvested, no recorded run)
hbp-brain-charting/public_protocols/Color/colored_patch.py
code served (permissive licence) · get_code("b9ef0bdd82094997")
How it ran

no invocation recorded.

setup_io_files Not yet run
unverified (harvested, no recorded run)
hbp-brain-charting/public_protocols/Motion/paradigm_descriptors.py
code served (permissive licence) · get_code("982629824fdb8a2a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Group studies involving large cohorts of subjects are important to draw general conclusions about brain functional organization. However, the aggregation of data coming from multiple subjects is challenging, since it requires accounting for large variability in anatomy, functional topography and stimulus response across individuals. Data modeling is especially hard for ecologically relevant conditions such as movie watching, where the experimental setup does not imply well-defined cognitive operations. We propose a novel MultiView Independent Component Analysis (ICA) model for group studies, where data from each subject are modeled as a linear combination of shared independent sources plus noise. Contrary to most group-ICA procedures, the likelihood of the model is available in closed form. We develop an alternate quasi-Newton method for maximizing the likelihood, which is robust and converges quickly. We demonstrate the usefulness of our approach first on fMRI data, where our model demonstrates improved sensitivity in identifying common sources among subjects. Moreover, the sources recovered by our model exhibit lower between-session variability than other methods. On magnetoencephalography (MEG) data, our method yields more accurate source localization on phantom data. Applied on 200 subjects from the Cam-CAN dataset it reveals a clear sequence of evoked activity in sensor and source space.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2006.06635")
get_code_for_paper("2006.06635")
have("2006.06635")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2006.06635.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2006.06635.svg)](https://syntology.ai/paper/2006.06635)

Connect an agent — have() is free.