domain = "cacu" scenario = "survival" cohort = "cacu/cohorte_total" outcome = "muerte" # 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.survival.model", "models.cacu.survival.population", "models.cacu.survival.report", "models.steps.indexing"] description = """ Prototipo: mortalidad por cualquier causa a 1, 3 y 5 años del diagnóstico de cáncer (provisional: la primera biopsia \ con carcinoma invasor o in situ), a partir de la edad al diagnóstico y de la citología (categorías de KPNC) y el VPH más \ recientes hasta él. Supervivencia por intervalos del pipeline SEER (regresión logística y red bayesiana combinadas), \ como la de CaMa. Sin estadio, tratamiento ni validación clínica; la defunción se conoce solo si el hospital la \ registra.""" # What the model's number is, as the patient's screen shows it. The model gives the probability of dying; the screen # shows its complement, the probability of surviving, with the interval's ends swapped. [estimand] quantity = "Probabilidad de supervivencia" description = "Probabilidad de que la paciente siga viva a cada horizonte desde el diagnóstico de cáncer." outcome = "Muerte por cualquier causa" index_date = "la primera biopsia con carcinoma invasor o in situ" horizons_unit = "años" covariates = "grupo de edad al diagnóstico, citología (categorías de KPNC) y VPH más recientes hasta él" complement = "supervivencia" [config] train_fraction = 0.7 # The model's horizons, in years; `survival.horizons` are the same in months. horizons_years = [1.0, 3.0, 5.0] # The level of each risk's interval: per combination of the covariates, the percentiles of `risk_interval_replicas` # refits on bootstrap resamples of the training members. None gives no interval. risk_interval_level = 0.95 risk_interval_replicas = 100 # The age at the index in bands, in years. The cytology and HPV are the most recent up to the index, at any distance. age_cuts = [35, 45, 55] # The scenario's index and rules, over its source cohort (models/steps/indexing.py). PROVISIONAL: the diagnosis is the # first biopsy reported as carcinoma, invasive or in situ (`CARCINOMA`, `CIS`), which is both the inclusion criterion and # the index date; out: no birth date (no age), a death on or before the biopsy. The recruitment window is the source # cohort's. [config.index] kind = "primera_biopsia_invasora" event_grades = ["CIS", "CARCINOMA"] # PROVISIONAL (sin_definir): the data are left-truncated; 0 keeps everyone. observacion_previa_minima_dias = 0 # The SEER pipeline's interval survival (models/cama/seer_survival/survival_models.py), with CaMa's settings but the # horizons, the follow-up cap and the HBN's parents. [config.survival] age_mode = "categorizada" include_age = true age_cuts = [35, 45, 55] hbn_fixed_parents = [] # no expert parents defined for CaCu yet: learned by the BDeu score hbn_age_parent = false hbn_parents = "fijos" # as the SEER pipeline: the parents learned on the cohort are kept in the bootstrap covariates = [] horizons = [12, 36, 60] # months censoring = "riesgo" # a model per interval using all the follow-up combine = true # one LR + HBN indicator, per-interval stacking weights show_individual = false stack_folds = 5 stack_shrink = 20 n_boot = 100 n_boot_sub = 100 seed = 42 hbn_ess = 1000 hbn_max_parents = 5 k_ident = "clasico" curves = "ajustada" adjust_step = 3 show_raw_km = true ylim_main = [] inset_zoom = false inset_months = 60 cap_months = 60 # follow-up is cut here: a later death counts as alive min_events_sub = 5 ks_max_seconds = 120 ks_sub_max_seconds = 180 xlim_sub = [] ylim_sub = {} # What the dashboard's survival chart says (provisional: to be defined with the clinicians). [config.etiquetas] titulo = "Supervivencia después de la biopsia con carcinoma invasor o in situ" eje_x = "Meses desde el diagnóstico" eje_y = "Supervivencia S(t)" km_crudo = "Kaplan-Meier (IC 95 % Greenwood)" weibull = "Weibull" weibull_fraccional = "Weibull fraccional" puntos = "LR + HBN combinado (IC 95 % bootstrap)" # KPNC's index cytology categories, from least to most severe, and the codes of each from the squamous (Bethesda) and # the glandular result (as `cin2_pim`); with both results the more severe category wins. [config.cytology] NILM = ["NORMAL"] ASC-US = ["ASC-US"] LSIL = ["LIEBG"] ASC-H = ["ASC-H"] AGC = ["AGC"] "HSIL+" = ["LIEAG", "CIS", "ADENOCARCINOMA"]