Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Sep 13, 2024
1 parent fff051d commit f86235b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion R/LearnerClassifAuto.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ LearnerClassifAuto = R6Class("LearnerClassifAuto",
small_data_resampling = p_uty(tags = c("train", "super")),
# cardinality
max_cardinality = p_int(lower = 1L, default = 100L, tags = c("train", "super")),
extra_trees_max_cardinality = p_int(lower = 1L, default = 40L, tags = c("train", "extratrees")),
extra_trees_max_cardinality = p_int(lower = 1L, default = 40L, tags = c("train", "extra_trees")),
# tuner
resampling = p_uty(tags = c("train", "super")),
terminator = p_uty(tags = c("train", "super")),
Expand Down
18 changes: 0 additions & 18 deletions R/LearnerClassifAutoGlmnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ LearnerClassifAutoGlmnet = R6Class("LearnerClassifAutoGlmnet",
#' Creates a new instance of this [R6][R6::R6Class] class.
initialize = function(id = "classif.auto_glmnet") {
super$initialize(id = id, learner_ids = "glmnet")

# reduce parameter set to the relevant parameters
private$.param_set = private$.param_set$subset(
c("learner_ids",
"learner_timeout",
"small_data_size",
"small_data_resampling",
"max_cardinality",
"resampling",
"terminator",
"measure",
"lhs_size",
"callbacks",
"store_benchmark_result")
)

self$param_set$set_values(learner_ids = "glmnet")
self$packages = c("mlr3tuning", "mlr3learners", "mlr3pipelines", "mlr3mbo", "mlr3automl", "glmnet")
}
)
)
Expand Down

0 comments on commit f86235b

Please sign in to comment.