Skip to content

Update Code Chunks according to Upcoming Breaking Changes in paradox #9

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 3 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/runcodechunks_vignette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -44,7 +44,7 @@ jobs:

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-${{ matrix.config.mlr3 }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/runreplication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -44,7 +44,7 @@ jobs:

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

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sim-results
path: ./simresults/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: sim-results
path: ./simresults/
Expand All @@ -91,7 +91,7 @@ jobs:
source("Code/merge_plots.R")
shell: Rscript {0}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sim-results
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/runreplication_key_ingredients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -44,7 +44,7 @@ jobs:

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

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sim-results
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/runreplication_sim_inf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -44,7 +44,7 @@ jobs:

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

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sim-siminf-results
name: sim-siminf-results-final
path: ./simresults/

- name: Session info
Expand Down
7 changes: 2 additions & 5 deletions Code/doubleml_codechunks.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,8 @@ doubleml_plr = DoubleMLPLR$new(doubleml_data, ml_l, ml_m)

## ---- eval = TRUE-----------------------------------------------------------------------------------------
par_grids = list(
"ml_l" = ParamSet$new(list(
ParamDbl$new("lambda", lower = 0.05, upper = 0.1))),
"ml_m" = ParamSet$new(list(
ParamDbl$new("lambda", lower = 0.05, upper = 0.1))))

"ml_l" = ps(lambda = p_dbl(lower = 0.05, upper = 0.1)),
"ml_m" = ps(lambda = p_dbl(lower = 0.05, upper = 0.1)))

## ---- eval = TRUE-----------------------------------------------------------------------------------------
# Provide tune settings
Expand Down