`simulate_convergence()` cannot reproduce a study from a seed

未關閉
#1,077 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

@thc1006 已經在處理了。

開始於 2026年9月16日。

  • #1198 來自 @thc1006 —— 未關閉

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
python
領域
backend

研究方向

Read the simulate_convergence() implementation and the existing simulate() seed handling, then check the separately filed append-root persistence work and issue #1054 for context. Verify how simulation roots are derived across batches and what changes when batch size varies; done means a seeded study reproduces the same samples regardless of batching.

由索引模型根據 Issue 內容生成。

描述

Bug Monte Carlo
Context

simulate_convergence() runs batches of simulations by calling self.simulate(..., append=True) in a loop, but it has no random_seed parameter, so every batch derives a fresh root. A convergence study cannot be reproduced from a seed, and changing the batch size changes which roots each batch uses, so the same max_simulations does not map to the same set of samples.

A possible direction

Add a keyword-only random_seed to simulate_convergence() and use one root for the whole study, deriving each simulation's child from its absolute index the way simulate() already does. This leans on persisting the root for append (filed separately), so the two are probably best done together.

Noticed while reviewing #1054.

主要語言
Python
星號
1.1k
分支
280
平均合併
3 天 2 小時
30 天內合併 PR
24

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

RocketPy-Team/RocketPy 的其他 Issue

查看 RocketPy-Team/RocketPy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。