Skip to content

Commit 8766428

Browse files
committed
switch to a different temporary fix for #45 / scikit-learn/scikit-learn#21997
1 parent 422bdc3 commit 8766428

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

doc/examples/py_double_ml_pension.ipynb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@
9191
"data = fetch_401K(return_type='DataFrame')"
9292
]
9393
},
94+
{
95+
"cell_type": "code",
96+
"execution_count": null,
97+
"id": "853ba4be",
98+
"metadata": {},
99+
"outputs": [],
100+
"source": [
101+
"# Temporary fix for https://github.com/DoubleML/doubleml-docs/issues/45 / https://github.com/scikit-learn/scikit-learn/issues/21997\n",
102+
"# Can be removed when scikit-learn version 1.2.0 is released\n",
103+
"dtypes = data.dtypes\n",
104+
"dtypes['nifa'] = 'float64'\n",
105+
"dtypes['net_tfa'] = 'float64'\n",
106+
"dtypes['tw'] = 'float64'\n",
107+
"dtypes['inc'] = 'float64'\n",
108+
"data = data.astype(dtypes)"
109+
]
110+
},
94111
{
95112
"cell_type": "code",
96113
"execution_count": null,

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
scikit-learn<1.0.0
21
DoubleML
32

43
# test

0 commit comments

Comments
 (0)