Description Usage Arguments Note Author(s) References Examples
The function imlplots()
creates an interactive shiny based dashboard
for visualizing the effects of statistical models.
The utilization of mlr (Machine Learning in R) is necessary.
For more infos go to https://github.com/mlr-org
There are three types of plots: Partial Dependence Plots (PDP), Individual Conditional Expectation (ICE) plots and Accumulated Local Effects (ALE) plots.
1 |
data |
Input data frame. Has to contain exactly the same variables as the training data. |
task |
The mlr task the models were being trained on,
e.g. |
models |
A list of mlr trained models, e.g. |
model.check |
A string. A model check is performed upon initialization,
whether the provided models can be used to properly predict. |
The plots display combinations of different inputs and outputs/ predictions. Therefore they are highly sensitive to the trained and provided models.
The variable of interest provides variations of different inputs, while all other variables are held constant. You can look at how the predictions change, if you had provided different test data, by either filtering/ subsetting the data or manually setting a variable to a fixed value for all observations.
The function performs a basic check upon initialization,
whether the provided models can be used to properly predict.
If the check fails, it is recommended to manually test the model with the
marginalPrediction()
function of the mmpf package.
Julia Fried, Tobias Riebe, Christian Scholbeck; in cooperation with the working group for computational statistics at Ludwigs-Maximilians-University Munich.
Apley (2016). "Visualizing the Effects of Predictor Variables in Black Box Supervised Learning Models"
Bischl et. al (2016). "mlr: Machine Learning in R." Journal of Machine Learning Research, 17(170), pp.
Friedman, J.H. (2001). "Greedy Function Approximation: A Gradient Boosting Machine." Annals of Statistics 29: 1189 - 1232.
Goldstein et al. (2013). "Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Conditional Expectation"
Jones (2017). "mmpf: Monte-Carlo Methods for Prediction Functions "The R Journal Vol. XX/YY, AAAA 20ZZ
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.