|
9 | 9 |
|
10 | 10 | from doubleml.data import DoubleMLDIDData, DoubleMLPanelData, DoubleMLRDDData, DoubleMLSSMData |
11 | 11 | from doubleml.data.base_data import DoubleMLBaseData |
12 | | -from doubleml.double_ml_framework import DoubleMLFramework |
| 12 | +from doubleml.double_ml_framework import DoubleMLCore, DoubleMLFramework |
13 | 13 | from doubleml.double_ml_sampling_mixins import SampleSplittingMixin |
14 | 14 | from doubleml.utils._checks import _check_external_predictions |
15 | 15 | from doubleml.utils._estimation import _aggregate_coefs_and_ses, _rmse, _set_external_predictions, _var_est |
@@ -626,14 +626,11 @@ def construct_framework(self): |
626 | 626 | scaled_psi_reshape = np.transpose(scaled_psi, (0, 2, 1)) |
627 | 627 |
|
628 | 628 | doubleml_dict = { |
629 | | - "thetas": self.coef, |
630 | 629 | "all_thetas": self.all_coef, |
631 | | - "ses": self.se, |
632 | 630 | "all_ses": self.all_se, |
633 | 631 | "var_scaling_factors": self._var_scaling_factors, |
634 | 632 | "scaled_psi": scaled_psi_reshape, |
635 | 633 | "is_cluster_data": self._is_cluster_data, |
636 | | - "treatment_names": self._dml_data.d_cols, |
637 | 634 | } |
638 | 635 |
|
639 | 636 | if self._sensitivity_implemented: |
@@ -670,8 +667,8 @@ def construct_framework(self): |
670 | 667 | }, |
671 | 668 | } |
672 | 669 | ) |
673 | | - |
674 | | - doubleml_framework = DoubleMLFramework(doubleml_dict) |
| 670 | + dml_core = DoubleMLCore(**doubleml_dict) |
| 671 | + doubleml_framework = DoubleMLFramework(dml_core=dml_core, treatment_names=self._dml_data.d_cols) |
675 | 672 | return doubleml_framework |
676 | 673 |
|
677 | 674 | def bootstrap(self, method="normal", n_rep_boot=500): |
|
0 commit comments