Addition of training data and its values

Now we are going to introduce training data, which is the data that the machine learning algorithm will learn from. This will contain information about what data we are going to be analyzing with our decision tree program. The code will look like this:

training = [
]

Next, we are going to load some basic data into our training array in order to provide it with values to analyze. We're going to place values in the array that would fit our requirements. For example, 98.7 is healthy, 99.1 is still healthy, 99.5 starts getting a little bit sick, 100.5 is crazy sick, and 107.5 results in a dead patient. Enter the values in the training program in this format:

training = [
[98.7, 'healthy'],
[99.1, 'healthy'],
[99.5, 'sick'],
[100.5, 'sick'],
[102.5, 'crazy sick'],
[107.5, 'dead'],
]
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.95.245