bidsaid.events.PresentationEventExtractor.extract_accuracies
- PresentationEventExtractor.extract_accuracies(response_map)[source]
Extract the accuracy (correct or incorrect) for each event.
Parameters
- response_map
dict[str, int | str] A dictionary mapping response codes, from “Stim Type” column (ie. “hit”, “miss”, “other”, “false alarm”, “incorrect”), to accuracy values (e.g., 0 for incorrect, 1 for correct).
Returns
- list[int] or list[str]
A list of accuracy values for each event (e.g., 0 = incorrect, 1 = correct).
- response_map