Files
ai-titration/README.md
flt6 3c32c03c45 0603-1
Former-commit-id: 79f9eff524ee3778b6e010e5fc56d2060118c0fd
2025-06-03 12:26:07 +08:00

14 lines
683 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

状态管理逻辑:
- 滑动窗口
维护一个滑动窗口history记录最近end_bounce_time内的状态。
状态包括:时间,浓度,状态,当前截图
- 进入
1. middle: predictor返回middle立即进入slow状态。
2. about: 返回about且处于middle则进入about状态
3. end返回end置end_check标记开始检查
- check
1. middle: 进入middle的bounce_time后在最近bounce_time内middle比例<70%返回fast状态
2. about随着middle退出一起退出不单独处理
3. end进入end之后的end_bounce_time如果end_bounce_time内end比例<80%则实验终止逻辑否则从history中找到第二个end并继续check逻辑