November 2016
Beginner to intermediate
959 pages
43h 46m
English
After constructing the prediction model, it is important to validate how the model performs while predicting the labels. In the previous recipe, we built a model with ctree and pre-split the data into a training and testing set. For now, users will learn to validate how well ctree performs in a survival prediction via the use of a confusion matrix.
Before assessing the prediction model, first be sure that the generated training set and testing dataset are within the R session.
Perform the following steps to validate the prediction power:
train.ctree model to predict the survival of the testing set:
> ctree.predict = predict(train.ctree, ...Read now
Unlock full access