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

Aperta
#1,077 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@thc1006 ci sta già lavorando.

Dal 16/9/2026.

  • #1198 di @thc1006 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
1.1k
Fork
280
Merge medio
3g 2h
PR unite (30g)
24

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketPy-Team/RocketPy

Tutte le issue di RocketPy-Team/RocketPy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.