In [ ]:
%matplotlib inline
In [ ]:
# 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
egg.analyze('accuracy').plot(plot_style='violin', title='Average Recall Accuracy')