Skip to content

Update main after new release #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 56 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
993eec2
Create .gitignore
SvenKlaassen Nov 20, 2022
dfb191f
examples LPQ
SvenKlaassen Nov 30, 2022
666a146
add parallel option to qte
SvenKlaassen Dec 6, 2022
2d8d9c7
update QTE examples
SvenKlaassen Dec 8, 2022
c287d2c
small changes
SvenKlaassen Jan 3, 2023
5f254ce
update notebooks and gallery
SvenKlaassen Jan 4, 2023
6fd3b0b
Update py_double_ml_pension_qte.ipynb
SvenKlaassen Jan 12, 2023
49704a2
update notebooks
SvenKlaassen Jan 23, 2023
7aa1340
Update py_double_ml_pension_qte.ipynb
SvenKlaassen Feb 1, 2023
c18f38b
add CVaR effect
SvenKlaassen Feb 6, 2023
336dd74
add cvar treatment example
SvenKlaassen Feb 9, 2023
3edaa71
update example notebooks
SvenKlaassen Feb 9, 2023
bdb05f0
Update py_double_ml_multiway_cluster.ipynb
SvenKlaassen Feb 9, 2023
4ad1955
Update py_double_ml_pension.ipynb
SvenKlaassen Feb 9, 2023
686bd46
Merge branch 'm-nonlinear-score-mixin' into dev
PhilippBach Feb 21, 2023
6035e94
fix legend
SvenKlaassen Mar 16, 2023
9391dcf
update docs
SvenKlaassen Mar 17, 2023
da765ac
update qte notebooks
SvenKlaassen Mar 20, 2023
3aa23fc
Update index.rst
SvenKlaassen Mar 20, 2023
c7d4e4a
Merge branch 'main' into s-notebook-QTE
SvenKlaassen Mar 20, 2023
07fa886
add qte documentation
SvenKlaassen Mar 21, 2023
90c6f6f
set link_ignore for 403 Error
SvenKlaassen Mar 21, 2023
622d347
Update conf.py
SvenKlaassen Mar 21, 2023
34344f0
Merge branch 'main' into s-fix-broken-links
SvenKlaassen Mar 22, 2023
b949648
add ipykernel
SvenKlaassen Mar 22, 2023
5e1bdc8
Merge pull request #124 from DoubleML/s-fix-broken-links
SvenKlaassen Mar 22, 2023
2ac6021
update quantile notebooks
SvenKlaassen Mar 22, 2023
1e42437
update qte notebooks
SvenKlaassen Mar 22, 2023
58f1c4d
Merge branch 'dev' into s-notebook-QTE
SvenKlaassen Mar 22, 2023
56553c9
Merge pull request #125 from DoubleML/s-notebook-QTE
SvenKlaassen Mar 22, 2023
fd548ce
add version switcher
SvenKlaassen Mar 23, 2023
7d17d93
fix release notes
SvenKlaassen Mar 23, 2023
5319557
Revert "add version switcher"
SvenKlaassen Mar 24, 2023
d63ea86
update literature
SvenKlaassen Mar 24, 2023
91a07a0
Update literature.rst
SvenKlaassen Mar 24, 2023
a63923b
update gate and cate notebooks
SvenKlaassen Mar 24, 2023
5da0317
add BLP to API docu
SvenKlaassen Mar 24, 2023
cc4659a
extend guide for gate and cate
SvenKlaassen Mar 24, 2023
c16a2b8
update qte and cvar in guide
SvenKlaassen Mar 24, 2023
32aa904
add qte scores
SvenKlaassen Mar 24, 2023
8fa52b0
combine variance and ci sections
SvenKlaassen Mar 24, 2023
cf4b687
add release notes
SvenKlaassen Mar 24, 2023
236aa59
PhilippBach Mar 28, 2023
682b8b2
Update learners.rst
SvenKlaassen Mar 29, 2023
f426bc9
add learner example
SvenKlaassen Mar 29, 2023
bdff295
Update py_double_ml_learner.ipynb
SvenKlaassen Mar 29, 2023
a5a4e47
fix typos
SvenKlaassen Mar 30, 2023
d9329f8
update release notes and add sven to maintainer
SvenKlaassen Mar 30, 2023
db90d65
Merge pull request #126 from DoubleML/s-guide-rework
SvenKlaassen Mar 30, 2023
87219c2
Merge branch 'dev' into p-release-notes-r-0.5.3
PhilippBach Apr 3, 2023
9d3acda
Merge pull request #128 from DoubleML/p-release-notes-r-0.5.3
PhilippBach Apr 3, 2023
a743b66
change license to BSD 3-Clause and add Sven Klaassen to authors
SvenKlaassen Apr 4, 2023
00f4d96
Update release.rst
SvenKlaassen Apr 4, 2023
dbddcee
fix typo
SvenKlaassen Apr 5, 2023
bb80309
deploy dev docu only on dispatch
SvenKlaassen Apr 5, 2023
384555b
Merge pull request #129 from DoubleML/s-small-changes
SvenKlaassen Apr 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/deploy_docu_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
name: Deploy Docu (dev)

on:
push:
branches:
- dev
workflow_dispatch:


Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
*.idea

