Feature/model proto #1

Merged
edgar merged 15 commits from feature/model-proto into dev 2026-11-03 15:31:30 -06:00
Member
  • Merges feature/modelos-mlflow for its risk estimation contract; riesgo_logistico.py stays out; README and pyproject.toml keep main's side.
  • riesgo.py → contract.py: RiskEstimator, Risk, Provenance. Fields that mirror the batch columns keep their names, so Provenance.as_dict() still
    matches Persistance. models/testing.py: CacuStandIn, a deterministic estimator for other code's tests.
  • models/dags/reading.py (adds apache-hamilton): cohort_build, members, known_until, timeline. The timeline is cut at the build's datos_as_of and at an explicit known_until (the build's conocida_hasta, or the moment of the read).
  • Tests: test_contract.py, test_reading_nodes.py. uv run pytest -q: 49 passed; test_scanned_vph_report_uses_tesseract_and_reports_confidence needs the tesseract binary on the host (fails on main too).
- Merges feature/modelos-mlflow for its risk estimation contract; riesgo_logistico.py stays out; README and pyproject.toml keep main's side. - riesgo.py → contract.py: RiskEstimator, Risk, Provenance. Fields that mirror the batch columns keep their names, so Provenance.as_dict() still matches Persistance. models/testing.py: CacuStandIn, a deterministic estimator for other code's tests. - models/dags/reading.py (adds apache-hamilton): cohort_build, members, known_until, timeline. The timeline is cut at the build's datos_as_of and at an explicit known_until (the build's conocida_hasta, or the moment of the read). - Tests: test_contract.py, test_reading_nodes.py. uv run pytest -q: 49 passed; test_scanned_vph_report_uses_tesseract_and_reports_confidence needs the tesseract binary on the host (fails on main too).
edgar added 15 commits 2026-11-03 15:29:20 -06:00
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entrena una logística sobre el marco de cacu/cohorte_vigilancia, la registra en
MLflow (MLFLOW_TRACKING_URI; en el despliegue, el 9705) y la sirve a la arista
`estimar` con EstimadorMlflow, que verifica el sha del artefacto. Sin pacientes
en MLflow. mlflow-skinny fijado a la versión del servidor; mlflow completo solo
en dev para las pruebas con sqlite.

CSO5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
riesgo_logistico.py stays out until the first real model; README and
pyproject keep main's side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
riesgo.py becomes contract.py: RiskEstimator, Risk, Provenance and the
CacuStandIn, TeaStandIn and CamaStandIn stand-ins. Fields that mirror
the batch columns keep their names, and the stand-ins' provenance is
unchanged. Tests say why each one exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The timeline is cut at the build's clinical and load cut-offs, so the
read can be repeated. Adds apache-hamilton.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
known_until is the build's conocida_hasta or, when the build has none,
the moment of the read; it's a node, so the run can record it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the helpers only the stand-ins used, tests the contract with an
estimator defined in the test, and updates the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
edgar merged commit ec36df6a2c into dev 2026-11-03 15:31:30 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ISSSTELEON/models#1