Low-dimensional and optimised representations of high-level information in the expert brain.
30 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 40 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
- [1] § Methods › Regions of Interest (ROIs) ↔ chess-supplementary/subcortical-rois/01_prepare_atlas.py, lines 1 to 55 · score 0.93 · volumetric MNI space, CAB NP atlas, glasser hcp, bilateral masks, subcortical structures, parcels · block
oscr:b:84KYTYDAR8JF2-B· Report a mismatch - [2] § Results › What is represented: perceptual to relational content › Behavioural representational geometry ↔ chess-supplementary/task-engagement/13_quantify_preference_drivers.py, lines 1 to 81 · score 0.92 · edge density, image entropy, uniquely predicted, board preferences, explained variance, checkmate status · block
oscr:b:XR7B7XMAMK3VJ-J· Report a mismatch - [3] § Results › Skill-gradient analysis ↔ chess-supplementary/skill-gradient/11_skill_gradient_group.py, lines 1 to 53 · score 0.88 · chess skill, RSA model fit, neural metrics, Elo rating, move accuracy, fMRI · block
oscr:b:DRFN757GA8K2G-N· Report a mismatch - [4] § Results › Where information is encoded: domain-general networks › Univariate networks involvement › Multivariate representational shift ↔ common/neuro_utils.py, lines 1032 to 1177 · score 0.87 · temporo parieto occipital, posterior cingulate, superior parietal, dLPFC, right hemisphere, VVS · block
oscr:b:NE66WCW6PXGDZ-Y· Report a mismatch - [5] § Results › Where information is encoded: domain-general networks › Univariate networks involvement › Multivariate representational shift ↔ common/neuro_utils.py, lines 1031 to 1176 · score 0.87 · temporo parieto occipital, posterior cingulate, superior parietal, dLPFC, right hemisphere, VVS · block
oscr:b:APVAWEKPGMF4H-Y· Report a mismatch - [6] § Methods › Participation ratio ↔ analyses/manifold/models.py, lines 262 to 376 · score 0.86 · cross validated accuracy, training fold, logistic regression, Classification accuracy, shuffled, stratified · block
oscr:b:SY86KMXKD6P2D-Q· Report a mismatch - [7] § Results › Where information is encoded: domain-general networks › Univariate networks involvement ↔ common/neuro_utils.py, lines 1032 to 1177 · score 0.84 · temporo parieto occipital, posterior cingulate, superior parietal, dLPFC, VVS, PCC · block
oscr:b:NE66WCW6PXGDZ-Y· Report a mismatch - [8] § Results › Where information is encoded: domain-general networks › Univariate networks involvement ↔ common/neuro_utils.py, lines 1031 to 1176 · score 0.84 · temporo parieto occipital, posterior cingulate, superior parietal, dLPFC, VVS, PCC · block
oscr:b:APVAWEKPGMF4H-Y· Report a mismatch - [9] § Results › What is represented: perceptual to relational content › Neural representational geometry ↔ chess-supplementary/rsa-rois/81_table_rsa_rois.py, lines 1 to 78 · score 0.80 · scipy.stats.ttest_ind, theoretical model RDMs, equal_var, Benjamini Hochberg, neural RDMs, confidence intervals · block
oscr:b:FSEHEPZ1895CB-E· Report a mismatch - [10] § Results › What is represented: perceptual to relational content › Neural representational geometry ↔ chess-supplementary/mvpa-finer/81_table_mvpa_finer_rsa.py, lines 1 to 79 · score 0.79 · scipy.stats.ttest_ind, theoretical model RDMs, equal_var, Benjamini Hochberg, neural RDMs, confidence intervals · block
oscr:b:8XX8KCCTVC93S-E· Report a mismatch - [11] § Methods › Representational similarity analysis (RSA) › Behavioural representational similarity analysis ↔ chess-behavioral/81_table_behavioral_correlations.py, lines 1 to 63 · score 0.77 · correlation coefficient, Benjamini Hochberg, discovery rate, behavioural RDM, confidence intervals, model RDM · block
oscr:b:QWM9M9PRAGG0X-K· Report a mismatch - [12] § Methods › Meta-analytic correlation analysis › RSA maps preparation ↔ chess-neurosynth/12_rsa_neurosynth.py, lines 200 to 274 · score 0.77 · general linear model, correlation maps, RSA model, arctanh, intercept, Fisher · block
oscr:b:032B5SF788RJ6-3· Report a mismatch - [13] § Methods › Meta-analytic correlation analysis › Neurosynth term maps ↔ common/constants.py, lines 207 to 264 · score 0.77 · Memory retrieval, language network, fine grained, Working memory, Navigation, configurations · block
oscr:b:T5B4YP123CEAX-Z· Report a mismatch - [14] § Results › How representations are structured: compressed geometry › Participant classification based on dimensionality profiles ↔ chess-manifold/91_plot_manifold_panels.py, lines 1 to 58 · score 0.76 · ROI PR matrix, logistic regression, decision boundary, PCA projection, ROI space, Heatmap · block
oscr:b:GZ8TQ35E0C4ZR-X· Report a mismatch - [15] § Results › How representations are structured: compressed geometry › Participant classification based on dimensionality profiles ↔ chess-manifold/91_plot_manifold_panels.py, lines 1 to 58 · score 0.76 · ROI PR matrix, logistic regression, decision boundary, PCA projection, ROI space, Heatmap · block
oscr:b:FRPNWM1G0GJ2A-G· Report a mismatch - [16] § Methods › Representational similarity analysis (RSA) › Behavioural representational similarity analysis ↔ common/rsa_utils.py, lines 81 to 151 · score 0.76 · lower triangles, correlation coefficient, Pearson correlations, confidence intervals, behavioural RDM, model RDM · block
oscr:b:PRDTZX94MV3SW-A· Report a mismatch - [17] § Results › What is represented: perceptual to relational content › Behavioural representational geometry ↔ chess-behavioral/81_table_behavioral_correlations.py, lines 1 to 63 · score 0.75 · behavioural Representational Dissimilari, Benjamini Hochberg, checkmate status, behavioural RSA, behavioural RDM, confidence intervals · block
oscr:b:QWM9M9PRAGG0X-K· Report a mismatch - [18] § Methods › Participation ratio ↔ chess-supplementary/run-matching/11_pr_run_matched.py, lines 64 to 149 · score 0.72 · permuted, exceeding, shuffled, recomputed, stratified, logistic · block
oscr:b:8Q1CGA87C4Q72-R· Report a mismatch - [19] § Results › What is represented: perceptual to relational content › Behavioural representational geometry ↔ chess-behavioral/91_plot_behavioral_panels.py, lines 1 to 59 · score 0.71 · Expert directional preference, MDS embedding, selection frequencies, behavioural RDMs, matrices · block
oscr:b:1GYYFJSS07M4H-L· Report a mismatch - [20] § Results › What is represented: perceptual to relational content › Behavioural representational geometry ↔ chess-behavioral/91_plot_behavioral_panels.py, lines 1 to 59 · score 0.71 · Expert directional preference, MDS embedding, selection frequencies, behavioural RDMs, matrices · block
oscr:b:WQD9R1D5VGXXX-Y· Report a mismatch - [21] § Methods › Representational similarity analysis (RSA) › Behavioural representational similarity analysis ↔ chess-behavioral/91_plot_behavioral_panels.py, lines 1 to 59 · score 0.71 · directional preference matrix, pairwise preference, pairwise comparisons, behavioural RDM, symmetric, raw · block
oscr:b:1GYYFJSS07M4H-L· Report a mismatch - [22] § Methods › Representational similarity analysis (RSA) › Behavioural representational similarity analysis ↔ chess-behavioral/91_plot_behavioral_panels.py, lines 1 to 59 · score 0.71 · directional preference matrix, pairwise preference, pairwise comparisons, behavioural RDM, symmetric, raw · block
oscr:b:WQD9R1D5VGXXX-Y· Report a mismatch - [23] § Methods › Participation ratio ↔ analyses/manifold/models.py, lines 27 to 89 · score 0.70 · logistic regression classifier, distinguishing Experts, cross validation, trained, weight, PR · block
oscr:b:AB6AY8273QG3K-9· Report a mismatch - [24] § Results › Where information is encoded: domain-general networks ↔ chess-supplementary/neurosynth-terms/91_plot_neurosynth_terms.py, lines 221 to 275 · score 0.70 · Language Network, Memory Retrieval, Neurosynth term, Working Memory, Navigation, maps · block
oscr:b:6P5DVA4R95318-D· Report a mismatch - [25] § Results › Where information is encoded: domain-general networks ↔ common/constants.py, lines 207 to 264 · score 0.69 · Language Network, Memory Retrieval, Working Memory, Neurosynth term, Navigation, chess · block
oscr:b:T5B4YP123CEAX-Z· Report a mismatch - [26] § Methods › Regions of Interest (ROIs) ↔ chess-supplementary/subcortical-rois/11_subcortical_group_rsa.py, lines 1 to 68 · score 0.69 · CAB NP atlas, subcortical structures, exploratory, parcellation, bilateral, Glasser · block
oscr:b:4CM85JP2G2B2N-O· Report a mismatch - [27] § Methods › Meta-analytic correlation analysis › Neurosynth term maps ↔ chess-supplementary/neurosynth-terms/91_plot_neurosynth_terms.py, lines 221 to 275 · score 0.69 · Memory retrieval, language network, Working memory, Navigation, Neurosynth, maps · block
oscr:b:6P5DVA4R95318-D· Report a mismatch - [28] § Methods › Representational similarity analysis (RSA) › fMRI representational similarity analysis › RSA on Regions of Interest ↔ chess-supplementary/run-matching/01_roi_rsa_run_matched.m, lines 72 to 210 · score 0.68 · cosmo target dsm, neural RDM, model RDM, corr, Pearson, regressor · block
oscr:b:3Y2ZA8Q6YJMX4-B· Report a mismatch - [29] § Results › What is represented: perceptual to relational content › Behavioural representational geometry ↔ common/rsa_utils.py, lines 81 to 151 · score 0.68 · lower triangle, Pearson correlations, behavioural RSA, confidence intervals, behavioural RDM, model RDM · block
oscr:b:PRDTZX94MV3SW-A· Report a mismatch - [30] § Methods › Participation ratio ↔ analyses/manifold/pr_computation.py, lines 26 to 108 · score 0.65 · evenly distributed, effective dimensionality, Participation Ratio, components, PR, variance · block
oscr:b:CQ34VVD3SJJDZ-Z· Report a mismatch - [31] § Methods › Representational similarity analysis (RSA) › fMRI representational similarity analysis ↔ chess-supplementary/rdm-intercorrelation/81_table_rdm_intercorr.py, lines 1 to 78 · score 0.64 · pairwise correlation, dissimilarity matrices, checkmate status, Model RDMs, variables, Theoretical · block
oscr:b:QC4F7GVGSBTBN-I· Report a mismatch - [32] § Methods › Representational similarity analysis (RSA) › fMRI representational similarity analysis › Whole-brain Searchlight RSA ↔ chess-mvpa/04_searchlight_rsa.m, lines 204 to 261 · score 0.64 · searchlight RSA, correlation distance, model RDM, neighbourhoods, Pearson, voxel · block
oscr:b:FZYG9QQPN5SAR-Q· Report a mismatch - [33] § Results › Where information is encoded: domain-general networks › Univariate networks involvement › Multivariate representational shift ↔ chess-neurosynth/81_table_neurosynth_univariate.py, lines 1 to 57 · score 0.63 · bootstrap confidence intervals, activation patterns, Meta Analytic, FDR corrected, univariate, Neurosynth · block
oscr:b:4EWPBQ3WBWB1J-A· Report a mismatch - [34] § Results › What is represented: perceptual to relational content › Behavioural representational geometry ↔ chess-supplementary/behavioral-reliability/12_marginal_split_half.py, lines 1 to 80 · score 0.63 · split half reliability, pairwise comparison, marginal, status, behavioural, preferences · block
oscr:b:C8ZTBH3K0H07J-I· Report a mismatch - [35] § Methods › fMRI univariate analysis ↔ chess-neurosynth/12_rsa_neurosynth.py, lines 200 to 274 · score 0.62 · General Linear Model, map correlations, smoothed, mm, neurosynth, GLM · block
oscr:b:032B5SF788RJ6-3· Report a mismatch - [36] § Results › How representations are structured: compressed geometry › Participant classification based on dimensionality profiles ↔ analyses/manifold/models.py, lines 262 to 376 · score 0.62 · cross validated accuracy, fold CV, stratified, permutation, PCA, classifier · block
oscr:b:SY86KMXKD6P2D-Q· Report a mismatch - [37] § Results › Where information is encoded: domain-general networks › Univariate networks involvement › Multivariate representational shift ↔ chess-neurosynth/82_table_neurosynth_rsa.py, lines 1 to 48 · score 0.62 · bootstrap confidence intervals, RSA searchlight, Meta Analytic, FDR corrected, Neurosynth, cognitive · block
oscr:b:B99CXHS872WKR-0· Report a mismatch - [38] § Methods › Representational similarity analysis (RSA) › fMRI representational similarity analysis › RSA on Regions of Interest ↔ chess-supplementary/mvpa-finer/01_roi_decoding_fine.m, lines 84 to 217 · score 0.62 · cosmo target dsm, corresponding model RDM, regressor, RSA, ROI, correlated · block
oscr:b:PHGR3G8HVJTT6-K· Report a mismatch - [39] § Methods › Representational similarity analysis (RSA) › fMRI representational similarity analysis › Whole-brain Searchlight RSA ↔ common/constants.py, lines 162 to 205 · score 0.61 · brain searchlight RSA, Neurosynth term maps, model RDM, matched, ROIs · block
oscr:b:WYHB23Y6C7KZM-4· Report a mismatch - [40] § Methods › Software ↔ common/chess_config.m, the whole file · a weak match · score 0.61 · Eye tracking, fMRIPrep, MATLAB, preprocessing, manifold, GLM · block
oscr:b:K13K6YN1R2P4D-H· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 379 lines · 13 KB · MIT · 3 matches
- """
- Machine learning utilities for expert vs novice classification.
- This module provides functions for training classifiers to distinguish between
- expert and novice chess players based on their neural participation ratios,
- and for visualizing the results using PCA.
- Functions
- ---------
- train_logreg_on_pr : Train logistic regression on PR features
- compute_pca_2d : Compute 2D PCA projection for visualization
- compute_2d_decision_boundary : Precompute decision boundary grid for plotting
- """
- import logging
- import numpy as np
- import pandas as pd
- from typing import Tuple, Dict, Any
- from sklearn.linear_model import LogisticRegression
- from sklearn.preprocessing import StandardScaler
- from sklearn.decomposition import PCA
- from sklearn.model_selection import StratifiedKFold, cross_val_score, permutation_test_score
- logger = logging.getLogger(__name__)
- def train_logreg_on_pr(
- pr_df: pd.DataFrame,
- participants: pd.DataFrame,
- roi_labels: np.ndarray,
- random_seed: int = 42
- ) -> Tuple[LogisticRegression, StandardScaler, np.ndarray, np.ndarray]:
- """
- Train a logistic regression classifier to distinguish experts from novices.
- The classifier uses PR values across all ROIs as features. Feature weights
- indicate which ROIs are most discriminative between groups.
- Parameters
- ----------
- pr_df : pd.DataFrame
- Long-format PR results (columns: subject_id, ROI_Label, PR, n_voxels)
- participants : pd.DataFrame
- Participant metadata (columns: participant_id, group)
- roi_labels : np.ndarray
- ROI labels defining feature order
- random_seed : int, default=42
- Random seed for reproducibility
- Returns
- -------
- clf : LogisticRegression
- Trained classifier (clf.coef_ contains feature importance weights)
- scaler : StandardScaler
- Fitted scaler for transforming new data
- all_pr_scaled : np.ndarray
- Standardized PR data (shape: n_subjects × n_rois)
- labels : np.ndarray
- Binary labels (1=expert, 0=novice)
- Notes
- -----
- Data is standardized before training because different ROIs have different
- PR scales. Without standardization, high-variance ROIs would dominate.
- The classifier is trained on ALL data (no cross-validation) because the goal
- is feature importance analysis, not generalization performance.
- """
- logger.info("Training logistic regression on PR features (expert vs novice)...")
- all_pr, labels, n_expert, n_novice = build_feature_matrix(
- pr_df,
- participants,
- roi_labels,
- )
- # Standardize features
- scaler = StandardScaler()
- all_pr_scaled = scaler.fit_transform(all_pr)
- # Train classifier
- clf = LogisticRegression(random_state=random_seed, max_iter=1000)
- clf.fit(all_pr_scaled, labels)
- logger.info(f" Trained on {len(all_pr)} subjects "
- f"({n_expert} experts, {n_novice} novices)")
- logger.info(f" Using {len(roi_labels)} ROI features")
- return clf, scaler, all_pr_scaled, labels
- def compute_pca_2d(
- data_scaled: np.ndarray,
- n_components: int = 2,
- random_seed: int = 42
- ) -> Tuple[PCA, np.ndarray, np.ndarray]:
- """
- Compute PCA embedding for 2D visualization.
- PCA finds directions of maximum variance and projects the high-dimensional
- PR data into 2D for visualization.
- Parameters
- ----------
- data_scaled : np.ndarray
- Standardized data (shape: n_subjects × n_features)
- n_components : int, default=2
- Number of components (2 for 2D visualization)
- random_seed : int, default=42
- Random seed for reproducibility
- Returns
- -------
- pca : PCA
- Fitted PCA object (pca.components_ shows ROI loadings on each PC)
- coords_2d : np.ndarray
- 2D coordinates (shape: n_subjects × 2)
- explained_variance_pct : np.ndarray
- Percentage of variance explained by each PC
- Notes
- -----
- PC1 captures the direction of maximum variance, PC2 captures the second-
- maximum variance orthogonal to PC1. Together they often capture major
- group differences.
- """
- logger.info("Computing 2D PCA embedding...")
- # Fit PCA and transform data
- pca = PCA(n_components=n_components, random_state=random_seed)
- coords_2d = pca.fit_transform(data_scaled)
- # Get variance explained
- explained_variance_pct = (pca.explained_variance_ratio_ * 100).astype(float)
- logger.info(f" PC1 explains {explained_variance_pct[0]:.1f}% variance")
- logger.info(f" PC2 explains {explained_variance_pct[1]:.1f}% variance")
- return pca, coords_2d, explained_variance_pct
- def compute_2d_decision_boundary(
- coords_2d: np.ndarray,
- labels: np.ndarray,
- random_seed: int = 42,
- grid_resolution: int = 200
- ) -> Tuple[np.ndarray, np.ndarray, np.ndarray]:
- """
- Precompute decision boundary grid for 2D visualization.
- Trains a simple classifier in 2D space and evaluates it on a dense grid,
- creating a smooth decision boundary for plotting.
- Parameters
- ----------
- coords_2d : np.ndarray
- 2D coordinates from PCA (shape: n_subjects × 2)
- labels : np.ndarray
- Binary labels (1=expert, 0=novice)
- random_seed : int, default=42
- Random seed for reproducibility
- grid_resolution : int, default=200
- Grid points per axis (higher = smoother boundary)
- Returns
- -------
- xx : np.ndarray
- X-coordinates of grid (shape: grid_resolution × grid_resolution)
- yy : np.ndarray
- Y-coordinates of grid (shape: grid_resolution × grid_resolution)
- Z : np.ndarray
- Predicted class at each grid point (for contour plotting)
- Notes
- -----
- The boundary shows how well groups separate in the 2D PCA space. It's for
- visualization only - actual group discrimination happens in full-dimensional
- space (see train_logreg_on_pr).
- """
- logger.info("Computing 2D decision boundary for visualization...")
- # Train simple classifier in 2D
- clf_2d = LogisticRegression(random_state=random_seed, max_iter=1000)
- clf_2d.fit(coords_2d, labels)
- # Create grid with 1-unit margins
- x_min, x_max = coords_2d[:, 0].min() - 1, coords_2d[:, 0].max() + 1
- y_min, y_max = coords_2d[:, 1].min() - 1, coords_2d[:, 1].max() + 1
- xx, yy = np.meshgrid(
- np.linspace(x_min, x_max, grid_resolution),
- np.linspace(y_min, y_max, grid_resolution)
- )
- # Predict at each grid point
- Z = clf_2d.predict(np.c_[xx.ravel(), yy.ravel()]).reshape(xx.shape)
- logger.info(f" Computed {grid_resolution}×{grid_resolution} grid")
- return xx, yy, Z
- __all__ = [
- 'train_logreg_on_pr',
- 'compute_pca_2d',
- 'compute_2d_decision_boundary',
- ]
- def build_feature_matrix(
- pr_df: pd.DataFrame,
- participants: pd.DataFrame,
- roi_labels: np.ndarray,
- ) -> Tuple[np.ndarray, np.ndarray, int, int]:
- """
- Public API to construct feature matrix X (subjects × ROIs) and labels y.
- Parameters
- ----------
- pr_df : pd.DataFrame
- Long-format PR results (columns: subject_id, ROI_Label, PR)
- participants : pd.DataFrame
- Participant metadata (columns: participant_id, group)
- roi_labels : np.ndarray
- ROI labels defining column order
- Returns
- -------
- X : np.ndarray
- Feature matrix ordered by [experts, novices]
- y : np.ndarray
- Binary labels (1=expert, 0=novice)
- n_expert : int
- Number of expert subjects
- n_novice : int
- Number of novice subjects
- """
- from common.bids_utils import merge_group_labels
- from .utils import ensure_roi_order
- pr_with_group = merge_group_labels(pr_df, participants, subject_col='subject_id')
- expert_pr = pr_with_group[pr_with_group['group'] == 'expert'].pivot(
- index='subject_id',
- columns='ROI_Label',
- values='PR'
- )
- expert_pr = ensure_roi_order(expert_pr, roi_labels)[roi_labels].values
- novice_pr = pr_with_group[pr_with_group['group'] == 'novice'].pivot(
- index='subject_id',
- columns='ROI_Label',
- values='PR'
- )
- novice_pr = ensure_roi_order(novice_pr, roi_labels)[roi_labels].values
- X = np.vstack([expert_pr, novice_pr])
- y = np.array([1] * len(expert_pr) + [0] * len(novice_pr))
- return X, y, len(expert_pr), len(novice_pr)
- def evaluate_classification_significance(
- pr_df: pd.DataFrame,
- participants: pd.DataFrame,
- roi_labels: np.ndarray,
- space: str = 'roi',
- random_seed: int = 42,
- n_splits: int = None,
- n_permutations: int = 1000,
- ) -> Dict[str, Any]:
- """
- Evaluate whether classification accuracy exceeds chance using CV and permutations.
- Methods (for papers)
- --------------------
- Feature construction: For each subject we build a feature vector from PR
- values across ROIs with a binary label (1=expert, 0=novice). We use a
- scikit‑learn Pipeline with StandardScaler, and for the 2D analysis we add
- PCA(n_components=2) inside the pipeline so PCA is fit only on training folds.
- Cross‑validation: We estimate performance with stratified K‑fold CV (K is
- the largest feasible up to 5 given class sizes). The classifier is logistic
- regression (max_iter=1000). We report the mean accuracy across folds and
- the standard deviation across folds as a descriptive spread.
- Inference via permutation: Statistical significance for above‑chance
- performance is assessed with a label‑permutation test using
- `permutation_test_score`, run with the same CV and full pipeline. This
- yields an assumption‑light p‑value for the null that accuracy equals chance
- (0.5 for balanced classes).
- Parameters
- ----------
- pr_df : pd.DataFrame
- Long-format PR results.
- participants : pd.DataFrame
- Participant metadata with group labels.
- roi_labels : np.ndarray
- ROI labels defining feature order.
- space : {'roi', 'pca2d'}, default='roi'
- Feature space to evaluate. 'roi' uses all ROIs as features; 'pca2d'
- uses a pipeline with PCA(2) fit within each CV fold.
- random_seed : int, default=42
- Random seed for reproducibility.
- n_splits : int or None, default=None
- Number of CV folds (StratifiedKFold). If None, chooses the maximum
- feasible up to 5 given class counts.
- n_permutations : int, default=1000
- Number of permutations for permutation test.
- Returns
- -------
- dict
- Dictionary with keys:
- - 'space': 'roi' or 'pca2d'
- - 'cv_accuracy_mean', 'cv_accuracy_std'
- - 'n_splits', 'n_subjects', 'n_experts', 'n_novices'
- - 'perm_pvalue', 'perm_null_mean', 'perm_null_std', 'n_permutations'
- """
- from sklearn.pipeline import Pipeline
- logger.info(f"Evaluating classification significance in '{space}' space...")
- X, y, n_expert, n_novice = build_feature_matrix(pr_df, participants, roi_labels)
- n_subjects = X.shape[0]
- # Determine feasible number of splits
- if n_splits is None:
- max_splits = max(2, min(5, n_expert, n_novice))
- n_splits = max_splits
- if n_splits < 2 or n_splits > min(n_expert, n_novice):
- n_splits = min(max(2, n_splits), n_expert, n_novice)
- cv = StratifiedKFold(n_splits=n_splits, shuffle=True, random_state=random_seed)
- steps = [('scaler', StandardScaler())]
- if space.lower() in ['pca2d', 'pca_2d', '2d', 'pca']:
- steps.append(('pca', PCA(n_components=2, random_state=random_seed)))
- steps.append(('clf', LogisticRegression(random_state=random_seed, max_iter=1000)))
- estimator = Pipeline(steps)
- # Cross-validated accuracy (mean ± std across folds)
- cv_scores = cross_val_score(estimator, X, y, cv=cv, scoring='accuracy')
- cv_acc_mean = float(np.mean(cv_scores))
- cv_acc_std = float(np.std(cv_scores, ddof=1)) if len(cv_scores) > 1 else 0.0
- # Permutation test (scikit-learn handles CV internally)
- score, perm_scores, pvalue = permutation_test_score(
- estimator, X, y,
- scoring='accuracy',
- cv=cv,
- n_permutations=n_permutations,
- random_state=random_seed,
- n_jobs=None,
- )
- results = {
- 'space': 'pca2d' if ('pca' in [name for name, _ in steps]) else 'roi',
- 'cv_accuracy_mean': cv_acc_mean,
- 'cv_accuracy_std': cv_acc_std,
- 'n_splits': int(n_splits),
- 'n_subjects': int(n_subjects),
- 'n_experts': int(n_expert),
- 'n_novices': int(n_novice),
- 'perm_pvalue': float(pvalue),
- 'perm_null_mean': float(np.mean(perm_scores)),
- 'perm_null_std': float(np.std(perm_scores, ddof=1)) if len(perm_scores) > 1 else 0.0,
- 'n_permutations': int(n_permutations),
- }
- logger.info(
- f" CV accuracy: {cv_acc_mean:.3f} ± {cv_acc_std:.3f} (n_splits={n_splits})\n"
- f" Permutation p={pvalue:.4g} (null mean={np.mean(perm_scores):.3f})"
- )
- return results
- __all__.extend(['evaluate_classification_significance', 'build_feature_matrix'])
models.py at commit 58ad401, under MIT · at the source
Overview
- Department of Brain and Cognition, Faculty of Psychology and Educational Sciences, KU Leuven, Leuven, Belgium
- Leuven Brain Institute, KU Leuven, Leuven, Belgium
- Department of Data Analysis, Faculty of Psychology and Educational Sciences, Ghent University, Ghent, Belgium
- School of Psychology, Northumbria University, Newcastle upon Tyne, UK
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 40 matches between paragraphs and lines of code.
costantinoai/chess-expertise-2025
58ad401c241ec28a6327882f490b29a026ab2e74, 5 June 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
155 files
- analyses/
__init__.py , Python, 15 lines - analyses/
behavioral/ , Python, 40 lines__init__.py - analyses/
behavioral/ , Python, 236 linesdata_loading.py - analyses/
behavioral/ , Python, 513 linesrdm_utils.py - analyses/
behavioral_reliability/ , Python, 6 lines__init__.py - analyses/
behavioral_reliability/ , Python, 203 linessplit_half_utils.py - analyses/
eyetracking/ , Python, 20 lines__init__.py - analyses/
eyetracking/ , Python, 112 linesfeatures.py - analyses/
eyetracking/ , Python, 95 linesio.py - analyses/
manifold/ , Python, 28 lines__init__.py - analyses/
manifold/ , Python, 251 linesanalysis.py - analyses/
manifold/ , Python, 242 linesdata.py - analyses/
manifold/ , Python, 379 lines, 3 matchesmodels.py - analyses/
manifold/ , Python, 155 linesplotting.py - analyses/
manifold/ , Python, 203 lines, 1 matchpr_computation.py - analyses/
manifold/ , Python, 174 linestables.py - analyses/
manifold/ , Python, 35 linesutils.py - analyses/
mvpa/ , Python, 1 line__init__.py - analyses/
mvpa/ , Python, 185 linesgroup.py - analyses/
mvpa/ , Python, 166 linesio.py - analyses/
mvpa/ , Python, 85 linesplot_utils.py - analyses/
neurosynth/ , Python, 1 line__init__.py - analyses/
neurosynth/ , Python, 64 linesglm_utils.py - analyses/
neurosynth/ , Python, 188 linesio_utils.py - analyses/
neurosynth/ , Python, 382 linesmaps_utils.py - analyses/
neurosynth/ , Python, 380 linesplot_utils.py - analyses/
neurosynth/ , Python, 181 linestables.py - analyses/
rdm_intercorrelation/ , Python, 37 lines__init__.py - analyses/
rdm_intercorrelation/ , Python, 193 linesplotting.py - analyses/
rsa_rois/ , Python, 11 lines__init__.py - analyses/
rsa_rois/ , Python, 68 linesio.py - analyses/
task_engagement/ , Python, 1 line__init__.py - analyses/
task_engagement/ , Python, 51 linesio.py - analyses/
univariate_rois/ , Python, 11 lines__init__.py - analyses/
univariate_rois/ , Python, 59 linesio.py - chess-behavioral/
01_behavioral_rsa_subjec , Python, 177 linest.py - chess-behavioral/
11_behavioral_rsa_group. , Python, 271 linespy - chess-behavioral/
81_table_behavioral_corr , Python, 112 lines, 2 matcheselations.py - chess-behavioral/
91_plot_behavioral_panel , Python, 598 lines, 2 matchess.py - chess-behavioral/
__init__.py , Python, 1 line - chess-glm/
01_spm_glm_firstlevel.m , MATLAB, 140 lines - chess-glm/
02_spm_second_level_with , MATLAB, 151 linesin.m - chess-glm/
03_spm_second_level_two_ , MATLAB, 120 linessample.m - chess-glm/
modules/ , MATLAB, 36 linesglm/ adjust_contrasts.m - chess-glm/
modules/ , MATLAB, 46 linesglm/ contrast_utils.m - chess-glm/
modules/ , MATLAB, 118 linesglm/ fMRIprepConfounds2SPM.m - chess-glm/
modules/ , MATLAB, 26 linesglm/ findSubjectsFolders.m - chess-glm/
modules/ , MATLAB, 27 linesglm/ gunzipNiftiFile.m - chess-glm/
modules/ , MATLAB, 22 linesglm/ participants_utils.m - chess-glm/
modules/ , MATLAB, 40 linesglm/ smoothNiftiFile.m - chess-glm/
modules/ , MATLAB, 204 linesrun_subject_glm.m - chess-manifold/
01_manifold_subject.py , Python, 185 lines - chess-manifold/
11_manifold_group.py , Python, 286 lines - chess-manifold/
81_table_manifold_pr.py , Python, 131 lines - chess-manifold/
91_plot_manifold_panels. , Python, 669 lines, 1 matchpy - chess-manifold/
__init__.py , Python, 1 line - chess-mvpa/
01_roi_mvpa_subject.m , MATLAB, 272 lines - chess-mvpa/
04_searchlight_rsa.m , MATLAB, 345 lines, 1 match - chess-mvpa/
11_mvpa_group_rsa.py , Python, 226 lines - chess-mvpa/
12_mvpa_group_decoding.p , Python, 233 linesy - chess-mvpa/
81_table_mvpa_rsa.py , Python, 256 lines - chess-mvpa/
82_table_mvpa_decoding.p , Python, 248 linesy - chess-mvpa/
91_plot_mvpa_rsa.py , Python, 376 lines - chess-mvpa/
92_plot_mvpa_decoding.py , Python, 373 lines - chess-neurosynth/
11_univariate_neurosynth , Python, 235 lines.py - chess-neurosynth/
12_rsa_neurosynth.py , Python, 277 lines, 2 matches - chess-neurosynth/
81_table_neurosynth_univ , Python, 239 lines, 1 matchariate.py - chess-neurosynth/
82_table_neurosynth_rsa. , Python, 229 lines, 1 matchpy - chess-neurosynth/
91_plot_neurosynth_univa , Python, 388 linesriate.py - chess-neurosynth/
92_plot_neurosynth_rsa.p , Python, 372 linesy - chess-neurosynth/
__init__.py , Python, 1 line - chess-supplementary/
behavioral-reliability/ , Python, 471 lines11_behavioral_split_half _reliability.py - chess-supplementary/
behavioral-reliability/ , Python, 282 lines, 1 match12_marginal_split_half.p y - chess-supplementary/
behavioral-reliability/ , Python, 169 lines81_table_split_half_reli ability.py - chess-supplementary/
behavioral-reliability/ , Python, 217 lines91_plot_reliability_pane ls.py - chess-supplementary/
eyetracking/ , Python, 319 lines01_eye_decoding_subject. py - chess-supplementary/
eyetracking/ , Python, 180 lines11_eye_decoding_group.py - chess-supplementary/
eyetracking/ , Python, 237 lines81_table_eyetracking_dec oding.py - chess-supplementary/
eyetracking/ , Python, 273 lines91_plot_eyetracking_deco ding.py - chess-supplementary/
mvpa-finer/ , MATLAB, 290 lines, 1 match01_roi_decoding_fine.m - chess-supplementary/
mvpa-finer/ , Python, 108 lines11_mvpa_finer_group_rsa. py - chess-supplementary/
mvpa-finer/ , Python, 164 lines12_mvpa_finer_group_deco ding.py - chess-supplementary/
mvpa-finer/ , Python, 151 lines, 1 match81_table_mvpa_finer_rsa. py - chess-supplementary/
mvpa-finer/ , Python, 134 lines82_table_mvpa_extended_d imensions.py - chess-supplementary/
mvpa-finer/ , Python, 168 lines82_table_mvpa_finer_deco ding.py - chess-supplementary/
mvpa-finer/ , Python, 473 lines91_plot_mvpa_finer_panel .py - chess-supplementary/
neurosynth-terms/ , Python, 265 lines91_plot_neurosynth_terms .py - chess-supplementary/
rdm-intercorrelation/ , Python, 360 lines11_rdm_intercorrelation. py - chess-supplementary/
rdm-intercorrelation/ , Python, 297 lines, 1 match81_table_rdm_intercorr.p y - chess-supplementary/
rdm-intercorrelation/ , Python, 198 lines91_plot_rdm_intercorr.py - chess-supplementary/
rsa-rois/ , Python, 189 lines01_rsa_roi_subject.py - chess-supplementary/
rsa-rois/ , Python, 196 lines11_rsa_roi_group.py - chess-supplementary/
rsa-rois/ , Python, 161 lines, 1 match81_table_rsa_rois.py - chess-supplementary/
rsa-rois/ , Python, 267 lines82_table_roi_maps_rsa.py - chess-supplementary/
rsa-rois/ , Python, 314 lines91_plot_rsa_rois.py - chess-supplementary/
run-matching/ , MATLAB, 274 lines, 1 match01_roi_rsa_run_matched.m - chess-supplementary/
run-matching/ , Python, 585 lines, 1 match11_pr_run_matched.py - chess-supplementary/
run-matching/ , Python, 233 lines12_group_rsa_run_matched .py - chess-supplementary/
run-matching/ , Python, 139 lines13_compare_run_matched.p y - chess-supplementary/
run-matching/ , Python, 254 lines81_table_rsa_run_matched .py - chess-supplementary/
run-matching/ , Python, 132 lines82_table_pr_run_matched. py - chess-supplementary/
skill-gradient/ , Python, 173 lines01_skill_gradient_subjec t.py - chess-supplementary/
skill-gradient/ , Python, 392 lines, 1 match11_skill_gradient_group. py - chess-supplementary/
skill-gradient/ , Python, 281 lines91_plot_skill_gradient.p y - chess-supplementary/
skill-gradient/ , Python, 66 linesutils.py - chess-supplementary/
subcortical-rois/ , Python, 437 lines, 1 match01_prepare_atlas.py - chess-supplementary/
subcortical-rois/ , Python, 195 lines, 1 match11_subcortical_group_rsa .py - chess-supplementary/
subcortical-rois/ , Python, 145 lines12_subcortical_group_dec oding.py - chess-supplementary/
subcortical-rois/ , Python, 175 lines91_plot_subcortical_rsa. py - chess-supplementary/
subcortical-rois/ , Python, 246 lines92_plot_atlas_on_mni.py - chess-supplementary/
subcortical-rois/ , Python, 216 lines93_plot_subcortical_deco ding.py - chess-supplementary/
subcortical-rois/ , MATLAB, 346 linessubcortical_rsa.m - chess-supplementary/
task-engagement/ , Python, 397 lines01_task_engagement_subje ct.py - chess-supplementary/
task-engagement/ , Python, 247 lines02_familiarisation_subje ct.py - chess-supplementary/
task-engagement/ , Python, 361 lines11_task_engagement_group .py - chess-supplementary/
task-engagement/ , Python, 182 lines12_familiarisation_group .py - chess-supplementary/
task-engagement/ , Python, 426 lines, 1 match13_quantify_preference_d rivers.py - chess-supplementary/
task-engagement/ , Python, 359 lines91_plot_novice_diagnosti cs.py - chess-supplementary/
task-engagement/ , Python, 276 lines92_plot_preference_featu res.py - chess-supplementary/
task-engagement/ , Python, 302 lines93_plot_gradient_panel.p y - chess-supplementary/
task-engagement/ , Python, 182 lines94_plot_response_rate_co ndition.py - chess-supplementary/
univariate-rois/ , Python, 184 lines01_univariate_roi_subjec t.py - chess-supplementary/
univariate-rois/ , Python, 182 lines11_univariate_roi_group. py - chess-supplementary/
univariate-rois/ , Python, 160 lines81_table_univariate_rois .py - chess-supplementary/
univariate-rois/ , Python, 91 lines82_table_roi_maps_univ.p y - chess-supplementary/
univariate-rois/ , Python, 312 lines91_plot_univariate_rois. py - common/
__init__.py , Python, 220 lines - common/
bids_utils.py , Python, 851 lines - common/
chess_config.m , MATLAB, 95 lines, 1 match - common/
constants.py , Python, 264 lines, 3 matches - common/
formatters.py , Python, 122 lines - common/
group_stats.py , Python, 57 lines - common/
io_utils.py , Python, 484 lines - common/
logging_utils.py , Python, 479 lines - common/
neuro_utils.py , Python, 1,334 lines, 2 matches - common/
plotting/ , Python, 201 lines__init__.py - common/
plotting/ , Python, 1,292 linesbars.py - common/
plotting/ , Python, 205 linescolors.py - common/
plotting/ , Python, 487 linesheatmaps.py - common/
plotting/ , Python, 1,488 lineshelpers.py - common/
plotting/ , Python, 333 lineslegends.py - common/
plotting/ , Python, 223 linesscatter.py - common/
plotting/ , Python, 583 linesstyle.py - common/
plotting/ , Python, 1,258 linessurfaces.py - common/
report_utils.py , Python, 1,180 lines - common/
rsa_utils.py , Python, 373 lines, 2 matches - common/
script_utils.py , Python, 244 lines - common/
spm_utils.py , Python, 314 lines - common/
stats_utils.py , Python, 1,124 lines - common/
table_utils.py , Python, 220 lines - common/
tables/ , Python, 19 lines__init__.py - common/
tables/ , Python, 207 linesstyle.py - run_all_analyses.sh, Shell, 371 lines
- LICENSE, License, 21 lines
- README.md, Text, 305 lines
Zenodo 19392282
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
154 files
- analyses/
__init__.py , Python, 15 lines - analyses/
behavioral/ , Python, 40 lines__init__.py - analyses/
behavioral/ , Python, 236 linesdata_loading.py - analyses/
behavioral/ , Python, 513 linesrdm_utils.py - analyses/
behavioral_reliability/ , Python, 6 lines__init__.py - analyses/
behavioral_reliability/ , Python, 203 linessplit_half_utils.py - analyses/
eyetracking/ , Python, 20 lines__init__.py - analyses/
eyetracking/ , Python, 112 linesfeatures.py - analyses/
eyetracking/ , Python, 95 linesio.py - analyses/
manifold/ , Python, 28 lines__init__.py - analyses/
manifold/ , Python, 251 linesanalysis.py - analyses/
manifold/ , Python, 242 linesdata.py - analyses/
manifold/ , Python, 379 linesmodels.py - analyses/
manifold/ , Python, 155 linesplotting.py - analyses/
manifold/ , Python, 203 linespr_computation.py - analyses/
manifold/ , Python, 174 linestables.py - analyses/
manifold/ , Python, 35 linesutils.py - analyses/
mvpa/ , Python, 1 line__init__.py - analyses/
mvpa/ , Python, 185 linesgroup.py - analyses/
mvpa/ , Python, 166 linesio.py - analyses/
mvpa/ , Python, 85 linesplot_utils.py - analyses/
neurosynth/ , Python, 1 line__init__.py - analyses/
neurosynth/ , Python, 64 linesglm_utils.py - analyses/
neurosynth/ , Python, 188 linesio_utils.py - analyses/
neurosynth/ , Python, 382 linesmaps_utils.py - analyses/
neurosynth/ , Python, 353 linesplot_utils.py - analyses/
neurosynth/ , Python, 181 linestables.py - analyses/
rdm_intercorrelation/ , Python, 37 lines__init__.py - analyses/
rdm_intercorrelation/ , Python, 193 linesplotting.py - analyses/
rsa_rois/ , Python, 11 lines__init__.py - analyses/
rsa_rois/ , Python, 68 linesio.py - analyses/
task_engagement/ , Python, 1 line__init__.py - analyses/
task_engagement/ , Python, 51 linesio.py - analyses/
univariate_rois/ , Python, 11 lines__init__.py - analyses/
univariate_rois/ , Python, 59 linesio.py - chess-behavioral/
01_behavioral_rsa_subjec , Python, 177 linest.py - chess-behavioral/
11_behavioral_rsa_group. , Python, 271 linespy - chess-behavioral/
81_table_behavioral_corr , Python, 112 lineselations.py - chess-behavioral/
91_plot_behavioral_panel , Python, 588 lines, 2 matchess.py - chess-behavioral/
__init__.py , Python, 1 line - chess-glm/
01_spm_glm_firstlevel.m , MATLAB, 140 lines - chess-glm/
02_spm_second_level_with , MATLAB, 151 linesin.m - chess-glm/
03_spm_second_level_two_ , MATLAB, 120 linessample.m - chess-glm/
modules/ , MATLAB, 36 linesglm/ adjust_contrasts.m - chess-glm/
modules/ , MATLAB, 46 linesglm/ contrast_utils.m - chess-glm/
modules/ , MATLAB, 118 linesglm/ fMRIprepConfounds2SPM.m - chess-glm/
modules/ , MATLAB, 26 linesglm/ findSubjectsFolders.m - chess-glm/
modules/ , MATLAB, 27 linesglm/ gunzipNiftiFile.m - chess-glm/
modules/ , MATLAB, 22 linesglm/ participants_utils.m - chess-glm/
modules/ , MATLAB, 40 linesglm/ smoothNiftiFile.m - chess-glm/
modules/ , MATLAB, 204 linesrun_subject_glm.m - chess-manifold/
01_manifold_subject.py , Python, 185 lines - chess-manifold/
11_manifold_group.py , Python, 286 lines - chess-manifold/
81_table_manifold_pr.py , Python, 131 lines - chess-manifold/
91_plot_manifold_panels. , Python, 650 lines, 1 matchpy - chess-manifold/
__init__.py , Python, 1 line - chess-mvpa/
01_roi_mvpa_subject.m , MATLAB, 272 lines - chess-mvpa/
04_searchlight_rsa.m , MATLAB, 345 lines - chess-mvpa/
11_mvpa_group_rsa.py , Python, 226 lines - chess-mvpa/
12_mvpa_group_decoding.p , Python, 233 linesy - chess-mvpa/
81_table_mvpa_rsa.py , Python, 256 lines - chess-mvpa/
82_table_mvpa_decoding.p , Python, 248 linesy - chess-mvpa/
91_plot_mvpa_rsa.py , Python, 381 lines - chess-mvpa/
92_plot_mvpa_decoding.py , Python, 388 lines - chess-neurosynth/
11_univariate_neurosynth , Python, 235 lines.py - chess-neurosynth/
12_rsa_neurosynth.py , Python, 277 lines - chess-neurosynth/
81_table_neurosynth_univ , Python, 239 linesariate.py - chess-neurosynth/
82_table_neurosynth_rsa. , Python, 229 linespy - chess-neurosynth/
91_plot_neurosynth_univa , Python, 362 linesriate.py - chess-neurosynth/
92_plot_neurosynth_rsa.p , Python, 362 linesy - chess-neurosynth/
__init__.py , Python, 1 line - chess-supplementary/
behavioral-reliability/ , Python, 471 lines11_behavioral_split_half _reliability.py - chess-supplementary/
behavioral-reliability/ , Python, 282 lines12_marginal_split_half.p y - chess-supplementary/
behavioral-reliability/ , Python, 169 lines81_table_split_half_reli ability.py - chess-supplementary/
behavioral-reliability/ , Python, 206 lines91_plot_reliability_pane ls.py - chess-supplementary/
eyetracking/ , Python, 319 lines01_eye_decoding_subject. py - chess-supplementary/
eyetracking/ , Python, 180 lines11_eye_decoding_group.py - chess-supplementary/
eyetracking/ , Python, 237 lines81_table_eyetracking_dec oding.py - chess-supplementary/
eyetracking/ , Python, 271 lines91_plot_eyetracking_deco ding.py - chess-supplementary/
mvpa-finer/ , MATLAB, 290 lines01_roi_decoding_fine.m - chess-supplementary/
mvpa-finer/ , Python, 108 lines11_mvpa_finer_group_rsa. py - chess-supplementary/
mvpa-finer/ , Python, 164 lines12_mvpa_finer_group_deco ding.py - chess-supplementary/
mvpa-finer/ , Python, 151 lines81_table_mvpa_finer_rsa. py - chess-supplementary/
mvpa-finer/ , Python, 134 lines82_table_mvpa_extended_d imensions.py - chess-supplementary/
mvpa-finer/ , Python, 168 lines82_table_mvpa_finer_deco ding.py - chess-supplementary/
mvpa-finer/ , Python, 493 lines91_plot_mvpa_finer_panel .py - chess-supplementary/
neurosynth-terms/ , Python, 298 lines, 2 matches91_plot_neurosynth_terms .py - chess-supplementary/
rdm-intercorrelation/ , Python, 360 lines11_rdm_intercorrelation. py - chess-supplementary/
rdm-intercorrelation/ , Python, 297 lines81_table_rdm_intercorr.p y - chess-supplementary/
rdm-intercorrelation/ , Python, 191 lines91_plot_rdm_intercorr.py - chess-supplementary/
rsa-rois/ , Python, 189 lines01_rsa_roi_subject.py - chess-supplementary/
rsa-rois/ , Python, 196 lines11_rsa_roi_group.py - chess-supplementary/
rsa-rois/ , Python, 161 lines81_table_rsa_rois.py - chess-supplementary/
rsa-rois/ , Python, 267 lines82_table_roi_maps_rsa.py - chess-supplementary/
rsa-rois/ , Python, 319 lines91_plot_rsa_rois.py - chess-supplementary/
run-matching/ , MATLAB, 274 lines01_roi_rsa_run_matched.m - chess-supplementary/
run-matching/ , Python, 585 lines11_pr_run_matched.py - chess-supplementary/
run-matching/ , Python, 233 lines12_group_rsa_run_matched .py - chess-supplementary/
run-matching/ , Python, 139 lines13_compare_run_matched.p y - chess-supplementary/
run-matching/ , Python, 254 lines81_table_rsa_run_matched .py - chess-supplementary/
run-matching/ , Python, 132 lines82_table_pr_run_matched. py - chess-supplementary/
skill-gradient/ , Python, 173 lines01_skill_gradient_subjec t.py - chess-supplementary/
skill-gradient/ , Python, 392 lines11_skill_gradient_group. py - chess-supplementary/
skill-gradient/ , Python, 243 lines91_plot_skill_gradient.p y - chess-supplementary/
skill-gradient/ , Python, 66 linesutils.py - chess-supplementary/
subcortical-rois/ , Python, 437 lines01_prepare_atlas.py - chess-supplementary/
subcortical-rois/ , Python, 195 lines11_subcortical_group_rsa .py - chess-supplementary/
subcortical-rois/ , Python, 145 lines12_subcortical_group_dec oding.py - chess-supplementary/
subcortical-rois/ , Python, 164 lines91_plot_subcortical_rsa. py - chess-supplementary/
subcortical-rois/ , Python, 246 lines92_plot_atlas_on_mni.py - chess-supplementary/
subcortical-rois/ , Python, 218 lines93_plot_subcortical_deco ding.py - chess-supplementary/
subcortical-rois/ , MATLAB, 346 linessubcortical_rsa.m - chess-supplementary/
task-engagement/ , Python, 397 lines01_task_engagement_subje ct.py - chess-supplementary/
task-engagement/ , Python, 247 lines02_familiarisation_subje ct.py - chess-supplementary/
task-engagement/ , Python, 361 lines11_task_engagement_group .py - chess-supplementary/
task-engagement/ , Python, 182 lines12_familiarisation_group .py - chess-supplementary/
task-engagement/ , Python, 426 lines13_quantify_preference_d rivers.py - chess-supplementary/
task-engagement/ , Python, 402 lines91_plot_novice_diagnosti cs.py - chess-supplementary/
task-engagement/ , Python, 234 lines92_plot_preference_featu res.py - chess-supplementary/
task-engagement/ , Python, 291 lines93_plot_gradient_panel.p y - chess-supplementary/
univariate-rois/ , Python, 184 lines01_univariate_roi_subjec t.py - chess-supplementary/
univariate-rois/ , Python, 182 lines11_univariate_roi_group. py - chess-supplementary/
univariate-rois/ , Python, 160 lines81_table_univariate_rois .py - chess-supplementary/
univariate-rois/ , Python, 91 lines82_table_roi_maps_univ.p y - chess-supplementary/
univariate-rois/ , Python, 315 lines91_plot_univariate_rois. py - common/
__init__.py , Python, 192 lines - common/
bids_utils.py , Python, 851 lines - common/
chess_config.m , MATLAB, 95 lines - common/
constants.py , Python, 264 lines - common/
formatters.py , Python, 122 lines - common/
group_stats.py , Python, 57 lines - common/
io_utils.py , Python, 484 lines - common/
logging_utils.py , Python, 479 lines - common/
neuro_utils.py , Python, 1,255 lines, 2 matches - common/
plotting/ , Python, 155 lines__init__.py - common/
plotting/ , Python, 1,229 linesbars.py - common/
plotting/ , Python, 205 linescolors.py - common/
plotting/ , Python, 487 linesheatmaps.py - common/
plotting/ , Python, 937 lineshelpers.py - common/
plotting/ , Python, 160 lineslegends.py - common/
plotting/ , Python, 223 linesscatter.py - common/
plotting/ , Python, 522 linesstyle.py - common/
plotting/ , Python, 1,113 linessurfaces.py - common/
report_utils.py , Python, 1,180 lines - common/
rsa_utils.py , Python, 373 lines - common/
script_utils.py , Python, 244 lines - common/
spm_utils.py , Python, 314 lines - common/
stats_utils.py , Python, 1,124 lines - common/
table_utils.py , Python, 220 lines - common/
tables/ , Python, 19 lines__init__.py - common/
tables/ , Python, 207 linesstyle.py - run_all_analyses.sh, Shell, 371 lines
- LICENSE, License, 21 lines
- README.md, Text, 305 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: costantinoai/
chess-expertise-2025 , Zenodo 19392282
Read it in the paper: doi.org/10.1038/s41467-026-74566-z.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 305 scripts, each with its path and the digest of its content;
- 40 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41467-026-74566-z.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 4 keywords, 6 MeSH terms, 2 funders, 59 references, 6 RRIDs.
Cite
This paper
Costantino, A. I., Platonov, A., Fontana Vieira, F., Van Hove, E., Bilalić, M., & Op de Beeck, H. (2026). Low-dimensional and optimised representations of high-level information in the expert brain. Nature communications, 17(1), 8024. https://
BibTeX
@article{costantino2026l
author = {Costantino, Andrea I and Platonov, Artem and Fontana Vieira, Felipe and Van Hove, Emily and Bilalić, Merim and Op de Beeck, Hans},
title = {{Low-dimensional and optimised representations of high-level information in the expert brain}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {8024},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42362539},
pmcid = {PMC13454291}
}
RIS
TY - JOUR
AU - Costantino, Andrea I
AU - Platonov, Artem
AU - Fontana Vieira, Felipe
AU - Van Hove, Emily
AU - Bilalić, Merim
AU - Op de Beeck, Hans
TI - Low-dimensional and optimised representations of high-level information in the expert brain
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8024
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Low-dimensional and optimised representations of high-level information in the expert brain",
"container-title": "Nature communications",
"author": [
{
"family": "Costantino",
"given": "Andrea I"
},
{
"family": "Platonov",
"given": "Artem"
},
{
"family": "Fontana Vieira",
"given": "Felipe"
},
{
"family": "Van Hove",
"given": "Emily"
},
{
"family": "Bilalić",
"given": "Merim"
},
{
"family": "Op de Beeck",
"given": "Hans"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8024",
"DOI": "10.1038/
"PMID": "42362539",
"PMCID": "PMC13454291",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
26
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s42003-024-07415-8 [code]
- A computational deep learning investigation of animacy perception in the human brain.Journal: Communications biologyIn common: Pingouin, statsmodels, seaborn, 5 other tools, cognitive, 1 reference, 2 authors
- [2] doi:10.7554/elife.82580 [code]
- THINGS-data, a multimodal collection of large-scale datasets for investigating object representations in human brain and behavior.Journal: eLifeIn common: CoSMoMVPA, Nilearn, NiBabel, 6 other tools, 8 references
- [3] doi:10.1371/journal.pbio.3003268 [code]
- Transfer of motor learning is associated with patterns of activity in the default mode network.Journal: PLoS biologyIn common: Pingouin, Nilearn, SPM, 8 other tools, 5 references
- [4] doi:10.1038/s42003-025-08395-z [code]
- Distinct neural representational geometries of numerosity in early visual and association regions across visual streams.Journal: Communications biologyIn common: CoSMoMVPA, Nilearn, Plotly, 7 other tools, cognitive, 4 references
- [5] doi:10.1038/s41467-026-71151-2 [code]
- Common and distinct neural correlates of social interaction processing and theory of mind in narratives.Journal: Nature communicationsIn common: fMRIPrep, Nilearn, SPM, 8 other tools, cognitive, 4 references
- [6] doi:10.1038/s41467-025-67855-6 [code]
- Investigating action topography in visual cortex and deep artificial neural networks.Journal: Nature communicationsIn common: CoSMoMVPA, SPM, scikit-learn, 4 other tools, 3 references, author Hans Op de Beeck
- [7] doi:10.1038/s41467-024-50310-3 [code]
- Modeling short visual events through the BOLD moments video fMRI dataset and metadata.Journal: Nature communicationsIn common: fMRIPrep, Nilearn, statsmodels, 6 other tools, cognitive, 6 references
- [8] doi:10.1038/s41467-025-65468-7 [code]
- Impact of a transient neonatal visual deprivation on the development of the ventral occipito-temporal cortex in humans.Journal: Nature communicationsIn common: CoSMoMVPA, 3 references, 2 authors
- [9] doi:10.1038/s41597-024-02931-y [code]
- An fMRI Dataset on Social Reward Processing and Decision Making in Younger and Older Adults.Journal: Scientific dataIn common: fMRIPrep, Nilearn, statsmodels, 6 other tools, cognitive, 6 references
- [10] doi:10.7554/elife.82566 [code]
- Statistical inference on representational geometries.Journal: eLifeIn common: fMRIPrep, Nilearn, SPM, 7 other tools, 5 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 305 scripts, and 40 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:3a4397e75eb81fde…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1038/s41467-026-74566-z)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-74566-z.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-74566-z
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-74566-z"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-74566-z.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
