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

the last cell in the how-to notebook does not run #2

Closed MooersLab closed 6 years ago

MooersLab commented 6 years ago
for row in database:
    meanHalflife, varHalflife = ebisu.priorToHalflife(row['model'])
    print("Fact #{} has half-life of ≈{:0.1f} hours".format(row['factID'], meanHalflife))

TypeErro--------------------------------------------------------------------------- TypeError Traceback (most recent call last)

in () 1 for row in database: ----> 2 meanHalflife, varHalflife = ebisu.priorToHalflife(row['model']) 3 print("Fact #{} has half-life of ≈{:0.1f} hours".format(row['factID'], meanHalflife)) TypeError: 'float' object is not iterable r Traceback (most recent call last) in () 1 for row in database: ----> 2 meanHalflife, varHalflife = ebisu.priorToHalflife(row['model']) 3 print("Fact #{} has half-life of ≈{:0.1f} hours".format(row['factID'], meanHalflife)) TypeError: 'float' object is not iterable
fasiha commented 6 years ago

SO sorry about that, thank you so much for checking! I must have been using an older API for priorToHalflife there and never revisited the notebook after it changed. It is now fixed!

MooersLab commented 6 years ago

Hi Ahmed,

The final cell on the notebook now runs for me. Thank you very much for the fast reply. I think ebisu could be a valuable contribution.

Best regards,

Blaine

On Sat, Oct 6, 2018 at 12:13 PM Ahmed Fasih notifications@github.com wrote:

SO sorry about that, thank you so much for checking! I must have been using an older API for priorToHalflife there and never revisited the notebook after it changed. It is now fixed!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fasiha/ebisu/issues/2#issuecomment-427590782, or mute the thread https://github.com/notifications/unsubscribe-auth/AOeSC9VceUHnfwzAa8wE52cFkqKALaFaks5uiOSdgaJpZM4XLZ4Q .

-- Best regards,

Blaine

Blaine Mooers, Ph.D. Associate Professor Department of Biochemistry and Molecular Biology College of Medicine University of Oklahoma Health Sciences Center S.L. Young Biomedical Research Center Rm. 466 975 NE 10th Street https://maps.google.com/?q=975+NE+10th+Street&entry=gmail&source=g, BRC 466 Oklahoma City, OK 73104-5419

office: (405) 271-8300 lab: (405) 271-8313

Faculty webpage http://basicsciences.ouhsc.edu/biochemmolbiol/Faculty/bio_details/TabId/11753/ArtMID/30702/ArticleID/6430/Mooers-Blaine-HM-PhD.aspx X-ray lab (LBSF) http://research.ouhsc.edu/CoreFacilities/LaboratoryofBiomolecularStructureandFunction.aspx SSRL UEC https://www-ssrl.slac.stanford.edu/content/about-ssrl/advisory-panels/ssrl-users-organization/members/ssrluo-2016-executive-committee-members SSURF EasyPyMOL https://github.com/MooersLab/EasyPyMOL Molecular Graphics https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/moleculargraphicslinks.html

https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/MolecularGraphicsLinks.html Small Angle Scattering http://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/small-angle-scattering-links-27aug2014.html?sfvrsn=0 office: (405) 271-8300 lab: (405) 271-8313 e-mail: blaine-mooers@ouhsc.edu (or bmooers1@gmail.com)

fasiha commented 6 years ago

Thanks @MooersLab, we've been using it in a couple of flashcard apps, most recently fairly heavily with Curtiz, and having not seen any catastrophic failures (barring #1 which I hope to fix soon), my confidence in it is growing. I'm trying to work up the courage to ask Damien if he'd use it as the scheduling engine for Anki 😅, but Anki has so heavily invested in pre-scheduling due dates for cards, I'm sure it'd be a huge headache to unravel that assumption… I certainly cannot go back to having "due dates"—I study when I want to, sometimes a lot, sometimes not much, and the probabilities do their thing, and all is well 😊.