Overall accuracy = 0.783
Confusion matrix
Predicted (cv)
Actual [,1] [,2]
[1,] 0.658 0.342
[2,] 0.129 0.871
Decision tree model arguments can be tuned so that a better accuracy is reached. For instance, you may decide that you split a group as long as it has at least 1 item, or specify the smallest number of observations that can appear on the bottom node of the tree. You may also want to set a complexity argument for how much better each model must be before splitting a leaf node. We see that by fine-tuning the previous model, accuracy raises from 78.3% to 83.7%. Now, the smartphone is correctly predicted about 84% of the time.
Overall accuracy = 0.837
Confusion matrix
Predicted (cv)
Actual [,1] [,2]
[1,] 0.808 0.192
[2,] 0.142 0.858
Overall accuracy = 0.65
Confusion matrix
Predicted (cv)
Actual [,1] [,2]
[1,] 0.479 0.521
[2,] 0.229 0.771