R: Set the id of a learner object.

setId {mlr} | R Documentation

## Set the id of a learner object.

### Description

Deprecated, use setLearnerId instead.

### Usage

    setId(learner, id)

### Arguments

`learner` | (Learner | `character(1)`) The learner. If you pass a string the learner will be created via makeLearner.
`id` | (`character(1)`) New id for learner.

### Value

Learner.

### See Also

Other learner: `LearnerProperties`, `getClassWeightParam()`, `getHyperPars()`, `getLearnerId()`, `getLearnerNote()`, `getLearnerPackages()`, `getLearnerParVals()`, `getLearnerParamSet()`, `getLearnerPredictType()`, `getLearnerShortName()`, `getLearnerType()`, `getParamSet()`, `helpLearnerParam()`, `helpLearner()`, `makeLearners()`, `makeLearner()`, `removeHyperPars()`, `setHyperPars()`, `setLearnerId()`, `setPredictThreshold()`, `setPredictType()`

[Package mlr version 2.19.0 Index]