From 2340c677a7fb9d0aa82c7041af9e2937f62f2e75 Mon Sep 17 00:00:00 2001 From: kklein Date: Mon, 24 Jun 2024 12:14:06 +0200 Subject: [PATCH] Apply pchs. --- metalearners/metalearner.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/metalearners/metalearner.py b/metalearners/metalearner.py index fa3acaa..2fcdcdf 100644 --- a/metalearners/metalearner.py +++ b/metalearners/metalearner.py @@ -1032,16 +1032,12 @@ def _scoring(self, scoring: Scoring | None) -> Scoring: def _default_scoring() -> Scoring: return { nuisance_model: [ - default_metric( - model_specifications["predict_method"](self) - ) + default_metric(model_specifications["predict_method"](self)) ] for nuisance_model, model_specifications in self.nuisance_model_specifications().items() } | { treatment_model: [ - default_metric( - model_specifications["predict_method"](self) - ) + default_metric(model_specifications["predict_method"](self)) ] for treatment_model, model_specifications in self.treatment_model_specifications().items() }