fasiha / ebisu

Public-domain Python library for flashcard quiz scheduling using Bayesian statistics. (JavaScript, Java, Dart, and other ports available!)
https://fasiha.github.io/ebisu
The Unlicense
314 stars 32 forks source link

Last cell of notebook does not run #12

Closed MooersLab closed 5 years ago

MooersLab commented 5 years ago
# As above: slow!
%timeit ebisu.predictRecall(database[0]['model'], 100., exact=True)

# Cache a value using the `cacheIndependent` helper, and allow `exact=False` (the default):
independent = ebisu.cacheIndependent(database[0]['model'])
%timeit ebisu.predictRecall(database[0]['model'], 100., independent=independent)

Error

4.64 µs ± 174 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-8-53ab2e313a25> in <module>
      3 
      4 # Cache a value using the `cacheIndependent` helper, and allow `exact=False` (the default):
----> 5 independent = ebisu.cacheIndependent(database[0]['model'])
      6 get_ipython().run_line_magic('timeit', "ebisu.predictRecall(database[0]['model'], 100., independent=independent)")

AttributeError: module 'ebisu' has no attribute 'cacheIndependent'

I git pulled the updates and reinstall ebisu. I am using Python3.7 from macports on Mac OS X.

fasiha commented 5 years ago

Oh my goodness, many, many thanks for this warning! I'm going to make the task of running the Jupyter Notebook part of the release task so it doesn't keep breaking on you 😞!

MooersLab commented 5 years ago

The last cell of the notebook now works. Many thank you!!!