Create control object for hyperparameter tuning with random search.
Source:R/TuneControlRandom.R
makeTuneControlRandom.Rd
Random search. All kinds of parameter types can be handled.
Usage
makeTuneControlRandom(
same.resampling.instance = TRUE,
maxit = NULL,
tune.threshold = FALSE,
tune.threshold.args = list(),
log.fun = "default",
final.dw.perc = NULL,
budget = NULL
)
Arguments
- same.resampling.instance
(
logical(1)
)
Should the same resampling instance be used for all evaluations to reduce variance? Default isTRUE
.- maxit
(
integer(1)
| NULL)
Number of iterations for random search. Default is 100.- tune.threshold
(
logical(1)
)
Should the threshold be tuned for the measure at hand, after each hyperparameter evaluation, via tuneThreshold? Only works for classification if the predict type is “prob”. Default isFALSE
.- tune.threshold.args
(list)
Further arguments for threshold tuning that are passed down to tuneThreshold. Default is none.- log.fun
(
function
|character(1)
)
Function used for logging. If set to “default” (the default), the evaluated design points, the resulting performances, and the runtime will be reported. If set to “memory” the memory usage for each evaluation will also be displayed, withcharacter(1)
small increase in run time. Otherwisecharacter(1)
function with argumentslearner
,resampling
,measures
,par.set
,control
,opt.path
,dob
,x
,y
,remove.nas
,stage
andprev.stage
is expected. The default displays the performance measures, the time needed for evaluating, the currently used memory and the max memory ever used before (the latter two both taken from gc). See the implementation for details.- final.dw.perc
(
boolean
)
If a Learner wrapped by a makeDownsampleWrapper is used, you can define the value ofdw.perc
which is used to train the Learner with the final parameter setting found by the tuning. Default isNULL
which will not change anything.- budget
(
integer(1)
)
Maximum budget for tuning. This value restricts the number of function evaluations. Thebudget
equals the number of iterations (maxit
) performed by the random search algorithm.
See also
Other tune:
TuneControl
,
getNestedTuneResultsOptPathDf()
,
getNestedTuneResultsX()
,
getResamplingIndices()
,
getTuneResult()
,
makeModelMultiplexerParamSet()
,
makeModelMultiplexer()
,
makeTuneControlCMAES()
,
makeTuneControlDesign()
,
makeTuneControlGenSA()
,
makeTuneControlGrid()
,
makeTuneControlIrace()
,
makeTuneControlMBO()
,
makeTuneWrapper()
,
tuneParams()
,
tuneThreshold()