In this chapter we will develop the theory for binary decision trees. Decision trees can be used to classify data. Binary trees are the easiest to implement. We will create functions for the decision trees and to generate sets of data to classify.
8.1 Generate Classification Test Data
8.1.1 Problem
We want to generate a set of training and testing data.
8.1.2 Solution
Write a function using rand to generate data.
8.1.3 How It Works
The function ClassifierSet generates random data and assigns them to classes. Classes are generated by adding ...