Skip to content

Commit

Permalink
Merge pull request #130 from mlr-org/weka_control
Browse files Browse the repository at this point in the history
fix weka control
  • Loading branch information
be-marc authored Nov 16, 2021
2 parents 75bd3e0 + de02e89 commit d318e46
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mlr3extralearners
Title: Extra Learners For mlr3
Version: 0.5.13
Version: 0.5.14
Authors@R:
c(person(given = "Raphael",
family = "Sonabend",
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_classif_IBk.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ LearnerClassifIBk = R6Class("LearnerClassifIBk",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_classif_J48.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ LearnerClassifJ48 = R6Class("LearnerClassifJ48",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_classif_JRip.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ LearnerClassifJRip = R6Class("LearnerClassifJRip",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_classif_LMT.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ LearnerClassifLMT = R6Class("LearnerClassifLMT",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_classif_OneR.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ LearnerClassifOneR = R6Class("LearnerClassifOneR",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_classif_PART.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ LearnerClassifPART = R6Class("LearnerClassifPART",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_regr_IBk.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ LearnerRegrIBk = R6Class("LearnerRegrIBk",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down
2 changes: 1 addition & 1 deletion R/learner_RWeka_regr_M5Rules.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ LearnerRegrM5Rules = R6Class("LearnerRegrM5Rules",
ctrl = self$param_set$get_values(tags = "control")
if (length(ctrl) > 0L) {
names(ctrl) = gsub("_", replacement = "-", x = names(ctrl))
ctrl = mlr3misc::invoke(RWeka::Weka_control, ctrl)
ctrl = mlr3misc::invoke(RWeka::Weka_control, .args = ctrl)
}

pars = self$param_set$get_values(tags = "pars")
Expand Down

1 comment on commit d318e46

@sebffischer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@be-marc Was there any specific reason that AdaBoostM1 was not changed?

Please sign in to comment.