From 474c598758f2ed599734eca33f62ea3a40438832 Mon Sep 17 00:00:00 2001 From: Kevin Klein <7267523+kklein@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:23:55 +0200 Subject: [PATCH] Update metalearners/metalearner.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Francesc Martí Escofet <154450563+FrancescMartiEscofetQC@users.noreply.github.com> --- metalearners/metalearner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metalearners/metalearner.py b/metalearners/metalearner.py index d9a7d63..13d9311 100644 --- a/metalearners/metalearner.py +++ b/metalearners/metalearner.py @@ -1158,7 +1158,7 @@ def init_args(self) -> dict[str, Any]: else None ), "fitted_nuisance_models": { - k: v + k: deepcopy(v) for k, v in self._nuisance_models.items() if k in self._prefitted_nuisance_models and k != PROPENSITY_MODEL },