getObjf: Get objective function for mlr

View source: R/mlrTools.R

getObjfR Documentation

Get objective function for mlr

Description

mlrTools This function receives a configuration for a tuning experiment, and returns an objective function to be tuned via SPOT. It basically provides the result from a call to resample: resample(lrn, task, resample, measures = measures, show.info = FALSE), with measures defined as mmce for classification and rmse for regression, timeboth, timetrain, and timepredict.

Usage

getObjf(config, timeout = 3600)

Arguments

config

list

timeout

integer, time in seconds after which a model (learner) evaluation will be aborted.

Details

Parameter names are set, parameters are transformed to the actual parameter scale, integer levels are converted to factor levels for categorical parameters, and parameters are set in relation to other parameters.

Value

an objective function that can be optimized via spot.


SPOTMisc documentation built on Sept. 5, 2022, 5:06 p.m.