# NOT RUN {
# For example, to train a Hoeffding tree with confidence 0.99 with data
# "dataset", saving the trained tree to "tree", the following command may be
# used:
# }
# NOT RUN {
output <- hoeffding_tree(training=dataset, confidence=0.99)
tree <- output$output_model
# }
# NOT RUN {
# Then, this tree may be used to make predictions on the test set "test_set",
# saving the predictions into "predictions" and the class probabilities into
# "class_probs" with the following command:
# }
# NOT RUN {
output <- hoeffding_tree(input_model=tree, test=test_set)
predictions <- output$predictions
class_probs <- output$probabilities
# }
Run the code above in your browser using DataLab