Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@L-M-Sherlock 新年快乐!最近打算实现下这个重排 #13 和延后 #33 的功能,
扒了下 重排 https://github.com/open-spaced-repetition/fsrs4anki-helper/blob/main/schedule/reschedule.py 的代码,跟你确认下:
是以原卡片(已有排程信息的)最后一次复习的日期card.last_review,根据卡片现有参数(s,d, r)算出的间隔,重新计算卡片的下次复习时间(卡片其它参数不更新)?
其中,如果
self.allow_to_past=false
且max_ivl
也是负值,计算出的新的复习时间应该还是过去的时间吧best_ivl = (max_ivl + min_ivl) // 2 if self.allow_to_past else max_ivl
另外,根据 重排的介绍 , 目前这个插件所有的下次复习时间都是使用
fsrs.repeat()
计算,是否就不用上这个功能。当然,如果后续要上跳过周末或节假日(目前并没有这个打算),要更新之前已经排程的卡片,这个应该还是有必要的。
Postpone 延迟的功能,也是以card.last_review重新计算下次复习时间,或
直接让用户自定义间隔,以现在日期重新计算下次复习时间?
只延后保留率高的,低的不延后
判断依据 ln(currentR)/ln(reqR(default=0.9))-1<0.15,即currentR>0.65,
在这个范围内的卡片可以延后,
新间隔是
原间隔*(1.05+0.05*随机1之内的数)+delay
默认用自动延后基本OK,但如果是指定x天后复习,这个算是重排还是延后,如果是一组多个卡片,可能会导致那天卡片数量增多,是否要启用均衡balance(启用的话,就可能导致提前几天或延后几天了)