Skip to content

Commit

Permalink
feat: allow to set different task type in LearnerRegr (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke authored Jan 17, 2025
1 parent a54679e commit 54e6aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/LearnerRegr.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ LearnerRegr = R6Class("LearnerRegr", inherit = Learner,
public = list(
#' @description
#' Creates a new instance of this [R6][R6::R6Class] class.
initialize = function(id, param_set = ps(), predict_types = "response", feature_types = character(), properties = character(), data_formats, packages = character(), label = NA_character_, man = NA_character_) {
super$initialize(id = id, task_type = "regr", param_set = param_set, feature_types = feature_types,
initialize = function(id, task_type = "regr", param_set = ps(), predict_types = "response", feature_types = character(), properties = character(), data_formats, packages = character(), label = NA_character_, man = NA_character_) {
super$initialize(id = id, task_type = task_type, param_set = param_set, feature_types = feature_types,
predict_types = predict_types, properties = properties, data_formats, packages = packages,
label = label, man = man)
}
Expand Down

0 comments on commit 54e6aaf

Please sign in to comment.