Code
import os
import matplotlib.pyplot as plt
import warnings
from jaxcmr.analyses.repsrac import plot_repsrac
from jaxcmr.helpers import find_project_root, generate_trial_mask, load_data, save_figure
warnings.filterwarnings("ignore")Measure serial recall accuracy at repeated-item positions, broken down by presentation index.
The repetition-index SRAC reports recall accuracy at study positions occupied by repeated items, split by whether the position is the item’s first, second, or later occurrence. This reveals how the benefit of repetition distributes across presentations.
Each curve shows recall accuracy across study positions for a given presentation index.
data_path — path to an HDF5 file containing a RecallDataset with repeated items.figure_dir — directory for saving figures.figure_str — base filename for the saved figure. Leave empty to display without saving.ylim — y-axis limits as a tuple, or None for automatic scaling.mixed_trial_query — selects trials containing repeated items.size — maximum number of study positions a single item can occupy.