Neural similarity between choice options predicts group-level context effects.
The 18 matches
- [1] § Methods › Computational modeling ↔ code/behavioral_computational/computational_models.ipynb, lines 256–316 · score 0.74 · computational models, cross validation, predicted decoy, fmin, optimization, scipy
- [2] § Methods › Representational Similarity Analysis regression › Neural RDM regressions › Out-of-sample predictions ↔ code/mri/fig2_predictions.ipynb, lines 158–220 · score 0.70 · Lasso regression, cross validation, hyperparameter, inner, held, fold
- [3] § Results › The decoy effect is predicted by the similarity of neural representations ↔ code/behavioral_computational/computational_models.ipynb, lines 256–316 · score 0.66 · square error, cross validation, computational model, models prediction, fold, RMSE
- [4] § Methods › Explicit attribute representation analysis › Whole-brain attribute representation levels ↔ code/mri/fig3_attribute_representation_levels.ipynb, lines 177–222 · score 0.64 · posterior anterior coordinate, attribute representation, quadratic, parcel, fitted
- [5] § Methods › Representational Similarity Analysis regression › Pre-defined regions of interest ↔ code/mri/fig4_rep_geometry.ipynb, lines 112–166 · score 0.64 · vmPFC, vSTR, ACC, M1, PCC, V1
- [6] § Methods › Behavioral tasks › Lottery evaluation task ↔ code/behavioral_computational/read_files.py, lines 335–379 · score 0.63 · remaining budget, behavioral sample, BDM, win, blocks
- [7] § Methods › Representational Similarity Analysis regression › Pre-defined regions of interest ↔ code/mri/fig2_fitting.ipynb, lines 26–30 · score 0.63 · vmPFC, vSTR, ACC, M1, PCC, V1
- [8] § Results › The decoy effect is predicted by the similarity of neural representations ↔ code/mri/fig2_predictions.ipynb, lines 158–220 · score 0.62 · square error, Lasso regression, cross validation, fold, RMSE, trained
- [9] § Results › The decoy effect is predicted by the similarity of neural representations ↔ code/mri/fig3_attribute_representation_levels.ipynb, lines 177–222 · score 0.59 · quadratic fit, attribute RDM, attribute representation, anterior, posterior, parcel
- [10] § Methods › Representational Similarity Analysis regression › Neural RDM regressions › Data fitting ↔ code/mri/utils/stepwise_rdm.py, lines 14–48 · score 0.58 · forward stepwise regression, stepwise procedure, fitted, ROIs, RDMs, models
- [11] § Methods › Computational modeling › Evidence accumulation (drift-diffusion) models ↔ code/behavioral_computational/ddms/ddms_model_eval.ipynb, lines 12–17 · score 0.56 · Mutual Inhibition, Selective Integration, competitor, fit, models, decoy
- [12] § Results › Mixture of explicit and latent attributes in neural representations predicts the decoy effect ↔ code/mri/fig3_attribute_representation_levels.ipynb, lines 35–61 · score 0.56 · lower triangles, attribute RDM, neural RDM, attribute representation, correlated, ROIs
- [13] § Results › The decoy effect is predicted by the similarity of neural representations ↔ code/behavioral_computational/computational_models.ipynb, lines 148–223 · score 0.54 · Recurrent Divisive Normalization, computational model, error, probability, prediction, decoy
- [14] § Methods › Computational modeling › Evidence accumulation (drift-diffusion) models ↔ code/behavioral_computational/ddms/ddms_model_eval.ipynb, lines 12–17 · score 0.53 · Mutual Inhibition, Selective Integration, models, decoy
- [15] § Results › The decoy effect is predicted by the similarity of neural representations ↔ code/mri/fig4_rep_geometry.ipynb, lines 361–431 · score 0.53 · biweight midcorrelation, effective dimensionality, networks, attribute representation, parcel, Figure 4
- [16] § Results › The decoy effect is predicted by the similarity of neural representations ↔ code/mri/utils/stepwise_rdm.py, lines 14–48 · score 0.52 · forward stepwise regression, RDM regressions, FDR, fit, ROIs, model
- [17] § Results › Low explicit attribute representation is tied to higher effective dimensionality ↔ code/mri/fig4_rep_geometry.ipynb, lines 112–166 · score 0.52 · vSTR, effective dimensionality, ACC, PCC, V1, MT
- [18] § Methods › Attributes-based models ↔ code/mri/utils/rdm_regression.py, lines 1–15 · score 0.51 · linear regression, neural RDM regression, fitted, predictions, decoy
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Jupyter notebook · 372 lines · 17 KB · CC-BY-4.0 · 3 matches
- # %% [markdown]
- # # Computational models of the decoy effect
- #
- # Fits and compares standard context-effect models: Adaptive Gain, Divisive Normalization, Range Normalization, to the empirical per-set decoy effects.
- # Each model predicts the trinary-vs-binary change in target choice share from the lottery attributes.
- # Leave-one-lottery-out cross-validated predictions are reported via MSE. Fitting results are reported as R^2.
- # %%
- import glob
- import os
- import tqdm
- import pandas as pd
- import numpy as np
- import matplotlib.pyplot as plt
- import matplotlib
- import scipy
- from scipy import optimize
- import read_files
- from copy import deepcopy
- from sklearn.metrics import mean_squared_error
- import warnings
- warnings.simplefilter(action='ignore', category=RuntimeWarning)
- # %%
- choice_stimuli = pd.read_csv('../../stimuli/stimuli_trinary.csv')
- trinary_stimuli = choice_stimuli
- binary_stimuli = pd.read_csv('../../stimuli/stimuli_binary.csv')
- # %%
- decoy_effects = pd.read_csv('../../results/decoy_table.csv')
- y = decoy_effects.decoy_effect_A.values
- # %% [markdown]
- # ### Fit computational models: Adaptive Gain
- # %% [markdown]
- # #### min-max scaling of amount and probabilities
- # %%
- binary_stimuli = trinary_stimuli.drop(['amountC', 'probC', 'trinary_id'], axis=1)
- binary_stimuli.loc[:, 'avg_amounts'] = np.mean(binary_stimuli.loc[:, ['amountA', 'amountB']], 1)
- binary_stimuli.loc[:, 'avg_probs'] = np.mean(binary_stimuli.loc[:, ['probA', 'probB']], 1)
- binary_stimuli = binary_stimuli.loc[binary_stimuli.binary_id < 28, :] # remove catch trials
- trinary_stimuli = trinary_stimuli.drop(['binary_id'], axis=1)
- trinary_stimuli.loc[:, 'avg_amounts'] = np.mean(trinary_stimuli.loc[:, ['amountA', 'amountB', 'amountC']], 1)
- trinary_stimuli.loc[:, 'avg_probs'] = np.mean(trinary_stimuli.loc[:, ['probA', 'probB', 'probC']], 1)
- trinary_stimuli = trinary_stimuli.loc[trinary_stimuli.trinary_id < 28] # remove catch trials
- # %%
- min_amount = 4
- max_amount = 79
- min_prob = 0
- max_prob = 100
- all_EVs = np.concatenate([trinary_stimuli.EVA.unique(), trinary_stimuli.EVB.unique(), trinary_stimuli.EVC.unique()])
- min_EV = np.min(all_EVs)
- max_EV = np.max(all_EVs)
- to_scale_cols = ['amountA', 'probA', 'amountB', 'probB', 'amountC', 'probC', 'EVA', 'EVB', 'EVC', 'avg_amounts', 'avg_probs']
- trinary_stimuli_norm = trinary_stimuli.copy()
- trinary_stimuli_norm.loc[:, 'amountA'] = (trinary_stimuli_norm.amountA - min_amount) / (max_amount - min_amount)
- trinary_stimuli_norm.loc[:, 'amountB'] = (trinary_stimuli_norm.amountB - min_amount) / (max_amount - min_amount)
- trinary_stimuli_norm.loc[:, 'amountC'] = (trinary_stimuli_norm.amountC - min_amount) / (max_amount - min_amount)
- trinary_stimuli_norm.loc[:, 'probA'] = (trinary_stimuli_norm.probA - min_prob) / (max_prob - min_prob)
- trinary_stimuli_norm.loc[:, 'probB'] = (trinary_stimuli_norm.probB - min_prob) / (max_prob - min_prob)
- trinary_stimuli_norm.loc[:, 'probC'] = (trinary_stimuli_norm.probC - min_prob) / (max_prob - min_prob)
- trinary_stimuli_norm.loc[:, 'EVA'] = (trinary_stimuli_norm.EVA - min_EV) / (max_EV - min_EV)
- trinary_stimuli_norm.loc[:, 'EVB'] = (trinary_stimuli_norm.EVB - min_EV) / (max_EV - min_EV)
- trinary_stimuli_norm.loc[:, 'EVC'] = (trinary_stimuli_norm.EVC - min_EV) / (max_EV - min_EV)
- trinary_stimuli_norm.loc[:, 'avg_amounts'] = trinary_stimuli_norm.loc[:, ['amountA', 'amountB', 'amountC']].mean(axis=1)
- trinary_stimuli_norm.loc[:, 'avg_probs'] = trinary_stimuli_norm.loc[:, ['probA', 'probB', 'probC']].mean(axis=1)
- binary_stimuli_norm = binary_stimuli.copy()
- binary_stimuli_norm.loc[:, 'amountA'] = (binary_stimuli_norm.amountA - min_amount) / (max_amount - min_amount)
- binary_stimuli_norm.loc[:, 'amountB'] = (binary_stimuli_norm.amountB - min_amount) / (max_amount - min_amount)
- binary_stimuli_norm.loc[:, 'probA'] = (binary_stimuli_norm.probA - min_prob) / (max_prob - min_prob)
- binary_stimuli_norm.loc[:, 'probB'] = (binary_stimuli_norm.probB - min_prob) / (max_prob - min_prob)
- binary_stimuli_norm.loc[:, 'EVA'] = (binary_stimuli_norm.EVA - min_EV) / (max_EV - min_EV)
- binary_stimuli_norm.loc[:, 'EVB'] = (binary_stimuli_norm.EVB - min_EV) / (max_EV - min_EV)
- binary_stimuli_norm.loc[:, 'avg_amounts'] = binary_stimuli_norm.loc[:, ['amountA', 'amountB']].mean(axis=1)
- binary_stimuli_norm.loc[:, 'avg_probs'] = binary_stimuli_norm.loc[:, ['probA', 'probB']].mean(axis=1)
- # %% [markdown]
- # #### read choice file per set, instead of per subject
- # %%
- raw_choices = pd.DataFrame()
- raw_files = glob.glob('../../data/behavioral_experiment/raw_choices_per_set/*.csv')
- for i in range(len(raw_files)):
- set_choices = pd.read_csv(raw_files[i])
- raw_choices = pd.concat([raw_choices, set_choices], axis=0)
- # remove catch trials
- raw_choices = raw_choices[raw_choices.binary_id<28]
- raw_choices = raw_choices[raw_choices.subject_id.str.contains('-')]
- # %%
- # add the lotteries' attributes to the choices
- binary_raw_choices = raw_choices[raw_choices.trinary_group==0]
- trinary_raw_choices = raw_choices[raw_choices.trinary_group==1]
- trinary_raw_choices_stimuli = trinary_raw_choices.merge(trinary_stimuli_norm, left_on='trinary_id', right_on='trinary_id', how='outer')
- binary_raw_choices_stimuli = binary_raw_choices.merge(binary_stimuli_norm, left_on='binary_id', right_on='binary_id', how='outer')
- # %%
- raw_choices_stimuli = pd.concat([binary_raw_choices_stimuli, trinary_raw_choices_stimuli], axis=0)
- # %%
- def trinary_neg_log_likelihood(p_all, choices):
- """
- Compute negative log-likelihood for trinary choice data.
- Parameters:
- - p_all: np.ndarray of shape (n_trials, 3), model predicted probabilities for [A, B, C]
- - choices: np.ndarray of shape (n_trials,), with values in {'A', 'B', 'C'}
- Returns:
- - neg_log_like: scalar, sum of negative log-likelihood over trials
- """
- # Map choices to indices
- choice_map = {'A': 0, 'B': 1, 'C': 2}
- choice_indices = np.vectorize(choice_map.get)(choices)
- # Extract the predicted probability assigned to the chosen option
- chosen_p = p_all[np.arange(len(choices)), choice_indices]
- # Avoid log(0)
- chosen_p = np.clip(chosen_p, 1e-5, 1 - 1e-5)
- # Compute NLL
- neg_log_like = -np.nansum(np.log(chosen_p))
- return neg_log_like
- # %%
- def softmax(x, tau=1):
- """
- Compute softmax probabilities for a given input vector x and temperature tau.
- Parameters:
- - x: np.ndarray, input vector of values
- - tau: float, temperature parameter
- Returns:
- - np.ndarray, softmax probabilities
- """
- exp_u = np.exp(tau*x)
- softmax_denominator = np.nansum(exp_u, axis=1, keepdims=True)
- p_all = exp_u / softmax_denominator
- return p_all
- # %%
- def run_model(params, df, model_type='AG', return_p=0):
- """
- Evaluate a context-effect model on a batch of choice trials or stimuli.
- Supports three families of models, each combining attribute-level
- normalization with a softmax decision rule and an amount/probability
- weighting ``w``:
- - 'AG' (Adaptive Gain): sigmoidal squashing of each attribute
- around the contextual mean with slope parameters.
- - 'DN' (Divisive Normalization): attribute divided by a
- weighted contextual sum plus a saturation constant.
- - 'RDN' (Recurrent Divisive Normalization): attribute divided by
- itself plus the contextual sum plus a saturation constant.
- Parameters:
- params: tuple of model parameters in the order documented above
- for each ``model_type``.
- df: DataFrame with columns ``amountA/B[/C]``, ``probA/B[/C]``,
- and the contextual means ``avg_amounts`` and ``avg_probs``.
- If ``target_choice`` or ``actual_choice`` is present the
- function returns the negative log-likelihood of the choices.
- model_type: 'AG', 'DN' or 'RDN'.
- return_p: if truthy, return the predicted ``P(A) / (P(A)+P(B))``
- instead of the negative log-likelihood (used to derive the
- model-predicted decoy effect from stimuli without choices).
- Returns:
- Either the predicted A-vs-B choice probabilities (when
- ``return_p`` is truthy) or the summed negative log-likelihood of
- the observed choices under the model.
- """
- # df could be subjects raw choices, or dataframe of stimuli (amounts, probs) without choices
- if 'amountC' in df.columns:
- amounts = df[['amountA', 'amountB', 'amountC']]
- probs = df[['probA', 'probB', 'probC']]
- else:
- amounts = df[['amountA', 'amountB']]
- probs = df[['probA', 'probB']]
- n_amounts = amounts.shape[1]
- avg_amounts_mat = np.vstack([df.avg_amounts.values]*n_amounts).transpose()
- avg_probs_mat = np.vstack([df.avg_probs.values]*n_amounts).transpose()
- if model_type=='RDN':
- # recurrent divisive normalization
- c_amount, c_prob, tau, w = params
- u_amounts = amounts / (amounts + avg_amounts_mat + c_amount)
- u_probs = probs / (probs + avg_probs_mat + c_prob)
- elif model_type=='DN':
- # divisive normalization
- c_amount, c_prob, tau, omega_amount, omega_prob, w = params
- u_amounts = amounts / (omega_amount*avg_amounts_mat + c_amount)
- u_probs = probs / (omega_prob*avg_probs_mat + c_prob)
- elif model_type=='AG':
- # adaptive gain
- c_amount, c_prob, tau, slope_amount, slope_prob, w = params
- u_amounts = 1 / (1 + np.exp(-1 * (amounts - avg_amounts_mat - c_amount) / slope_amount))
- u_probs = 1 / (1 + np.exp(-1 * (probs - avg_probs_mat - c_prob) / slope_prob))
- else:
- raise ValueError('model_type must be "AG" (adaptive gain), "RDN" or "DN" ([recurrent] devisive normalization)')
- u_all = w*u_amounts.values + (1-w)*u_probs.values
- p_all = softmax(u_all, tau=tau)
- p_A = p_all[:, 0]
- p_B = p_all[:, 1]
- p_C = p_all[:, 2] if n_amounts == 3 else np.zeros_like(p_A)
- p_A[p_A==0] = 1e-5
- p_B[p_B==0] = 1e-5
- p_C[p_C==0] = 1e-5
- if return_p:
- return p_A / (p_A + p_B)
- if 'target_choice' in df.columns:
- choose_A = df.target_choice.values
- neg_log_like = -1 * np.sum(choose_A * np.log(p_A) + (1-choose_A)*np.log(p_B))
- neg_log_like = trinary_neg_log_likelihood(p_all, df.actual_choice.values) if n_amounts == 3 else neg_log_like
- return neg_log_like
- # %%
- # c_amount, c_prob, tau, slope, w
- AG_init_params = np.array([0. , 0, 0.1 , 0.1, 0.1, 0.5])
- # c_amount, c_prob, tau, w
- RDN_init_params = np.array([0. , 0, 0.1 , 0.5 ])
- DN_init_params = AG_init_params
- # %% [markdown]
- # ### out of sample predictions (leave-one-set-out)
- # %%
- os.chdir('../mri')
- from utils import load_params
- behavior_results = load_params.load_behavior_results()
- set_objs = load_params.load_sets(behavior_results)
- folds = []
- for i, set_out in enumerate(set_objs):
- test_sets = []
- test_ind = []
- train_sets = []
- train_ind = []
- for j, set_obj in enumerate(set_objs):
- if set_obj.overlapping_with(set_out):
- test_sets.append(set_obj)
- test_ind.append(j)
- else:
- train_sets.append(set_obj)
- train_ind.append(j)
- if (train_ind, test_ind) not in folds:
- folds.append((train_ind, test_ind))
- # %%
- def cv_comp_model(folds, model_type='AG', init_params=AG_init_params):
- """
- Leave-one-set-out cross-validation of a computational choice model.
- For each fold the model parameters are fit to the pooled raw
- choices of the training sets (group-level fit), then used to
- predict the held-out sets' decoy effect as the difference between
- model-predicted target shares in the trinary and binary stimuli.
- Parameters:
- folds: iterable of (train_indices, test_indices) tuples over
- lottery-set indices (0-based).
- model_type: 'AG', 'DN' or 'RDN' (see :func:`run_model`).
- init_params: initial parameter vector for ``scipy.optimize.fmin``.
- Returns:
- Tuple ``(cv_rmse, cv_corr, train_rmse)`` of per-fold arrays
- with the out-of-sample RMSE, Spearman correlation between
- predicted and observed decoy effects, and the training
- RMSE for reference.
- """
- cv_rmse = np.zeros(len(folds))
- cv_corr = np.zeros(len(folds))
- train_rmse = np.zeros(len(folds))
- fold_i = 0
- for train_ind, test_ind in tqdm.tqdm(folds):
- # train test split
- y_train, y_test = y[train_ind], y[test_ind]
- train_set_inds = np.array(train_ind) + 1
- test_set_inds = np.array(test_ind) + 1
- train_raw_choices = raw_choices_stimuli[raw_choices_stimuli.trinary_id.isin(train_set_inds)]
- test_raw_choices = raw_choices_stimuli[raw_choices_stimuli.trinary_id.isin(test_set_inds)]
- # fit params to group level choices
- group_params = optimize.fmin(run_model, init_params, args=(train_raw_choices, model_type), maxiter=1e4, disp=False)
- loglike = -1 * run_model(group_params, test_raw_choices, model_type)
- # apply to test choices
- test_trinary_stimuli = trinary_stimuli_norm.loc[trinary_stimuli_norm.trinary_id.isin(test_set_inds)]
- test_binary_stimuli = binary_stimuli_norm.loc[binary_stimuli_norm.binary_id.isin(test_set_inds)]
- # calculate predicted decoy effects (average trinary minus average binary)
- trinary_ratio_pred = run_model(group_params, test_trinary_stimuli, model_type, return_p=1)
- binary_ratio_pred = run_model(group_params, test_binary_stimuli, model_type, return_p=1)
- decoy_pred = trinary_ratio_pred - binary_ratio_pred
- decoy_pred = np.nan_to_num(decoy_pred)
- # evaluate predictions
- cv_rmse[fold_i] = np.sqrt(mean_squared_error(y_test, decoy_pred))
- corr = scipy.stats.spearmanr(decoy_pred, y_test)[0]
- cv_corr[fold_i] = corr if ~np.isnan(corr) else 0
- # calcualte train metrics, for sanity
- train_trinary_stimuli = trinary_stimuli_norm.loc[trinary_stimuli_norm.trinary_id.isin(train_set_inds)]
- train_binary_stimuli = binary_stimuli_norm.loc[binary_stimuli_norm.binary_id.isin(train_set_inds)]
- train_trinary_ratio_pred = run_model(group_params, train_trinary_stimuli, model_type, return_p=1)
- train_binary_ratio_pred = run_model(group_params, train_binary_stimuli, model_type, return_p=1)
- train_decoy_pred = train_trinary_ratio_pred - train_binary_ratio_pred
- try:
- train_rmse[fold_i] = np.sqrt(mean_squared_error(y_train, train_decoy_pred))
- except ValueError:
- train_rmse[fold_i] = np.nan
- fold_i += 1
- return cv_rmse, cv_corr, train_rmse
- # %%
- AG_cv_rmse, AG_cv_corr, AG_train_rmse = cv_comp_model(folds, model_type='AG', init_params=AG_init_params)
- # %%
- RDN_cv_rmse, RDN_cv_corr, RDN_train_rmse = cv_comp_model(folds, model_type='RDN', init_params=RDN_init_params)
- # %%
- DN_cv_rmse, DN_cv_corr, DN_train_rmse = cv_comp_model(folds, model_type='DN', init_params=DN_init_params)
- # %%
- pd.DataFrame({ 'train_rmse': [np.nanmean(AG_train_rmse), np.mean(RDN_train_rmse), np.mean(DN_train_rmse)],
- 'rmse': [np.nanmean(AG_cv_rmse), np.mean(RDN_cv_rmse), np.mean(DN_cv_rmse)],
- 'r': [np.nanmean(AG_cv_corr), np.mean(RDN_cv_corr), np.mean(DN_cv_corr)]},
- index=['AG', 'RDN', 'DN'])
- # %% [markdown]
- # ### fitting
- # %%
- AG_group_params = optimize.fmin(run_model, AG_init_params, args=(raw_choices_stimuli, 'AG', 0),
- maxiter=1e4, disp=False)
- RDN_group_params = optimize.fmin( run_model, RDN_init_params, args=(raw_choices_stimuli, 'RDN'),
- maxiter=1e4, disp=False)
- DN_group_params = optimize.fmin( run_model, DN_init_params, args=(raw_choices_stimuli, 'DN'),
- maxiter=1e4, disp=False)
- # %%
- def get_fitted_decoy_effects(group_params, model_type='AG'):
- """
- Return the in-sample model-predicted decoy effects per lottery set.
- Applies the fitted ``group_params`` to the normalized trinary and
- binary stimuli, computes ``P(A)`` in each, and returns a DataFrame
- with one row per set containing ``P_a_trinary``, ``P_a_binary`` and
- the resulting predicted decoy effect column ``decoy_{model_type}``.
- """
- trinary_P_a = run_model(group_params, trinary_stimuli_norm, model_type=model_type, return_p=1)
- binary_P_a = run_model(group_params, binary_stimuli_norm, model_type=model_type,return_p=1)
- decoys = trinary_P_a - binary_P_a
- fitted_decoys = pd.DataFrame({'trinary_id': trinary_stimuli.trinary_id,
- 'P_a_trinary': trinary_P_a,
- 'P_a_binary': binary_P_a,
- f'decoy_{model_type}':decoys})
- return fitted_decoys
- # %%
- AG_fitted_decoys = get_fitted_decoy_effects(AG_group_params, model_type='AG')
- RDN_fitted_decoys = get_fitted_decoy_effects(RDN_group_params, model_type='RDN')
- DN_fitted_decoys = get_fitted_decoy_effects(DN_group_params, model_type='DN')
- # %%
- pd.DataFrame({ 'AG': AG_fitted_decoys.decoy_AG.values,
- 'RDN': RDN_fitted_decoys.decoy_RDN.values,
- 'DN': DN_fitted_decoys.decoy_DN.values,
- 'actual': decoy_effects.decoy_effect_A.values}).corr()
computational_models.ipynb at commit 7a034b0, under CC-BY-4.0 · at the source
Overview
- Sagol School of Neuroscience, Tel Aviv University, Tel Aviv, Israel
- Gray School of Medical Sciences, Gray Faculty of Medical & Health Sciences, Tel Aviv University, Tel Aviv, Israel
- Coller School of Management, Tel Aviv University, Tel Aviv, Israel
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.
Repository
Its files are read in the Code ↔ Paper reader above, with 18 matches between paragraphs and lines of code.
asafmm/neuro_decoy_effect
7a034b0a235946556b5a0113e7db85a95deabbd1, 25 May 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
19 files
- code/
behavioral_computational , Jupyter, 34 lines/ choice_main.ipynb - code/
behavioral_computational , Jupyter, 372 lines, 3 matches/ computational_models.ipy nb - code/
behavioral_computational , Jupyter, 96 lines, 2 matches/ ddms/ ddms_model_eval.ipynb - code/
behavioral_computational , Python, 379 lines, 1 match/ read_files.py - code/
mri/ , Jupyter, 200 linesfig2_CV_visualization.ip ynb - code/
mri/ , Jupyter, 157 lines, 1 matchfig2_fitting.ipynb - code/
mri/ , Jupyter, 519 lines, 2 matchesfig2_predictions.ipynb - code/
mri/ , Jupyter, 324 lines, 3 matchesfig3_attribute_represent ation_levels.ipynb - code/
mri/ , Jupyter, 434 lines, 3 matchesfig4_rep_geometry.ipynb - code/
mri/ , Python, 131 linesutils/ load_params.py - code/
mri/ , Python, 89 linesutils/ lottery_sets.py - code/
mri/ , Python, 238 linesutils/ mri_subject.py - code/
mri/ , Python, 169 lines, 1 matchutils/ rdm_regression.py - code/
mri/ , Python, 118 linesutils/ rdms.py - code/
mri/ , Python, 78 linesutils/ read_subjects_data.py - code/
mri/ , Python, 158 lines, 2 matchesutils/ stepwise_rdm.py - code/
mri/ , Python, 68 linesutils/ visualization.py - LICENSE, License, 395 lines
- README.md, Text, 119 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: asafmm/
neuro_decoy_effect
Read it in the paper: doi.org/10.1038/s41467-026-74462-6.
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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 17 scripts, each with its path and the digest of its content;
- 18 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.
Code and data availability statement
The paper has a code and data 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: asafmm/
neuro_decoy_effect
Read it in the paper: doi.org/10.1038/s41467-026-74462-6.
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, 4 authors, 2 keywords, 8 MeSH terms, 1 funder, 48 references.
Cite
This paper
Madar, A., Zemer, T., Tavor, I., & Levy, D. J. (2026). Neural similarity between choice options predicts group-level context effects. Nature communications, 17(1), 7816. https://
BibTeX
@article{madar2026neural
author = {Madar, Asaf and Zemer, Tom and Tavor, Ido and Levy, Dino J},
title = {{Neural similarity between choice options predicts group-level context effects}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7816},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42324265},
pmcid = {PMC13439569}
}
RIS
TY - JOUR
AU - Madar, Asaf
AU - Zemer, Tom
AU - Tavor, Ido
AU - Levy, Dino J
TI - Neural similarity between choice options predicts group-level context effects
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 7816
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Neural similarity between choice options predicts group-level context effects",
"container-title": "Nature communications",
"author": [
{
"family": "Madar",
"given": "Asaf"
},
{
"family": "Zemer",
"given": "Tom"
},
{
"family": "Tavor",
"given": "Ido"
},
{
"family": "Levy",
"given": "Dino J"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "7816",
"DOI": "10.1038/
"PMID": "42324265",
"PMCID": "PMC13439569",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
21
]
]
}
}
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/s41467-026-73153-6 [code]
- Latent neural architecture organising shared aesthetic evaluations of visual artworks.Journal: Nature communicationsIn common: Pingouin, Pillow, PyTorch, 6 other tools, cognitive, 7 references
- [2] doi:10.1038/s44220-026-00680-y [code]
- The neuroimaging correlates of depression established across six large-scale population datasets.Journal: Nature. Mental healthIn common: Pillow, statsmodels, seaborn, 5 other tools, 6 references
- [3] doi:10.21203/rs.3.rs-9326213/v1 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: Research Square (preprint)In common: Pillow, NiBabel, PyTorch, 6 other tools, cognitive, 4 references
- [4] doi:10.64898/2026.03.09.710558 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: bioRxiv (preprint)In common: Pillow, NiBabel, PyTorch, 6 other tools, cognitive, 4 references
- [5] doi:10.1371/journal.pbio.3003684 [code]
- The retrieval of previously learned motor memories is facilitated by the reinstatement of default mode network manifold structures.Journal: PLoS biologyIn common: Pingouin, NiBabel, seaborn, 5 other tools, cognitive, 4 references
- [6] doi:10.1371/journal.pbio.3003856 [code]
- Aging and metabolism contribute separately to brain-body health.Journal: PLoS biologyIn common: NiBabel, statsmodels, PyTorch, 6 other tools, 4 references
- [7] doi:10.1002/ana.78203 [code]
- AI-Driven Mapping of Seizure Spread Patterns.Journal: Annals of neurologyIn common: Pingouin, Pillow, NiBabel, 8 other tools, 1 reference
- [8] doi:10.1038/s41467-026-74466-2 [code]
- Neuromorphic hierarchical modular reservoirs.Journal: Nature communicationsIn common: Pingouin, NiBabel, statsmodels, 6 other tools, 3 references
- [9] doi:10.1167/jov.26.5.7 [code]
- Representations in vision and language converge in a shared, multidimensional space of perceived similarities.Journal: Journal of visionIn common: Pillow, NiBabel, statsmodels, 7 other tools, cognitive, 1 reference
- [10] doi:10.1002/hbm.70469 [code]
- VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI.Journal: Human brain mappingIn common: Pillow, NiBabel, PyTorch, 6 other tools, 3 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: 1 repository of the authors' code, each at its verified commit and with its license, 17 scripts, and 18 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:dabd48f67bf9b3f2…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
