Repository navigation
feat(heat): 广义指数衰减 exp(-λΔt^β) + 注入排序热度乘数(#218,rebase 接管自 #234) - #237
Merged
Merged
Conversation
- heat.js: 衰减式由幂律 H=1/(1+λΔt)^α 换为广义指数 H=exp(-λ·Δt^β) (FadeMem v2 Eq4,维护者拍板选型;幂律在心理学/FSRS 文献有支持但不在 #164 论文集内,真实负载回放时两族 A/B);buildHeatSignals 返回 beta; λ=0 免疫位在指数式下语义不变(恒 1) - config: heatGlobalAlpha → heatGlobalBeta(0.5-2 默认 1.0,默认关期间零 迁移成本);heatEnabled 注释同步注入乘数口径 - service: injectCandidates 规则路 comparator 层内乘 heat——同级内乘数, priority 分层与 order=chrono 分页序不动;heat 关闭时不建表不算 heat, 权重恒 1,排序与改动前逐字节一致 - lib/client.js(唯一直改的 lib 文件): heatEnabled 补进 FEATURE_GROUPS 「记忆增强」组 + 双语名称/说明——feature flags 白名单第三处落位, 面板可启停=线上回滚开关 - README 配置表、CHANGELOG 同步 - test: heat.test.js 换 β 口径并补纯指数精确锚定 / β 形状对比 / touch 回温 3 例;inject-heat.test.js 新增 4 例(关闭一致 / 同层反超 / 免疫中性 / 不跨层);sleep-heat.test.js 注释换广义指数数值
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This was referenced Sep 19, 2026
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
与 #234 相同代码(作者 @heptaspirit,提交作者不变),由维护者 rebase 到最新 main 并解决 CHANGELOG 冲突(#233 已先合入,两处 [Unreleased] 合并为一个块)。
H=exp(-λ·Δt^β)(FadeMem v2 Eq4,[Feature] heat 热度衰减(D 批次):访问频率调制的记忆升权与自然降温(opt-in) #218 拍板)heatGlobalAlpha→heatGlobalBeta(0.5–2 默认 1.0)heatEnabled开启时;关闭排序逐字节不变)heatEnabled补进面板「记忆增强」组