From 19304b23bab3317df6ea04d14ea2a95112bb1ff6 Mon Sep 17 00:00:00 2001 From: SvenKlaassen Date: Mon, 20 Jan 2025 10:35:31 +0100 Subject: [PATCH 1/3] Remove sklearn data dtype version fix --- doc/examples/py_double_ml_pension.ipynb | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/doc/examples/py_double_ml_pension.ipynb b/doc/examples/py_double_ml_pension.ipynb index b713ae1a..251baf7b 100644 --- a/doc/examples/py_double_ml_pension.ipynb +++ b/doc/examples/py_double_ml_pension.ipynb @@ -94,23 +94,6 @@ "data = fetch_401K(return_type='DataFrame')" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "853ba4be", - "metadata": {}, - "outputs": [], - "source": [ - "# Temporary fix for https://github.com/DoubleML/doubleml-docs/issues/45 / https://github.com/scikit-learn/scikit-learn/issues/21997\n", - "# Can be removed when scikit-learn version 1.2.0 is released\n", - "dtypes = data.dtypes\n", - "dtypes['nifa'] = 'float64'\n", - "dtypes['net_tfa'] = 'float64'\n", - "dtypes['tw'] = 'float64'\n", - "dtypes['inc'] = 'float64'\n", - "data = data.astype(dtypes)" - ] - }, { "cell_type": "code", "execution_count": null, @@ -1179,7 +1162,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.2" + "version": "3.12.4" }, "vscode": { "interpreter": { From 0cfd6a1646ed5981d0b6382c6e53767f7cad8f37 Mon Sep 17 00:00:00 2001 From: SvenKlaassen Date: Mon, 20 Jan 2025 11:41:04 +0100 Subject: [PATCH 2/3] add Global Regressor and Classifier to api documentation --- doc/api/api.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/api.rst b/doc/api/api.rst index 5844055a..b6f9eaa8 100644 --- a/doc/api/api.rst +++ b/doc/api/api.rst @@ -101,6 +101,8 @@ Utility classes utils.DMLDummyClassifier utils.DoubleMLBLP utils.DoubleMLPolicyTree + uitls.GlobalRegressor + utils.GlobalClassifier Utility functions ~~~~~~~~~~~~~~~~~ From 526461afe9b728e7ec2480bd364fc2a537484a28 Mon Sep 17 00:00:00 2001 From: SvenKlaassen Date: Mon, 20 Jan 2025 13:03:29 +0100 Subject: [PATCH 3/3] fix typo in api --- doc/api/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/api.rst b/doc/api/api.rst index b6f9eaa8..39b35219 100644 --- a/doc/api/api.rst +++ b/doc/api/api.rst @@ -101,7 +101,7 @@ Utility classes utils.DMLDummyClassifier utils.DoubleMLBLP utils.DoubleMLPolicyTree - uitls.GlobalRegressor + utils.GlobalRegressor utils.GlobalClassifier Utility functions