The notebook helper's run_fit ignores refine and bootstrap without a word
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 73/100
Direzione di ricerca
Start with examples/notebooks/pybnf_notebook.py and compare run_fit with the refine and bootstrap flow in pybnf.main; the issue asks that this work be shared or that unsupported settings be rejected. Add a test for refine or bootstrap and confirm the notebook helper either runs the requested phase or reports clearly that it is skipped. The _report_parallelism traceback is a separate reported problem to investigate in the same helper.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The notebook helper's run_fit (examples/notebooks/pybnf_notebook.py) runs only the main fit. It never runs the refine or bootstrap phases that pybnf -c runs, and it doesn't refuse a conf that sets them. A notebook user who sets bootstrap = 3 or refine = 1 gets the unrefined fit with no bootstrap replicates, and no message saying either step was skipped. This applies to every job type.
Found while reviewing #1066, which made the helper run the same start checks as pybnf.main. Reproduced on main at cbb8159c.
Reproduction
import os, sys
sys.path.insert(0, 'examples/notebooks')
import pybnf_notebook as nb
base = """edition = 2
objective = gaussian, mean = 0 0, variance = 1 1
uniform_var = g1 -10 10
uniform_var = g2 -10 10
random_seed = 1
job_type = de
population_size = 8
max_iterations = 20
"""
alg = nb.run_fit(base + "bootstrap = 3\n", "out_boot")
print(alg.config.config['bootstrap'], sorted(os.listdir(alg.res_dir)))
This prints 3 and ['sorted_params_0.txt', 'sorted_params_backup.txt', 'sorted_params_final.txt', 'start_point.txt']. No replicate runs and nothing reports one. With refine = 1 the output is the same.
The same conf through pybnf -c x.conf -o prints "Beginning bootstrap run 0" through 2 and "Bootstrapping complete", and writes Results/bootstrapped_parameter_sets.txt.
What should happen
Have run_fit run the refine and bootstrap phases as pybnf.main does, sharing that code rather than copying it. Otherwise, have build_algorithm refuse a conf that sets refine or bootstrap, saying the helper runs only the main fit. Either way, add a test.
Separately, run_fit prints a traceback ("'_SyncClient' object has no attribute 'scheduler_info'") from _report_parallelism on every run. It is caught and harmless, but it is noise in every notebook.
- Lingua principale
- Python
- Stelle
- 26
- Fork
- 25
- Merge medio
- 4h 25m
- PR unite (30g)
- 9
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lanl/PyBNF
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
min_objective stops a sampler run early and reports "Fitting complete": samplers should refuse itApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
bug minor
Difficoltà 1/5 1-3 ore Idoneità per principianti 92/100
-
bug minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Issue simili
-
docs(contributing): the two things that silently block a PRForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaavailable documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
Nixitov/Riptide-Native#944 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
JTHCode/secretguard#24 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 ·
I maintainer di solito rispondono entro 1 giorno