job_type = check crashes with KeyError when the noise scale is a free parameter (sigma = fit s)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Reproduce the failure with repro_function_heavy.py and check.conf, then start at pybnf/algorithms/model_check.py:run_check and follow the traceback through pybnf/objective.py and pybnf/noise/source.py:value. Done means job_type = check no longer raises KeyError for an estimated noise scale, instead gives the expected handling, and the cleanup AttributeError is addressed or explicitly covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
job_type = check crashes when the noise scale is a free parameter (sigma = fit s).
Environment: PyBNF 1.8.1 (5ecb1f69), bngsim 0.15.0, Python 3.12, macOS arm64.
Reproduce
Use the script from #976, then run:
python repro_function_heavy.py repro 300 30
cd repro && pybnf -c check.conf -o
check.conf sets job_type = check, noise_model = normal, sigma = fit s, qualitative_scale = fit s, and loguniform_var = s 0.2 0.20002. Its experiment holds 20 replicate .exp files plus a .prop file.
Observed
Sorry, an unknown error occurred: KeyError: 's'
File "pybnf/pybnf.py", line 748, in main
File "pybnf/algorithms/model_check.py", line 91, in run_check
File "pybnf/objective.py", line 352, in evaluate_multiple
File "pybnf/objective.py", line 586, in evaluate
File "pybnf/objective.py", line 2085, in eval_point
File "pybnf/objective.py", line 1232, in _noise_values
File "pybnf/noise/source.py", line 148, in value
KeyError: 's'
It is followed by AttributeError: 'ModelCheck' object has no attribute 'cleanup' from pybnf/pybnf.py, line 104, in _finalize. That looks like a sibling of #569.
Expected
Model checking should either use the declared value of the noise parameter, or refuse up front with a plain message that an estimated noise scale needs a value.
Workaround: sigma = fix_at <value>, plus explicit tolerance clauses in place of qualitative_scale.
Also seen
The information criteria printed after a fit count only the quantitative data points and ignore the BPSL observations. In the original case this printed AIC=… (k=28, n=20, …) for 20 replicates plus 2,760 constraints. That may be intended, but it would be worth stating.
- Lingua principale
- Python
- Stelle
- 25
- Fork
- 25
- Merge medio
- 4h 5m
- PR unite (30g)
- 10
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 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug silent-incorrectness
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
gh-sync ship audits cards before writing station done, so every ship reports false STATUS findingsApertaharness
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mruangutai/harness#2455 ·
I maintainer di solito rispondono entro 1 giorno
-
stripthink leaves thinking text in place when the chat template opens the think tag in the promptForse già presa @MaiAditya l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
xcorr sizes its bin array from the largest observed m/z, so one out-of-range peak kills the runForse già presa @BioGeek l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
instadeepai/winnow#312 ·