Skip to content

Commit 92279ef

Browse files
committed
no need to initialize task_type for each nuisance part; an empty list suffices
1 parent 442c701 commit 92279ef

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

R/double_ml_iivm.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,6 @@ DoubleMLIIVM = R6Class("DoubleMLIIVM",
245245

246246
private$check_data(self$data)
247247
private$check_score(self$score)
248-
private$task_type = list(
249-
"ml_g" = NULL,
250-
"ml_m" = NULL,
251-
"ml_r" = NULL)
252248
ml_g = private$assert_learner(ml_g, "ml_g", Regr = TRUE, Classif = TRUE)
253249
ml_m = private$assert_learner(ml_m, "ml_m", Regr = FALSE, Classif = TRUE)
254250
ml_r = private$assert_learner(ml_r, "ml_r", Regr = FALSE, Classif = TRUE)

R/double_ml_irm.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ DoubleMLIRM = R6Class("DoubleMLIRM",
189189

190190
private$check_data(self$data)
191191
private$check_score(self$score)
192-
private$task_type = list(
193-
"ml_g" = NULL,
194-
"ml_m" = NULL)
195192
ml_g = private$assert_learner(ml_g, "ml_g", Regr = TRUE, Classif = TRUE)
196193
ml_m = private$assert_learner(ml_m, "ml_m", Regr = FALSE, Classif = TRUE)
197194

R/double_ml_plr.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ DoubleMLPLR = R6Class("DoubleMLPLR",
147147

148148
private$check_data(self$data)
149149
private$check_score(self$score)
150-
private$task_type = list(
151-
"ml_g" = NULL,
152-
"ml_m" = NULL)
153150
ml_g = private$assert_learner(ml_g, "ml_g", Regr = TRUE, Classif = FALSE)
154151
ml_m = private$assert_learner(ml_m, "ml_m", Regr = TRUE, Classif = TRUE)
155152

0 commit comments

Comments
 (0)