start_point.txt labels values set by starting_params as 'sampled'
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Read Algorithm._emit_start_point in pybnf/algorithms/base.py and how sampler initialization applies starting_params and continue_run in pybnf/algorithms/samplers/base.py. Check the code and tests covering Results/start_point.txt labels and its legend. Done when rows seeded by either option identify that source and the legend defines both labels.
Written by the indexing model from the issue text.
Description
Results/start_point.txt exists so a reader can tell where a fit really started, and the source column is the part to read (docs/troubleshooting.rst, "Where did my fit actually start?"). For a sampler seeded with starting_params, every row says sampled. The file's own legend defines that as "drawn from the prior / bounds, as a population algorithm or sampler does". The values were not drawn. They are exactly the ones the user wrote.
Reproduce
An am run with an analytical objective, declared kcat, Km, alpha, with starting_params = 7 70 3:
# source: start_point -- a "start_point = <p> <v>" line
# sampled -- drawn from the prior / bounds, as a population
starts 1
starts_pinned 0
kcat 7 sampled 0.5 50
Km 70 sampled 1 500
alpha 3 sampled 0.1 20
The values are right (7, 70, 3, in declaration order), but the label says they were drawn at random.
continue_run = 1, which seeds every chain from adaptive_files/MLE_params.txt, takes the same branch, so reading the code, its rows are labelled sampled too. I did not run that case.
Where
Algorithm._emit_start_point in pybnf/algorithms/base.py (the source chain near line 2748) picks between refine, the start-point spellings, sampled, box_center, point and prior. Nothing in that chain knows about starting_params or continue_run, so a sampler that uses either one falls through to sampled. The sampler base applies both after the start point is resolved (pybnf/algorithms/samplers/base.py, lines 369–378).
Expected
These rows should say where the values came from, for example starting_params or continue_run, and the legend should define both. Every chain gets the same values, so the label is true for every chain, not only the one the file records.
Found during the review of #984.
- Dominant language
- Python
- Stars
- 25
- Forks
- 25
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/PyBNF
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug silent-incorrectness
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day