Guardar variables usadas en cada predicción

This commit is contained in:
2026-12-02 23:13:55 -06:00
parent d392cc02a5
commit fe1f284e00
4 changed files with 33 additions and 5 deletions
+1
View File
@@ -112,6 +112,7 @@ def test_survival_matches_the_current_model_and_publishes_patient_scenarios(monk
"stack_w_lr_36m", "stack_w_lr_60m"): # fmt: skip
assert metrics[name] == pytest.approx(current["metrics"][name], rel=RTOL), name
found = spec.predict(model, events)
assert all(set(json.loads(value)) == set(spec.features) for value in found['input_values'])
reference = pd.read_parquet(REFERENCE / "ref" / "survival.parquet")
both = found.merge(reference, left_on=["person_id", "horizon_years"],
right_on=["pac_id", "horizonte_anios"], validate="1:1") # fmt: skip