Gradient fits reject an experiment whose only data file is a .prop: 'no routing was supplied'
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
Reproduce the failure with repro_function_heavy.py and prop_only.conf, then compare it with lbfgs.conf, which adds an .exp file and succeeds. Trace the ExperimentRouting mentioned in the error for constraint-only experiments, and confirm the behavior with parallel and default worker counts. Done means the constraint-only gradient fit either runs without the late routing error or is rejected during configuration, with the spurious parameter warning addressed if it is in scope.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Gradient fits fail for an experiment whose only data file is a BPSL .prop file.
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 prop_only.conf -o
prop_only.conf declares the experiment as experiment: e1, data: calls.prop, t_end: 1, n_steps: 1, with objective = sos, qualitative_scale = fit s, and job_type = lbfgs.
Observed
After about 11–13 s, the run fails:
Error: Gradient-based fitting (job_type = lbfgs) cannot differentiate this fit's objective: Constraint reads observable 'f0' from model 'model' suffix 'e1', but no routing was supplied for it; provide an ExperimentRouting for every (model, suffix) a constraint reads (routings[(model, suffix)]).
-> Use a metaheuristic job_type instead (e.g. job_type = de, the default, or pso / ss / cmaes), which needs no gradient.
This happens with parallel_count = 2 and with the default worker count, at verbosity = 1 and verbosity = 2.
Workaround: add any .exp file to the same experiment (experiment: e1, data: reps/r1.exp, …, calls.prop). The routing is then built, and the gradient fit runs and uses the constraint gradients (see lbfgs.conf in the repro).
Expected
Constraint-only experiments should get a routing, since the constraint gradient is otherwise available. Failing that, the refusal should come at configuration time.
As it is, the refusal comes only after the first model evaluations. In a larger model with about 20 s per evaluation (#976), a run printed nothing beyond the version line for 45 minutes before I stopped it. I didn't establish whether it would have reached this error.
Minor (same runs)
Every evaluation logs WARNING … could not set free parameter s=… (not found in this model) for the parameter named in qualitative_scale = fit s. That parameter is correctly not a model parameter, so the warning is noise.
- Lenguaje dominante
- Python
- Estrellas
- 25
- Forks
- 25
- Merge medio
- 4 h 5 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin 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 lanl/PyBNF
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug silent-incorrectness
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
Todos los issues de lanl/PyBNF
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
software-mansion-labs/Diplomat#20 ·
Los mantenedores suelen responder en 1 día
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPosiblemente ocupada @lijy91 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
libnativeapi/nativeapi#53 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
View Counts discarded due to field name mismatchPosiblemente ocupada @rsiva0400 la tomó hoy. Abiertosite-bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Model version publishes the new UK firm entity as a personPosiblemente ocupada @vahid-ahmadi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PolicyEngine/policyengine.py#764 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
spcl/HPCAgent-Bench#264 ·
Los mantenedores suelen responder en 1 día