Skip to content

Commit c404f7b

Browse files
authored
Merge pull request #9 from DoubleML/p-paradox
Update Code Chunks according to Upcoming Breaking Changes in `paradox`
2 parents 9320dcc + 245bc0c commit c404f7b

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

.github/workflows/runcodechunks_vignette.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 2
3030

@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Cache R packages
4646
if: runner.os != 'Windows'
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ${{ env.R_LIBS_USER }}
5050
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${{ matrix.config.mlr3 }}-1-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/runreplication.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 2
3030

@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Cache R packages
4646
if: runner.os != 'Windows'
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ${{ env.R_LIBS_USER }}
5050
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${{ matrix.config.mlr3 }}-1-${{ hashFiles('.github/depends.Rds') }}
@@ -76,12 +76,12 @@ jobs:
7676
source("Code/sim_iivm.R")
7777
shell: Rscript {0}
7878

79-
- uses: actions/upload-artifact@v3
79+
- uses: actions/upload-artifact@v4
8080
with:
8181
name: sim-results
8282
path: ./simresults/
8383

84-
- uses: actions/download-artifact@v3
84+
- uses: actions/download-artifact@v4
8585
with:
8686
name: sim-results
8787
path: ./simresults/
@@ -91,7 +91,7 @@ jobs:
9191
source("Code/merge_plots.R")
9292
shell: Rscript {0}
9393

94-
- uses: actions/upload-artifact@v3
94+
- uses: actions/upload-artifact@v4
9595
with:
9696
name: sim-results
9797
path: |

.github/workflows/runreplication_key_ingredients.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 2
3030

@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Cache R packages
4646
if: runner.os != 'Windows'
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ${{ env.R_LIBS_USER }}
5050
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${{ matrix.config.mlr3 }}-1-${{ hashFiles('.github/depends.Rds') }}
@@ -61,7 +61,7 @@ jobs:
6161
source("Code/examples_failure_n_500_p_20.R")
6262
shell: Rscript {0}
6363

64-
- uses: actions/upload-artifact@v3
64+
- uses: actions/upload-artifact@v4
6565
with:
6666
name: sim-results
6767
path: |

.github/workflows/runreplication_sim_inf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 2
3030

@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Cache R packages
4646
if: runner.os != 'Windows'
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ${{ env.R_LIBS_USER }}
5050
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${{ matrix.config.mlr3 }}-1-${{ hashFiles('.github/depends.Rds') }}
@@ -61,9 +61,9 @@ jobs:
6161
source("Code/sim_siminf.R")
6262
shell: Rscript {0}
6363

64-
- uses: actions/upload-artifact@v3
64+
- uses: actions/upload-artifact@v4
6565
with:
66-
name: sim-siminf-results
66+
name: sim-siminf-results-final
6767
path: ./simresults/
6868

6969
- name: Session info

Code/doubleml_codechunks.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,8 @@ doubleml_plr = DoubleMLPLR$new(doubleml_data, ml_l, ml_m)
244244

245245
## ---- eval = TRUE-----------------------------------------------------------------------------------------
246246
par_grids = list(
247-
"ml_l" = ParamSet$new(list(
248-
ParamDbl$new("lambda", lower = 0.05, upper = 0.1))),
249-
"ml_m" = ParamSet$new(list(
250-
ParamDbl$new("lambda", lower = 0.05, upper = 0.1))))
251-
247+
"ml_l" = ps(lambda = p_dbl(lower = 0.05, upper = 0.1)),
248+
"ml_m" = ps(lambda = p_dbl(lower = 0.05, upper = 0.1)))
252249

253250
## ---- eval = TRUE-----------------------------------------------------------------------------------------
254251
# Provide tune settings

0 commit comments

Comments
 (0)