Commit Graph

43 Commits

Author SHA1 Message Date
edgar a4ddad5c8e Cohorts: their definitions, rules and builder, from the indicator kit 2026-11-08 17:28:24 -06:00
edgar 55dd971a1f Follow Persistance's English names 2026-11-08 17:28:24 -06:00
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 f070d9f037 Merge pull request 'Layout: per-domain folders, io, steps and pipelines, and one command line' (#4) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/models/pulls/4
2026-11-06 05:36:35 +00: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 29fa8def2a Merge pull request 'Layout: per-domain folders, io, steps and pipelines, and one command line' (#3) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/models/pulls/3
2026-11-04 19:09:10 +00:00
edgar 2d22409e1f Layout: per-domain folders, io, steps and pipelines, and one command line 2026-11-04 12:48:41 -06:00
edgar ec85cae5aa Merge pull request 'Feature/model proto' (#2) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/models/pulls/2
2026-11-04 17:29:45 +00:00
edgar b06ff5ce52 notebooks: CaCu CIN2+ exploratory analysis of the surveillance cohort, from its build's Parquet file 2026-11-04 11:07:01 -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 ec36df6a2c Merge pull request 'Feature/model proto' (#1) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/models/pulls/1
2026-11-03 21:31:29 +00:00
edgar dd94aba1eb testing: CacuStandIn as a helper for other code's tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:20:15 +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 d6f7acc1fa STADIN not necessary for now 2026-11-03 21:15:15 +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
edgar 28ff4605f3 MD-008: prueba de concepto del modelo CIN2+ con MLflow (riesgo_logistico)
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>
2026-10-22 20:48:30 +00:00
rodrigo 2b855be12d Integra T-21h en models
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:55:13 +00: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 ee1c307d57 Integra T-21g en models: RiesgoSinteticoCama
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:14:39 +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 86b508cba8 Integra T-21f en models: RiesgoSinteticoTea
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 12:56:20 +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 73547f2bb1 add readme 2026-09-21 10:37:40 -06:00
Roberto Treviño Cervantes ca9d3ad81f initial commit 2026-09-21 10:23:42 -06:00