makeWrappedModel: Induced model of learner.

Description Usage Arguments Value

View source: R/WrappedModel.R

Description

Result from train.

It internally stores the underlying fitted model, the subset used for training, features used for training, levels of factors in the data set and computation time that was spent for training.

Object members: See arguments.

The constructor makeWrappedModel is mainly for internal use.

Usage

1
2
makeWrappedModel(learner, learner.model, task.desc, subset, features,
  factor.levels, time)

Arguments

learner

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

learner.model

(any)
Underlying model.

task.desc

[TaskDesc]
Task description object.

subset

(integer | logical | NULL)
Selected cases. Either a logical or an index vector. By default NULL if all observations are used.

features

(character)
Features used for training.

factor.levels

(named list of character)
Levels of factor variables (features and potentially target) in training data. Named by variable name, non-factors do not occur in the list.

time

(numeric(1))
Computation time for model fit in seconds.

Value

WrappedModel.


mlr documentation built on April 1, 2018, 12:03 p.m.