diff --git a/models/riesgo.py b/models/riesgo.py index 9381958..738cbeb 100644 --- a/models/riesgo.py +++ b/models/riesgo.py @@ -99,14 +99,14 @@ REGLA_SINTETICA_TEA = {"base": 0.02, "mchat_medio": 0.10, "mchat_alto": 0.30, "u class RiesgoSinteticoTea: """El sustituto determinista de TEA, sobre el marco de `tea/cohorte_tamizaje` (T-21e). Sin MLflow. - La probabilidad de un diagnóstico de TEA al horizonte (2 años, el de la cohorte) es + La probabilidad de un diagnóstico de TEA al horizonte (4 años = 48 meses, el de la cohorte) es `REGLA_SINTETICA_TEA["base"]`, más `mchat_medio` o `mchat_alto` según `mchat_0`, más `ucin` si `ingreso_ucin` es 1, más `apgar_bajo` si `apgar_5min` es menor que `apgar_corte`, con tope. Sin intervalo. No es un modelo clínico. """ def __init__(self, cohorte_url: str = "tea/cohorte_tamizaje", desenlace: str = "d", - horizontes: tuple[float, ...] = (2.0,)): + horizontes: tuple[float, ...] = (4.0,)): self.cohorte_url = cohorte_url self.desenlace = desenlace self.horizontes = tuple(horizontes) diff --git a/tests/test_riesgo.py b/tests/test_riesgo.py index 030d93c..75c26d1 100644 --- a/tests/test_riesgo.py +++ b/tests/test_riesgo.py @@ -64,7 +64,7 @@ COLUMNAS_TEA = ["pac_id", "fecha_indice", "d", "t", "mchat_0", "apgar_5min", "in def test_el_sustituto_de_tea_cumple_el_contrato_y_lee_su_cohorte(): estimador = RiesgoSinteticoTea() assert isinstance(estimador, EstimadorDeRiesgo) - assert estimador.cohorte_url == "tea/cohorte_tamizaje" and estimador.horizontes == (2.0,) + assert estimador.cohorte_url == "tea/cohorte_tamizaje" and estimador.horizontes == (4.0,) def test_la_regla_de_tea_suma_mchat_ucin_y_apgar_bajo():