29 Commits

Author SHA1 Message Date
edgar 5d65730b98 Value checks with pandera on cohort files, read and written, and on estimates, written and stored 2026-11-06 08:21:24 -06:00
edgar 71e77f0c7e models cohorts list and show: a cohort's builds from both sources, and one build's file, hash and lineage 2026-11-06 08:21:24 -06:00
edgar 15ffeb3efe models report eda: the exploratory notebook run on a build's file, rendered with Quarto and kept as an MLflow run of the notebook's experiment 2026-11-06 08:21:24 -06:00
edgar 761b5b03bc Estimates stored as batches of risks in the domain's database: models store and run --store; a kit file is read as dbt's only when its producer is dbt 2026-11-06 08:21:24 -06:00
edgar 22d1fda0f3 CaCu CIN2+ prototype: a CIN2+ biopsy within a provisional 12-month window, predicted from the index sample's results 2026-11-06 08:21:24 -06:00
edgar 3853cc5522 Training, estimating and running on dbt cohort builds: runs and versions record the cohort file they used 2026-11-05 18:21:06 -06:00
edgar 9808701c46 Cohorts built from dbt's rules and exported, an idempotent run command and estimate; io split by responsibility, with stored predictions moved into the registry and the ONNX check into tracking 2026-11-05 16:12:23 -06:00
edgar 0fdab3651c models train: train a model from the command line 2026-11-04 23:36:46 -06:00
edgar 37fb292a4f CaCu's dummy model in its own folder 2026-11-04 21:38:37 -06:00
edgar 1f6e2df051 Remove the model catalog and its interface 2026-11-04 20:47:34 -06:00
edgar 122f71105a Export reads the timeline from dbt's view 2026-11-04 20:39:53 -06:00
edgar 27e29804aa Model interface over frames and a model catalog 2026-11-04 20:39:52 -06:00
edgar 34de6e9348 Standalone export of a kit cohort build to Parquet 2026-11-04 18:32:07 -06:00
edgar 2d22409e1f Layout: per-domain folders, io, steps and pipelines, and one command line 2026-11-04 12:48:41 -06:00
edgar f08b249eae training: every run records the code's git commit; PROD logs only models defined in a module 2026-11-04 00:49:26 +00:00
edgar 0489475b86 training, registry: TrainingRun.log_model with modelo_sha, and registry.resolve 2026-11-03 21:34:40 +00:00
edgar 449c67b19d contract: only the contract after removing the stand-ins
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>
2026-11-03 21:16:51 +00:00
edgar 5fa931d92d dags: the timeline is always read with an explicit known_until
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>
2026-11-03 20:27:05 +00:00
edgar bc15cc3e04 dags: reading nodes for a cohort build, its members and their timeline
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>
2026-11-03 20:19:03 +00:00
edgar c8bca59334 contract: translate the risk estimation contract to English
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>
2026-11-03 19:30:08 +00:00
edgar c11575f656 Merge feature/modelos-mlflow: the risk estimation contract and its stand-ins
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>
2026-11-03 19:28:36 +00:00
Roberto Treviño Cervantes f9d3b8f67e reorganization 2026-10-31 12:48:09 -06:00
Roberto Treviño Cervantes 6e8ed1003d drop cohort builder plumbing; use kit cohorte_armado builds for MLflow lineage 2026-10-30 11:19:21 -06:00
Roberto Treviño Cervantes cbb3b9c7b6 integration layer; merge work on indicators from forks with existing ingestion pipeline 2026-10-23 00:00:13 -06:00
rodrigo 92c5c69c2d T-21h: el sustituto de TEA a 4 años (48 meses)
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:55:13 +00:00
rodrigo e5526b9ec3 T-21g: RiesgoSinteticoCama, el sustituto de CaMa por BI-RADS índice
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 13:55:48 +00:00
rodrigo 04c8cbafd1 T-21f: RiesgoSinteticoTea, el sustituto de TEA sobre la cohorte de tamizaje
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 12:34:55 +00:00
rodrigo 4c5bccb805 T-21b: el contrato EstimadorDeRiesgo y el estimador sustituto RiesgoSintetico (ADR-MD-008)
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 09:29:21 +00:00
Roberto Treviño Cervantes ca9d3ad81f initial commit 2026-09-21 10:23:42 -06:00