Skip to content

Commit a95b09c

Browse files
authored
Merge pull request #187 from DoubleML/dev
Update documentation for Release 0.8.2
2 parents 974c9a1 + fb7b440 commit a95b09c

File tree

9 files changed

+780
-61
lines changed

9 files changed

+780
-61
lines changed

doc/_static/dag_usecase_revised.png

83.4 KB
Loading

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
'examples/py_double_ml_basic_iv': '_static/basic_iv_example_nb.png',
106106
'examples/R_double_ml_basic_iv': '_static/basic_iv_example_nb.png',
107107
'examples/py_double_ml_ssm': '_static/ssm_example_nb.svg',
108+
'examples/py_double_ml_sensitivity_booking': '_static/dag_usecase_revised.png',
108109
}
109110

110111
copybutton_prompt_text = r'>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: | {2,5}\.\.\.\.:'
83.4 KB
Loading

doc/examples/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ General Examples
2424
py_double_ml_firststage.ipynb
2525
py_double_ml_multiway_cluster.ipynb
2626
py_double_ml_ssm.ipynb
27+
py_double_ml_sensitivity_booking.ipynb
2728
py_double_ml_did.ipynb
2829
py_double_ml_did_pretest.ipynb
2930
py_double_ml_basic_iv.ipynb

doc/examples/py_double_ml_gate_sensitivity.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"\n",
302302
"All the previous steps of estimation are performed automatically by the `DoubleMLIRM` class if the score is set to `'ATTE'`.\n",
303303
"\n",
304-
"**Remark**: This requires the `weights` argument to be binary and refer to the group indicator $1\\{X\\in G\\} = 1\\{X_0 \\ge 0.5\\}$ not the actual group of treated individuals $1\\{D = 1, X\\in G\\} = D\\cdot 1\\{X\\in G\\} $.\n",
304+
"**Remark**: This requires the `weights` argument to be binary and refer to the group indicator $1\\{X\\in G\\} = 1\\{X_0 \\ge 0.5\\}$ not the actual group of treated individuals $1\\{D = 1, X\\in G\\} = D\\cdot 1\\{X\\in G\\}$.\n",
305305
"Further, the normalization by the group probabilities is then performed automatically by the `DoubleMLIRM` class.\n",
306306
"\n",
307307
"Consequently, we can just set `weights` to the group indicator $1\\{X\\in G\\}$ and fit the model."

doc/examples/py_double_ml_learner.ipynb

Lines changed: 54 additions & 56 deletions
Large diffs are not rendered by default.

doc/examples/py_double_ml_sensitivity_booking.ipynb

Lines changed: 687 additions & 0 deletions
Large diffs are not rendered by default.

doc/guide/learners.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ Evaluate learners
192192
#################
193193

194194
To compare different learners it is possible to evaluate the out-of-sample performance of each learner. The ``summary``
195-
already shows the root mean squared error (RMSE) for each learner and each corresponding repetition of cross-fitting (``n_rep`` argument).
195+
already displays either the root-mean-squared error (for regressions) or log-loss (for classifications) for each learner
196+
and each corresponding repetition of cross-fitting (``n_rep`` argument).
196197

197198
To illustrate the parameter tuning, we work with the following example.
198199

@@ -216,9 +217,9 @@ To illustrate the parameter tuning, we work with the following example.
216217
dml_plr_obj.fit()
217218
print(dml_plr_obj)
218219
219-
The RMSEs of each learner are also stored in the ``rmses`` attribute.
220+
The loss of each learner are also stored in the ``nuisance_loss`` attribute.
220221
Further, the ``evaluate_learners()`` method allows to evalute customized evaluation metrics as e.g. the mean absolute error.
221-
The default option is still the RMSE for evaluation.
222+
The default option is still the root-mean-squared error for evaluation.
222223

223224
.. tab-set::
224225

@@ -227,7 +228,7 @@ The default option is still the RMSE for evaluation.
227228

228229
.. ipython:: python
229230
230-
print(dml_plr_obj.rmses)
231+
print(dml_plr_obj.nuisance_loss)
231232
print(dml_plr_obj.evaluate_learners())
232233
233234
To evaluate a customized metric one has to define a ``callable``. For some models (e.g. the IRM model) it is important that

doc/release/release.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,37 @@ Release notes
77

88
.. tab-item:: Python
99

10+
.. dropdown:: DoubleML 0.8.2
11+
:class-title: sd-bg-primary sd-font-weight-bold
12+
:open:
13+
14+
- **API Update**: Change nuisance evaluation for classifiers.
15+
The corresponding properties are renamed ``nuisance_loss`` instead of ``rmses``.
16+
`#254 <https://github.com/DoubleML/doubleml-for-py/pull/254>`_
17+
`#184 <https://github.com/DoubleML/doubleml-docs/pull/184>`_
18+
19+
- Add new example on sensitivity analysis
20+
`#190 <https://github.com/DoubleML/doubleml-docs/pull/190>`_
21+
22+
- Add a new example on DiD with DoubleML in R
23+
`#178 <https://github.com/DoubleML/doubleml-docs/pull/178>`_
24+
25+
- Enable ``set_sample_splitting`` for cluster data
26+
`#255 <https://github.com/DoubleML/doubleml-for-py/pull/255>`_
27+
28+
- Update the ``make_confounded_irm_data`` data generating process
29+
`#263 <https://github.com/DoubleML/doubleml-for-py/pull/263>`_
30+
31+
- Maintainance package
32+
`#264 <https://github.com/DoubleML/doubleml-for-py/pull/264>`_
33+
34+
- Maintenance documentation
35+
`#177 <https://github.com/DoubleML/doubleml-docs/pull/177>`_
36+
`#180 <https://github.com/DoubleML/doubleml-docs/pull/180>`_
37+
`#181 <https://github.com/DoubleML/doubleml-docs/pull/181>`_
38+
`#187 <https://github.com/DoubleML/doubleml-docs/pull/187>`_
39+
`#189 <https://github.com/DoubleML/doubleml-docs/pull/189>`_
40+
1041
.. dropdown:: DoubleML 0.8.1
1142
:class-title: sd-bg-primary sd-font-weight-bold
1243
:open:

0 commit comments

Comments
 (0)