This is usually simply “<target> ~ .”. For multilabel it is “<target_1> + ... + <target_k> ~ .”.
getTaskFormula(x, target = getTaskTargetNames(x),
explicit.features = FALSE, env = parent.frame())(character(1))
Left hand side of the formula.
Default is defined by task x.
(logical(1))
Should the features (right hand side of the formula) be explicitly listed?
Default is FALSE, i.e., they will be represented as ".".
(environment)
Environment of the formula.
Default is parent.frame().
(formula).
Other task: getTaskClassLevels,
getTaskCosts, getTaskData,
getTaskDesc,
getTaskFeatureNames,
getTaskId, getTaskNFeats,
getTaskSize,
getTaskTargetNames,
getTaskTargets, getTaskType,
subsetTask