# NOT RUN {
# iris task with new id
tsk("iris", id = "iris2")
# classification tree with different hyperparameters
# and predict type set to predict probabilities
lrn("classif.rpart", cp = 0.1, predict_type = "prob")
# multiple learners with predict type 'prob'
lrns(c("classif.featureless", "classif.rpart"), predict_type = "prob")
# }
Run the code above in your browser using DataLab