From 5f9a35485184e9677b0d2111e4de0bf700124ca3 Mon Sep 17 00:00:00 2001
From: mb706 CRAN release: 2024-04-23Hyperparameter Example:
PipeOp
-
+## <ParamSet:scale>
-## id class lower upper nlevels
-## <char> <char> <num> <num> <num>
-## 1: center ParamLgl NA NA 2
-## 2: scale ParamLgl NA NA 2
-## 3: robust ParamLgl NA NA 2
-## 4: affect_columns ParamUty NA NA Inf
-## default
-## <list>
-## 1: TRUE
-## 2: TRUE
-## 3: <NoDefault>\n Public:\n clone: function (deep = FALSE) \n initialize: function ()
-## 4: <Selector[1]>
-## value
-## <list>
-## 1:
-## 2:
-## 3: FALSE
-## 4:
## <ParamSet(4)>
+## id class lower upper nlevels default value
+## <char> <char> <num> <num> <num> <list> <list>
+## 1: center ParamLgl NA NA 2 TRUE
+## 2: scale ParamLgl NA NA 2 TRUE
+## 3: robust ParamLgl NA NA 2 <NoDefault[0]> FALSE
+## 4: affect_columns ParamUty NA NA Inf <Selector[1]>
pss$param_set$values$center = FALSE
print(pss$param_set$values)
## $robust
+
## $center
## [1] FALSE
##
-## $center
+## $robust
## [1] FALSE
pss$param_set$values$scale = "TRUE" # bad input is checked!
bbotk
release.mlr3pipelines 0.5.2
ppl("convert_types")
.Parameters, i.e. mean squared error for regression.
optimizer
:: Optimizer
| character(1)
Optimizer
used to find optimal thresholds.
If character
, converts to Optimizer
-via opt
. Initialized to OptimizerNLoptr
.
+via opt
. Initialized to OptimizerNLoptr
.
Nloptr hyperparameters are initialized to xtol_rel = 1e-8
, algorithm = "NLOPT_LN_COBYLA"
and equal initial weights for each learner.
For more fine-grained control, it is recommended to supply a instantiated Optimizer
.Examples#> Iterations: 450
#> Timing:
#> user system elapsed
-#> 0.067 0.003 0.071
+#> 0.070 0.000 0.069
optimizer
:: Optimizer
|character(1)
Optimizer
used to find optimal thresholds.
If character
, converts to Optimizer
-via opt
. Initialized to OptimizerGenSA
.
opt
. Initialized to OptimizerGenSA
.
log_level
:: character(1)
| integer(1)
Set a temporary log-level for lgr::get_logger("bbotk")
. Initialized to: "warn".