ContextLab / quail

A python toolbox for analyzing and plotting free recall data
http://cdl-quail.readthedocs.io/en/latest/
MIT License
20 stars 10 forks source link

Naturalistic analyses #95

Closed andrewheusser closed 5 years ago

andrewheusser commented 6 years ago

This PR adds support for running classic free recall analyses using high-dimensional data including naturalistic stimuli. There are 3 new 'matching' modes to create a recall matrix:

We support a variety of distance functions (to compare presented/recalled stimuli) with a new argument, distance (anything supported by scipy.spatial.distance.cdist). These new modes can be specified in the analysis method like so:

egg.analyze('spc', match='smooth', distance='correlation').

These new modes apply to the following analyses: accuracy, spc, pnr, lagcrp.

In this PR, I also refactored and cleaned up the analysis code, separating each analysis into its own file in the folder 'analysis'. This makes the code more readable, modular and easier to maintain.

jeremymanning commented 6 years ago

@andrewheusser my understanding from our last conversation is that you’re still working on this— just let me know when it’s ready for review.