fe7f881ade
known_negative takes lists per key; the last negative carries every earlier one, and follow-up without a test isn't counted. docs/codificacion_pim.md gives the six example patients, each with its unit test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
26 lines
1.4 KiB
TOML
26 lines
1.4 KiB
TOML
domain = "cacu"
|
|
scenario = "cin2_pim"
|
|
cohort = "cacu/cohorte_vigilancia"
|
|
outcome = "cin2"
|
|
# What a registered version needs to load and predict, pinned to the installed versions when it's logged.
|
|
requirements = ["scikit-learn", "numpy", "pandas", "scipy", "cloudpickle"]
|
|
# The modules whose functions are the graph's nodes, in `with_modules`.
|
|
modules = ["models.cacu.cin2_pim.model"]
|
|
description = """
|
|
Prototipo: riesgo acumulado de CIN2+ (biopsia LIEAG, CIS o carcinoma) en la visita índice y a 1, 3 y 5 años, con un \
|
|
modelo de mezcla prevalencia (logística) e incidencia (Weibull) a partir de la citología y el VPH índice. Sin \
|
|
corrección del sesgo de verificación ni validación clínica."""
|
|
|
|
# The dataflow's config (`with_config`); each key is an input of the nodes that name it.
|
|
[config]
|
|
horizons_years = [0.0, 1.0, 3.0, 5.0]
|
|
event_grades = ["LIEAG", "CIS", "CARCINOMA"]
|
|
train_fraction = 0.7
|
|
# Provisional: a CIN2+ biopsy within this window of the index date counts as prevalent.
|
|
prevalent_window_months = 6
|
|
# The index sample's results: the first ones within these days of the index date.
|
|
index_sample_days = 30
|
|
# The results that make a visit free of CIN2+ without a biopsy: every key with one of its values (KPNC: HPV-negative
|
|
# with NILM or ASC-US; Cheung et al. 2020, doi:10.1097/LGT.0000000000000528).
|
|
known_negative = { bethesda = ["NORMAL", "ASC-US"], vph = ["NEGATIVO"] }
|