Skip to content

Commit e736e76

Browse files
authored
Merge pull request #862 from mlr-org/decode_ref_name
Set default for `ref_name` in ParamSet in `PipeOpDecode`
2 parents e86c62b + 54aec86 commit e736e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/PipeOpDecode.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ PipeOpDecode = R6Class("PipeOpDecode",
139139
group_pattern = p_uty(custom_check = check_string, tags = c("train", "required")),
140140
treatment_encoding = p_lgl(tags = c("train", "required")),
141141
treatment_cutoff = p_dbl(default = 0, tags = "train", depends = quote(treatment_encoding == TRUE)),
142-
ref_name = p_uty(custom_check = crate(function(x) check_string(x, min.chars = 1)), tags = "train", depends = quote(treatment_encoding == TRUE)),
142+
ref_name = p_uty(default = "ref", custom_check = crate(function(x) check_string(x, min.chars = 1)), tags = "train", depends = quote(treatment_encoding == TRUE)),
143143
ties_method = p_fct(c("first", "last", "random"), tags = c("train", "required"))
144144
)
145145
ps$values = list(treatment_encoding = FALSE, group_pattern = "^([^.]+)\\.", ties_method = "random")

0 commit comments

Comments
 (0)