Skip to content

Commit acb2fc7

Browse files
authored
Merge pull request #119 from mlr-org/catboost_param
Update learner_catboost_classif_catboost.R
2 parents fb4976d + ca179ba commit acb2fc7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mlr3extralearners
22
Title: Extra Learners For mlr3
3-
Version: 0.5.9
3+
Version: 0.5.10
44
Authors@R:
55
c(person(given = "Raphael",
66
family = "Sonabend",

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# mlr3extralearners 0.5.10
2+
3+
* Added params `ignored_features` and `one_hot_max_size` to `classif.catboost`
4+
15
# mlr3extralearners 0.5.9
26

37
* Fixed bug that didn't allow C parameter to be set for nu-regression

R/learner_catboost_classif_catboost.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ LearnerClassifCatboost = R6Class("LearnerClassifCatboost",
7373
grow_policy = p_fct(levels = c("SymmetricTree", "Depthwise", "Lossguide"), default = "SymmetricTree", tags = "train"),
7474
min_data_in_leaf = p_int(lower = 1L, upper = Inf, default = 1L, tags = "train"),
7575
max_leaves = p_int(lower = 1L, upper = Inf, default = 31L, tags = "train"),
76-
# ignored_features missing
77-
# one_hot_max_size missing
76+
ignored_features = p_uty(default = NULL, tags = "train"),
77+
one_hot_max_size = p_uty(default = FALSE, tags = "train"),
7878
has_time = p_lgl(default = FALSE, tags = "train"),
7979
rsm = p_dbl(lower = 0.001, upper = 1, default = 1, tags = "train"),
8080
nan_mode = p_fct(levels = c("Min", "Max"), default = "Min", tags = "train"), # do not allow "Forbidden"

0 commit comments

Comments
 (0)