feat: batch Bayesian optimization

未关闭
#1,078 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Begin by identifying BNGsim's fitting workflow with PyBioNetFit and its existing CPU batch execution, then select a dose-response or time-series problem and fix the data, bounds, and scoring rule. Compare joint batch expected improvement with individually ranked expected improvement and the current workflow, using matched prediction models, candidate pools, batch sizes, and simulation budgets. Report best fit and time to target quality, separating batch selection time from simulation time; the optional response-curve refinement study is a further extension.

由索引模型根据 Issue 内容生成。

描述

Explore batch Bayesian optimization for fitting dose-response and time-series data

If we can evaluate N parameter sets at once, how should we choose those N sets to make the most progress toward a good fit?

Batch Bayesian optimization uses results from earlier simulations to predict how well untested parameter sets might fit the data and how uncertain those predictions are. It uses those predictions to choose a group of parameter sets to evaluate together. Two candidates may each look promising on their own, but if they are likely to succeed or fail together, it may be more useful to pair one of them with a candidate from another region.

Proposed experiment

Use an existing implementation of batch expected improvement. This method chooses a batch based on how much its best member is expected to improve on the best fit found so far.

  1. Choose a dose-response or time-series fitting problem. Fix the data, parameter bounds, and scoring rule for all runs.
  2. Start with a common set of simulations. Use their scores to choose the next batch of parameter sets. Evaluate each set against the full dataset, return one score per set, and repeat.
  3. Compare joint batch selection with a simpler approach that ranks candidates individually by expected improvement and takes the top N. Use the same prediction model, candidate pool, batch size, and simulation budget for both methods. Include BNGsim's current fitting workflow with PyBioNetFit as a practical baseline.
  4. Repeat the comparison for several batch sizes and starting samples. Report the best fit reached within the simulation budget and the elapsed time to reach a specified fit quality. Include the time spent choosing each batch.

BNGsim's existing CPU batch execution is enough for this experiment. The timings should distinguish batch selection from simulation, so we can tell whether faster simulations on a GPU would change which method is worthwhile.

Possible extension

If joint selection looks promising, test whether the optimizer can choose better batches by predicting the full response curve. For example, two parameter sets can have the same score even though one predicts a peak too early and the other predicts it too low. BNGsim can also calculate how each prediction changes when a parameter changes. One experiment would use that information to choose a batch based on the improvement expected after one additional refinement step. Give both methods the same refinement step to test whether anticipating it improves batch selection.

References

主要语言
Python
星标
26
派生
25
平均合并
4 小时 25 分钟
30 天内合并 PR
9

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lanl/PyBNF 的其他 Issue

查看 lanl/PyBNF 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。