*.idea
42 changes: 26 additions & 16 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
Copyright (c) 2019-2021 Philipp Bach, Victor Chernozhukov, Malte S. Kurz, Martin Spindler
BSD 3-Clause License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Copyright (c) 2019-2023 Philipp Bach, Victor Chernozhukov, Sven Klaassen, Malte S. Kurz, Martin Spindler
All rights reserved.

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 5 additions & 1 deletion doc/api/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ Double machine learning models
DoubleMLPLIV
DoubleMLIRM
DoubleMLIIVM

DoubleMLPQ
DoubleMLLPQ
DoubleMLCVAR
DoubleMLQTE
DoubleMLBLP

Datasets module
---------------
Expand Down
7 changes: 5 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# -- Project information -----------------------------------------------------

project = 'DoubleML'
copyright = '2021, Bach, P., Chernozhukov, V., Kurz, M. S., and Spindler, M.'
author = 'Bach, P., Chernozhukov, V., Kurz, M. S., and Spindler, M.'
copyright = '2023, Bach, P., Chernozhukov, V., Klaassen, S., Kurz, M. S., and Spindler, M.'
author = 'Bach, P., Chernozhukov, V., Klaassen, S., Kurz, M. S., and Spindler, M.'


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -130,6 +130,9 @@
'https://doi.org/10.2307/2171802', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
'https://doi.org/10.2307/1912705', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
'https://doi.org/10.1093/ectj/utaa027', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
'https://doi.org/10.1111/rssb.12026', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
'https://doi.org/10.1111/rssa.12623', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
'https://doi.org/10.1146/annurev-economics-012315-015826', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
]

# To execute R code via jupyter-execute one needs to install the R kernel for jupyter
Expand Down
6 changes: 6 additions & 0 deletions doc/examples/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

:parenttoc: True

.. _examplegallery:

Examples
==========

Expand All @@ -27,6 +29,10 @@ These are case studies with the Python package :ref:`DoubleML <doubleml_package>
py_double_ml_multiway_cluster.ipynb
py_double_ml_gate.ipynb
py_double_ml_cate.ipynb
py_double_ml_pension_qte.ipynb
py_double_ml_pq.ipynb
py_double_ml_cvar.ipynb
py_double_ml_learner.ipynb

|start-h3| Sandbox |end-h3|

Expand Down
35 changes: 6 additions & 29 deletions doc/examples/py_double_ml_cate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"source": [
"## Data\n",
"\n",
"We define a data generating process to create synthetic data to compare the estimates to the true effect. The data generating process is based on the Monte Carlo simulation from this [paper](https://arxiv.org/abs/1806.03467) and this implementation from [EconML](https://github.com/microsoft/EconML)."
"We define a data generating process to create synthetic data to compare the estimates to the true effect. The data generating process is based on the Monte Carlo simulation from [Oprescu et al. (2019)](http://proceedings.mlr.press/v97/oprescu19a.html) and this [notebook](https://github.com/py-why/EconML/blob/main/notebooks/Causal%20Forest%20and%20Orthogonal%20Random%20Forest%20Examples.ipynb) from [EconML](https://github.com/py-why/EconML)."
]
},
{
Expand Down Expand Up @@ -80,33 +81,6 @@
" return te\n",
"\n",
"def create_synthetic_data(n_samples=200, n_w=30, support_size=5, n_x=1):\n",
" \"\"\"\n",
" Creates a simple synthetic example for conditional treatment effects.\n",
"\n",
" Parameters\n",
" ----------\n",
" n_samples : int\n",
" Number of samples.\n",
" Default is ``200``.\n",
"\n",
" n_w : int\n",
" Dimension of covariates.\n",
" Default is ``30``.\n",
"\n",
" support_size : int\n",
" Number of relevant covariates.\n",
" Default is ``5``.\n",
"\n",
" n_x : int\n",
" Dimension of treatment variable.\n",
" Default is ``1``.\n",
"\n",
" Returns\n",
" -------\n",
" data : pd.DataFrame\n",
" A data frame.\n",
"\n",
" \"\"\"\n",
" # Outcome support\n",
" # With the next two lines we are effectively choosing the matrix gamma in the example\n",
" support_y = np.random.choice(np.arange(n_w), size=support_size, replace=False)\n",
Expand Down Expand Up @@ -219,12 +193,13 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"source": [
"To estimate the CATE, we rely on the best-linear-predictor of the linear score as in [Semenova et al.](https://doi.org/10.1093/ectj/utaa027) To approximate the target function $g(x)$ with a linear form, we have to define a data frame of basis functions. Here, we rely on [patsy](https://patsy.readthedocs.io/en/latest/) to construct a suitable basis of [B-splines](https://en.wikipedia.org/wiki/B-spline)."
"To estimate the CATE, we rely on the best-linear-predictor of the linear score as in [Semenova et al. (2021)](https://doi.org/10.1093/ectj/utaa027) To approximate the target function $g(x)$ with a linear form, we have to define a data frame of basis functions. Here, we rely on [patsy](https://patsy.readthedocs.io/en/latest/) to construct a suitable basis of [B-splines](https://en.wikipedia.org/wiki/B-spline)."
]
},
{
Expand All @@ -241,6 +216,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"collapsed": false
Expand All @@ -262,6 +238,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"collapsed": false
Expand Down
Loading