Description Usage Arguments Value Author(s) Examples
View source: R/localModelInterpretability.R
Fits a linear regression model to the predicted responses or probabilities of another model. Note that for classification models, the model must predict a probability else this fails.
1 2 | localModelInterpretability(train, trainedModel, seed = 1991,
sample = 0.1)
|
train |
[data.frame | Required] Training set on which the model was trained |
trainedModel |
[mlr obj | Required] MLR trained moodel object |
seed |
[integer | Optional] Random seed number for reproducable results. Default of 1991 |
sample |
[numeric | Optional] A number between 0 - 1 to sub-sample the training set for faster computational time. Default of 0.1 |
List object containing a data.frame and a plot object.
Xander Horn
1 2 | mod <- mlr::train(makeLearner("classif.ranger", predict.type = "prob"), iris.task)
localModelInterpretability(train = iris, mod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.