Reveal semantic contiguity in recall transitions using embedding distances.
The distance-conditioned response probability (Distance-CRP) replaces serial lags with semantic or spatial distances supplied by the caller. Each recall transition is assigned to a distance bin and availability is tallied as the set of bins containing at least one unrecalled item at the moment of choice.
\[\text{CRP}(d) = \frac{\text{actual transitions in distance bin } d}{\text{available transitions in distance bin } d}\]
Downward-sloping curves indicate a semantic contiguity effect: participants preferentially transition to items that are semantically similar to the just-recalled item.
Workflow
Code
import osimport matplotlib.pyplot as pltimport numpy as npimport warningsfrom jaxcmr.analyses.distcrp import plot_dist_crpfrom jaxcmr.helpers import find_project_root, generate_trial_mask, load_data, save_figurewarnings.filterwarnings("ignore")