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", "models.steps.indexing"] 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 (I-splines de PIMixture) estratificado por el VPH índice, con la \ citología índice en las categorías de KPNC como covariable (Cheung et al. 2020). 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"] } # The incidence's baseline cumulative hazard: { family = "weibull" }, or PIMixture's weakly-parametric # { family = "ispline", knots = k, order = o }, with k knots at quantiles of each stratum's observed times. The # finite times are whole years 1-5, so a basis of more than 5 functions (knots + order - 2) isn't identifiable. KPNC # table 1 is exactly order 4 with 3 knots (bayes-pim, chapter 6). incidence = { family = "ispline", knots = 3, order = 4 } # One mixture per value of these features; the other features enter the prevalence, and those listed here the # incidence. KPNC: stratified by HPV, cytology as covariate (Cheung et al. 2020). strata = ["hpv_positive"] incidence_features = ["cytology"] # A feature of the member's history before the index (e.g. the referral before a colposcopy); none in surveillance. history = {} # KPNC's index cytology categories, from least to most severe, and the codes of each from the squamous (Bethesda) and # the glandular result; the first is the reference. With both results the more severe category wins. Adenocarcinoma # has no KPNC row: it goes with the high-grade and malignant results. # The scenario's index and rules, over its source cohort (models/steps/indexing.py): the same as dbt's surveillance # cohort, applied in the pipeline. The recruitment window is the source cohort's. [config.index] kind = "primera_citologia" event_grades = ["LIEAG", "CIS", "CARCINOMA"] # PROVISIONAL (sin_definir): the data are left-truncated, so rules on earlier events read only what was recorded; # 0 keeps everyone. Raise it once the population starts with enough history (S-CPS-20). observacion_previa_minima_dias = 0 [config.cytology] NILM = ["NORMAL"] ASC-US = ["ASC-US"] LSIL = ["LIEBG"] ASC-H = ["ASC-H"] AGC = ["AGC"] "HSIL+" = ["LIEAG", "CIS", "ADENOCARCINOMA"]