quail.
Egg
(pres=None, rec=None, features=None, dist_funcs=None, meta=None, subjgroup=None, subjname='Subject', listgroup=None, listname='List', date_created=None, recmat=None, list_length=None)[source]¶Data object for the quail package
An Egg data object contains the data you need to analyze free recall experiments. This can be a single subject’s data, or a group of subjects. An Egg is comprised of a number of fields: the pres field contains the words/stimuli presented to the subject. The rec field contains the words/stimuli recalled by the subject. The feature field is optional, but may contain a dictionary of features for each stimulus. This field is necessary to run the fingerprint analyses. Related to the features is the dist_funcs dictionary (also optional). This dictionary specifies a set of distance functions required for the fingerprint analyses. Finally, the meta field is an optional dictionary that contains any details useful for identifying the egg object
Parameters: |
|
---|---|
Attributes: |
|
Methods
analyze ([analysis]) |
Calls analyze function |
crack ([subjects, lists]) |
Wraps crack_egg function to take an egg and returns a subset of the subjects |
get_pres_features ([features]) |
Returns a df of features for presented items |
get_pres_items () |
Returns a df of presented items |
get_rec_features ([features]) |
Returns a df of features for recalled items |
get_rec_items () |
Returns a df of recalled items |
info () |
Print info about the data egg |
save (fname[, compression]) |
Save method for the Egg object |
next | |
to_dict | |
to_json |
crack
(subjects=None, lists=None)[source]¶Wraps crack_egg function to take an egg and returns a subset of the subjects
Parameters: |
|
---|---|
Returns: |
|
save
(fname, compression='blosc')[source]¶Save method for the Egg object
The data will be saved as a ‘egg’ file, which is a dictionary containing the elements of a Egg saved in the hd5 format using deepdish.
Parameters: |
|
---|