For AI agents: the complete documentation index is available at https://open-spaced-repetition.github.io/ts-fsrs/zh-TW/llms.txt, the full documentation bundle is available at https://open-spaced-repetition.github.io/ts-fsrs/zh-TW/llms-full.txt, and this page is available as Markdown at https://open-spaced-repetition.github.io/ts-fsrs/zh-TW/guide/model/fsrs-4.md.
  • 繁體中文
  • FSRS-4

    FSRS-4 有 17 個可訓練權重,並使用冪函數遺忘曲線取代 FSRS-3 的指數曲線。

    共用符號和 Model 契約請參閱模型概覽。

    公式來源

    已依據 awesome-fsrs Wiki — FSRS-4 核對。

    遺忘曲線與間隔

    R(t,S)=(1+t9S)−1R(t,S)=\left(1+\frac{t}{9S}\right)^{-1}
    
    I(r,S)=9S(1r−1)I(r,S)=9S\left(\frac{1}{r}-1\right)
    

    初始記憶

    S0(G)=clamp⁡(wG−1,Smin,Smax)S_0(G)=\operatorname{clamp}\left(w_{G-1},S_{min},S_{max}\right)
    
    D0(G)=clamp⁡(w4−(G−3)w5,Dmin,Dmax)D_0(G)=\operatorname{clamp}\left(w_4-(G-3)w_5,D_{min},D_{max}\right)
    

    難度

    D∗=D−w6(G−3)D^*=D-w_6(G-3)
    
    D′=clamp⁡(w7w4+(1−w7)D∗,Dmin,Dmax)D'=\operatorname{clamp}\left(w_7w_4+(1-w_7)D^*,D_{min},D_{max}\right)
    

    複習後的穩定性

    Hard 時 HG=w15H_G = w_{15},否則為 11;Easy 時 EG=w16E_G = w_{16},否則為 11。

    Sf=w11D−w12((S+1)w13−1)ew14(1−R)S_f=w_{11}D^{-w_{12}}\left((S+1)^{w_{13}}-1\right)e^{w_{14}(1-R)}
    
    Sr=S[1+ew8(11−D)S−w9(ew10(1−R)−1)HGEG]S_r=S\left[1+e^{w_8}(11-D)S^{-w_9}\left(e^{w_{10}(1-R)}-1\right)H_GE_G\right]
    
    Sraw′(G)={Sf,G=1Sr,G∈{2,3,4}S'_{raw}(G)=
    \begin{cases}
    S_f,&G=1\\
    S_r,&G\in\{2,3,4\}
    \end{cases}
    

    最後,模型透過 clamp 將 Sraw′S'_{\mathrm{raw}} 限制在 Smin⁡S_{\min} 到 Smax⁡S_{\max} 之間。