.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_create_multisubject_egg.py: ============================= Create a multisubject egg ============================= An egg is made up of two primary pieces of data: `pres`, which are the words/stimuli that were presented to a subject and `rec`, which are the words/stimuli that were recalled by the subject. .. code-block:: python # Code source: Andrew Heusser # License: MIT import quail import numpy as np # presented words presented_words = [[['cat', 'bat', 'hat', 'goat'],['zoo', 'animal', 'zebra', 'horse']],[['cat', 'bat', 'hat', 'goat'],['zoo', 'animal', 'zebra', 'horse']]] # recalled words recalled_words = [[['bat', 'cat', 'goat', 'hat'],['animal', 'horse', 'zoo']],[['bat', 'cat', 'goat'],['animal', 'horse']]] # create egg egg = quail.Egg(pres=presented_words, rec=recalled_words) # analyze and plot fegg = egg.analyze('accuracy') fegg.plot(plot_style='violin', title='Average Recall Accuracy') **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_create_multisubject_egg.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: create_multisubject_egg.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: create_multisubject_egg.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_