November 2016
Beginner to intermediate
959 pages
43h 46m
English
After building a conditional inference tree as a classification model, we can use the treeresponse and predict functions to predict categories of the testing dataset, testset, and further validate the prediction power with a classification table and a confusion matrix.
You need to have the previous recipe completed by generating the conditional inference tree model, ctree.model. In addition to this, you need to have both trainset and testset loaded in an R session.
Perform the following steps to measure the prediction performance of a conditional inference tree:
predict function to predict the category of the testing dataset, testsetRead now
Unlock full access