-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to input data from obsidian-spaced-repetition-recall, ob-revlog.csv, into optimizer #13
Comments
Could you share the ob-revlog.csv with me? I haven't implement the method because I don't have sample to test it. |
ob_revlog.csv |
@Newdea 表头好像不太对。应该是 card_id, review_time, review_rating, review_state, review_duration 才对。 |
可能只是表头生成出问题的。数据按照分隔符(,)还是有五行的。读取数据的时候,可以考虑把表头忽略掉,重新赋值。 |
这个表格是更新插件前的旧表,需要更新到最新的插件,把旧表删除,再复习的时候就按新表头保存了 |
请问是只删除这个ob_revlog.csv吗?另外的tracked_files.json不需要处理(别删!若删除的话,所有记录都会消失的)。 安装新插件(https://github.com/open-spaced-repetition/obsidian-spaced-repetition-recall/releases/ ;V4),将新的三个文件覆盖原来的文件。 |
我晚上看下,可能是个bug |
ob_revlog.csv |
@Newdea, 感觉有点奇怪,为什么每张卡片的第一次学习的 review_state 都是 2,不是 0? |
他已经复习过多次,而之前的数据没有记录上 |
好的 |
所以到底怎么才能得到优化后的参数呢? |
目前数据不足,还无法测试。 |
我先加入这个 feature 支持吧。 |
先装一下 fsrs-optimizer
然后在你 ob_revlog.csv 的文件目录下,运行下面这个命令
就可以优化了。 |
我在google colab里面尝试上述方法,运行出错的。 Timezone list: https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568
|
优化器使用过程中需要通过交互输入参数。CLI 的维护者应该没在 Colab 上测过,没有做适配。
后面接个 -y 就可以跳过输入参数,直接用默认配置。 |
加上参数"-y"仍然报错的,可能是输入文件的问题。 |
我在本地测试了一下,发现只有一条有效数据,数据不够优化,就报错了。 |
谢谢。请问数据是否有效的判断标准是? |
每张卡片的复习数据的第一条的review_state是否为0 |
不好意思,加一个问题。请问一般需要多少条有效数据才能进行优化呢? |
一般来说至少需要 100 条 |
谢谢。 |
I tried to input the data from obsidian-spaced-repetition-recall, ob-revlog.csv, into optimizer in the colab. I could not find the right method for the data, ob-revlog.csv.
Thank @L-M-Sherlock and @Newdea for your help. Based on the answer below, the solution are as followed:
# bash python -m pip install fsrs-optimizer python -m fsrs_optimizer /path/to/ob_revlog.csv -y
NB:
If the number of valid records is too small (<100), the program would crash.
The text was updated successfully, but these errors were encountered: