Skip to content

Commit

Permalink
Merge pull request #862 from mlr-org/decode_ref_name
Browse files Browse the repository at this point in the history
Set default for `ref_name` in ParamSet in `PipeOpDecode`
  • Loading branch information
mb706 authored Jan 14, 2025
2 parents e86c62b + 54aec86 commit e736e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/PipeOpDecode.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ PipeOpDecode = R6Class("PipeOpDecode",
group_pattern = p_uty(custom_check = check_string, tags = c("train", "required")),
treatment_encoding = p_lgl(tags = c("train", "required")),
treatment_cutoff = p_dbl(default = 0, tags = "train", depends = quote(treatment_encoding == TRUE)),
ref_name = p_uty(custom_check = crate(function(x) check_string(x, min.chars = 1)), tags = "train", depends = quote(treatment_encoding == TRUE)),
ref_name = p_uty(default = "ref", custom_check = crate(function(x) check_string(x, min.chars = 1)), tags = "train", depends = quote(treatment_encoding == TRUE)),
ties_method = p_fct(c("first", "last", "random"), tags = c("train", "required"))
)
ps$values = list(treatment_encoding = FALSE, group_pattern = "^([^.]+)\\.", ties_method = "random")
Expand Down

0 comments on commit e736e76

Please sign in to comment.