Description Usage Arguments Details Value See Also Examples
Automated training, tuning and validation of machine learning models. Models are tuned, resampled and validated on an experimental dataset and trained on the full dataset and validated/tested on external datasets. Classification models tune the probability threshold automatically and returns the results. Each model contains information on performance, model object and evaluation plots.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
train |
[data.frame | Required] training set |
test |
[data.frame | Optional] optional testing set to validate models on. If none is provided, one will be created internally. Default of NULL |
score |
[data.frame | Optional] optional score the models on best trained model based on AUC. If none is provided, scorelist will be null. Default of NULL |
target |
[integer | Required] if a target is provided classification or regression models will be trained, if left as NULL unsupervised models will be trained. Default of NULL |
testSplit |
[numeric | Optional] percentage of data to allocate to the test set. Stratified sampling is done. Default of 0.1 |
tuneIters |
[integer | Optional] number of tuning iterations to search for optimal hyper parameters. Default of 10 |
tuneType |
[character | Optional] tune method applied, list of options are:
|
models |
[character | Optional] which models to train. Default option is all. Please find below the names for each of the methods
|
perMetric |
[character | Optional] model validation metric. Default is "auc"
|
varImp |
[integer | Optional] number of important features to plot |
liftGroup |
[integer | Optional] lift value to validate the test model performance |
maxObs |
[numeric | Optional] number of observations in the experiment training dataset on which models are trained, tuned and resampled. Default of 40,000. If the training dataset has less than 40k observations then all the observations will be used |
uid |
[character | Optional] unique variables to keep in test output data |
pdp |
[logical | Optional] partial dependence plot for important variables |
positive |
[character | Optional] positive class for the target variable |
htmlreport |
[logical | Optional] to view the model outcome in html format |
seed |
[integer | Optional] random number seed for reproducible results |
verbose |
[logical | Optional] display executions steps on console. Default is FALSE |
all the models trained using mlr train function, all of the functionality in mlr package can be applied to the autoMLmodel outcome
autoMLmodel provides below the information of the various machine learning classification models
trainedModels - model level list output contains trained model object, hyper parameters, tuned data, test data, performance and Model plots
results - summary of all trained model result like AUC, Precision, Recall, F1 score
modelexp - model gain chart
predicted_score - predicted score
datasummary - summary of the input data
List output contains trained models and results
mlr train
makeLearner
tuneParams
1 2 3 4 | # Run only Logistic regression model
mymodel <- autoMLmodel( train = heart, test = NULL, target = 'target_var',
testSplit = 0.2, tuneIters = 10, tuneType = "random", models = "logreg",
varImp = 10, liftGroup = 50, maxObs = 4000, uid = NULL, seed = 1991)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.