Implementing Ebisu, an alternative scheduling algorithm

Hi all, I’m currently attempting to implement Ebisu, an alternative scheduling algorithm in the form of an add-on. I’m running into a some bugs, and was hoping someone could take a look, and help me debug a little. It currently works fine for when new cards are added, but runs into some issues when a card is late. If someone could check my addon out and give me some thoughts that would be highly appreciated.

Specifically, my question is, when a card is being flushed, what is the card.ivl and card.due usually set to (specifically in the case where a card’s due date turns out to be in the past)? If you check out the init file, you’ll know what I’m talking about. Do I just set it to 1 or 0?

And does it make sense for me to set card.due = card.col.sched.today ?

1 Like