open-spaced-repetition / go-fsrs Goto Github PK
View Code? Open in Web Editor NEWGo Module for FSRS
License: MIT License
Go Module for FSRS
License: MIT License
The implementation of ts-fsrs:
First report at open-spaced-repetition/py-fsrs#6
ts-fsrs and py-fsrs have been updated to FSRS-5. I plan to update go-fsrs to FSRS-5 in the next month. Related PR:
我目前正在重构 go-fsrs,模仿了一下 Anki 的一些调度设计
分支开在这里了:https://github.com/L-M-Sherlock/go-fsrs/tree/refactor
这几天会继续完善一下
Hello, I'm trying to incorporate this into my project but am not sure that I'm using it correctly.
When a new card is added, a score of fsrs.Easy
will schedule it for 11 days out, wheras all other ratings will schedule it for the same day it was created .
// adding a card to the DB for the first time
card := fsrs.NewCard()
// grading a card
params := fsrs.DefaultParam()
schedulingMap := params.Repeat(card, time.Now())
cardInfo, ok := schedulingMap[fsrs.Rating(score)]
if !ok {
...
}
updatedCard := cardInfo.Card
// then updating the row in the DB with all of the values from updatedCard
When a card is first added to the DB, do any of the values need to be updated from what NewCard
returns? Is there some other initialization I should be doing?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.