`simulate_convergence(batch_size=1)` fails on the first batch of a new study
Los mantenedores suelen responder en 3 días
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- data, testing-qa
Línea de trabajo
Start with simulate_convergence and estimate_confidence_interval, then read tests/integration/simulation/test_monte_carlo_release.py and its test_convergence_reads_the_checkpoint_once test. Reproduce with the release_study fixture, batch_size=1, and an empty log. Done when a fresh study handles the first batch without passing fewer than two observations to scipy.stats.bootstrap, with a test covering the behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
On a new study, simulate_convergence(..., batch_size=1) stops with an error after its first flight:
ValueError: each sample in `data` must contain two or more observations along `axis`.
The first batch leaves one result, and estimate_confidence_interval passes that single value to scipy.stats.bootstrap, which needs at least two. The input checks accept batch_size=1, so the call runs a simulation before it fails.
To Reproduce
On develop at 9bf63a04, with the release_study fixture from tests/integration/simulation/test_monte_carlo_release.py:
release_study.simulate_convergence(
target_attribute="max_speed", batch_size=1, max_simulations=4, random_seed=1
)
Expected behavior
Either the study keeps going until there are two results to bootstrap, or batch_size=1 is refused up front while the logs hold fewer than two rows. The first keeps batch_size=1 usable for a fresh study. A study resumed from logs that already hold a row works today, since its first interval sees two results; test_convergence_reads_the_checkpoint_once relies on that.
Additional context
I ran into this while measuring for #1198. It isn't in the #1209 list.
- Lenguaje dominante
- Python
- Estrellas
- 1.1k
- Forks
- 280
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketPy-Team/RocketPy
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RocketPy-Team/RocketPy#1255 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
RocketPy-Team/RocketPy#1241 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
RocketPy-Team/RocketPy#1202 ·
Los mantenedores suelen responder en 3 días
-
Monte Carlo test fixtures write their logs into the working directoryPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RocketPy-Team/RocketPy#1189 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
RocketPy-Team/RocketPy#1171 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de RocketPy-Team/RocketPy
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día